1837957 Members
3007 Online
110124 Solutions
New Discussion

root mirror gone bad

 
justin_83
Advisor

root mirror gone bad

I was mirroring my root partition and mirrored lvol1, lvol3 but got the following error when I tried to do lvol4
/# lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t6d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol4" has been successfully extended.
Warning: Logical Volume number "1073741827" found on physical volume not found in "/dev/vg00".
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

Whe I go to the /etc dir it is empty.
Every time I do a mount I get "Memory Fault"

/#lvdisplay -v /dev/vg01/lvol1|more
The version of /etc/lvmtab file is not correct.
Remove /etc/lvmtab file and execute vgscan command to recreate the file.
lvdisplay: "/etc/lvmtab" could not be read into memory.
lvdisplay: Cannot display logical volume "/dev/vg01/lvol1".
2 REPLIES 2
Rita C Workman
Honored Contributor

Re: root mirror gone bad

Hi Justin,

You mentioned mirroring your root or boot disk, but you didn't mention if you set this disk up to be bootable before mirroring. Now, what I am thinking may have happened is that somehow your mirror disk got sync'd back to your root...in other words it got sync'd backwards, thus wiping out your root disk. I am hoping you have made ignite tapes (make_recovery), so you can recover from them...

Now I am also adding a thread (... I have used myself and found quite handy) that gives step by step on setting up the mirror boot disk. The only difference is that I don't do them in numerical sequence, I do them in the same order they load up...lvol3,lvol1,lvol8, etc.:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x1ffea14d9abcd4118fef0090279cd0f9,00.html

/rcw
justin_83
Advisor

Re: root mirror gone bad

Here are the steps I followed:
1.pvcreate -B /dev/rdsk/c2t6d0 (create bootable PV with -B option)
2.vgextend /dev/vg00 /dev/dsk/c2t6d0 (add PV to existing root VG)
3.mkboot /dev/rdsk/c2t6d0 (put boot utilities in the boot area of new PV)
4.mkboot -a "hpux -lq (0/0/2/1.6.0;0)/stand/vmunix" /dev/rdsk/c2t6d
(add the AUTO file to the boot LIF area)
5.lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t6d0 (mirrors root LV's to new disk)
6.continue step 5 for all vg00 logical volumes (determine with vgdisplay -v /dev/vg00|more)