RSS

Monthly Archives: June 2018

panic[cpu0]/thread=20012000: vfs_mountroot: cannot mount root

System will report below errors with CPU panic and reboots continuously. The reason mostly could be system trying to boot from rpool (ZFS) where path to disk was changed or booting from cloned disk. It causes mismatch with old disk path stored in ZFS label. In my case I did storage clone of OS disk from a running LDOM and attached the disk to different LDOM. As you can see below old disk path is disk@2 and new disk patch is disk@0.

SPARC T7-1, No Keyboard
Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.42.3, 32.0000 GB memory installed, Serial #83881982.
Ethernet address 0:14:4f:ff:ef:fe, Host ID: 84ffeffe.

Boot device: /virtual-devices@100/channel-devices@200/disk@0:a File and args:
WARNING: use-nvramrc? variable is set, continuing with signature verification
SunOS Release 5.11 Version 11.3 64-bit
Copyright (c) 1983, 2018, Oracle and/or its affiliates. All rights reserved.
NOTICE: zfs_parse_bootfs: error 19
Cannot mount root on rpool/529 fstype zfs

panic[cpu0]/thread=20012000: vfs_mountroot: cannot mount root

Warning – stack not written to the dumpbuf
000000002000fa00 genunix:main+1e4 (0, 10074c00, 20300bc0, 208a8000, 0, 10137400)
%l0-3: 0000000000000000 00000000203c7c00 0000000000000000 0000000010074c00
%l4-7: 0000000020122c00 0000000000000000 0000000000000000 0000000020122ef8

ereport.fs.zfs.dev.open_failed ena=3c003c335ee00001 detector=[ version=0
scheme=”dev” device-path=”/virtual-devices@100/channel-devices@200/disk@2:a”
devid=”id1,vdc@n600601600e90400030015d587b914551″ ] pool=”rpool” pool_guid=
265979a7a33cdc54 pool_context=1 pool_failmode=”wait” vdev_guid=43d43f93d15c4a4
vdev_type=”disk” vdev_path=”/dev/dsk/c1d2s0″ vdev_devid=
“id1,vdc@n600601600e90400030015d587b914551/a” parent_guid=265979a7a33cdc54
parent_type=”root” prev_state=0

ereport.fs.zfs.vdev.no_replicas ena=3c003c335ee00001 detector=[ version=0
scheme=”zfs” pool=265979a7a33cdc54 vdev=265979a7a33cdc54 ] pool=”rpool”
pool_guid=265979a7a33cdc54 pool_context=1 pool_failmode=”wait” vdev_guid=
265979a7a33cdc54 vdev_type=”root” prev_state=1

ereport.fs.zfs.zpool ena=3c003c335ee00001 detector=[ version=0 scheme=”zfs”
pool=265979a7a33cdc54 ] pool=”rpool” pool_guid=265979a7a33cdc54 pool_context=1
pool_failmode=”wait”

Deferred dump not available.
dump subsystem not initialised
rebooting…
Resetting…

Resolution: Boot server using media and remove the zfs cache file as below.

{0} ok boot net

Welcome to the Oracle Solaris installation menu

1 Install Oracle Solaris
2 Install Additional Drivers
3 Shell
4 Terminal type (currently xterm)
5 Reboot

Please enter a number [1]: 3
To return to the main menu, exit the shell
root@dev-ebanking:/root#
root@dev-ebanking:/root# zpool import -f rpool
root@dev-ebanking:/etc/zfs# ls -l zpool.cache
-rw-r–r– 1 root root 1208 Jun 11 08:45 zpool.cache
root@dev-ebanking:/etc/zfs# rm zpool.cache
root@dev-ebanking:/etc/zfs# init 6
svc.startd: The system is coming down. Please wait.
svc.startd: 123 system services are now being stopped.
syncing file systems… done
rebooting…
Resetting…
NOTICE: Entering OpenBoot.
NOTICE: Fetching Guest MD.
NOTICE: Starting slave cpus.
NOTICE: Initializing LDCs.
NOTICE: Probing PCI devices.
NOTICE: Finished PCI probing.

SPARC T7-1, No Keyboard
Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.42.3, 32.0000 GB memory installed, Serial #83865806.
Ethernet address 0:14:4f:ff:b0:ce, Host ID: 84ffb0ce.

Boot device: /virtual-devices@100/channel-devices@200/disk@0 File and args:
WARNING: use-nvramrc? variable is set, continuing with signature verification

 
Leave a comment

Posted by on June 20, 2018 in Solaris 11, ZFS