System Recovery for the Solaris OS When the Meta Database Is Deleted AccidentallyVictor Feng, May 2008 This tech tip provides a recovery procedure that can be used when a meta database is accidentally destroyed or corrupted on a system that runs the Solaris 9 or 10 Operating System and Solaris Volume Manager. How Could the Meta Database Be Destroyed?This could happen in many ways. One of my test boxes had two versions of the Solaris OS on different disks. The Solaris 9 OS was mirrored on disk0 and disk1, and its meta database replicas were on slice 3 of disk0 and disk1. The Solaris 10 OS, which was not mirrored, was on disk3. From previous work I did on that machine, the Solaris 10 OS had meta database replicas in slice 3 of
disk0 and disk1. I ran Rebooting with command: boot Boot device: disk0 File and args: SunOS Release 5.9 Version Generic_122300-21 64-bit Copyright 1983-2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Cannot mount root on /pseudo/md@0:0,0,blk fstype ufs panic[cpu1]/thread=140a000: vfs_mountroot: cannot mount root 0000000001409970 genunix:vfs_mountroot+70 (0, 0, 0, 200, 1472178, 0) %l0-3: 0000000001465800 0000000001465800 0000000000002000 00000000014af400 %l4-7: 00000000014b5000 0000000001411e88 0000000001466000 0000000001469400 0000000001409a20 genunix:main+90 (1409ba0, f005ea98, 1409ec0, 393d61, 2000, 500) %l0-3: 0000000000000001 000000000140a000 0000000001413048 0000000000000000 %l4-7: 0000000078002000 000000000039c000 00000000014bdc10 0000000001067e98 skipping system dump - no dump device configured rebooting... How to Solve the Problem1. First, we need to halt the repeated rebooting to the OpenBoot PROM
If you are using ALOM (Advanced Light Out Management) from a remote
desktop, type If you are using a console in the server room, press the Stop-A, L1-A, or Break keys. 2. After you see the 3. After booting to the machine, mount the root slice of disk0, for example: # mount /dev/dsk/c1t0d0s0 /mnt 4. Modify the
5. Modify the Note: If you do not have records for meta devices, using the command 6. Solaris Volume Manager information is stored in three files: # cp /kernel/drv/md.conf /mnt/kernel/drv/md.conf # cp /etc/lvm/mddb.cf /mnt/etc/lvm/mddb.cf # cp /etc/lvm/md.cf /mnt/etc/lvm/md.cf 7. Then boot from disk0, and it will work.
Comments (latest comments first)Discuss and comment on this resource in the BigAdmin Wiki
Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License. |
BigAdmin SubscriptionsBigAdmin Areas
BigAdmin Sun Center
BigAdmin Topics | ||||||||||