LVM and VxVM

resyncing the primary boot disk

 
SOLVED
Go to solution
Donald C Nelson
Frequent Advisor

resyncing the primary boot disk

My primary mirrored boot disk failed and after I replaced it and try to start the restore with:

vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t0d0,

This is the message that I receive:

vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t0d0
vgcfgrestore: Cannot restore Physical Volume "/dev/dsk/c1t0d0",
Detach the PV or detactivate the VG, before restoring the PV.
6 REPLIES 6
Pete Randall
Outstanding Contributor
Solution

Re: resyncing the primary boot disk

Donald C Nelson
Frequent Advisor

Re: resyncing the primary boot disk

But can I vgreduce the primary boot disk from vg00 if it is already running on the alternate.
IT_2007
Honored Contributor

Re: resyncing the primary boot disk

yes. You can do it and check to see which disk is booted off.

echo "boot_string/S" |adb /stand/vmunix /dev/mem

if it is vpar use /dev/kmem instead of /dev/mem

If it shows booted off from alternate disk then you can break mirror and reduce primary disk.
IT_2007
Honored Contributor

Re: resyncing the primary boot disk

For ex:

# echo "boot_string/S" |adb /stand/vmunix /dev/mem
boot_string:
boot_string: disk(0/0/1/1.2.0.0.0.0.0;0)/stand/vmunix
root@apphxd01 [/root]
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Root: lvol3 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Swap: lvol2 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Dump: lvol2 on: /dev/dsk/c1t2d0, 0

Kevin Wright
Honored Contributor

Re: resyncing the primary boot disk

how did you get to this point? vgreduce, replace the disk, pvcreate/vgextend? if so, vgreduce, vgcfgrestore, vgsync, mkboot...
Donald C Nelson
Frequent Advisor

Re: resyncing the primary boot disk

Thanks everyone, the reason I couldn't do a vgcfgrestore online was because I was missing PHCO_34196 which allows online hot swapping.