Sharing Knowledge | System Admin Articles

Adding mirroring to the root vg - HP Unix

  1. pvcreate -B /dev/rdisk/c2t2d0
    • Create the PV on the second disk so that LVM can manage it
    • -B makes it a bootable volume
  2. mkboot /dev/rdsk/c2t2d0
    • Installs the boot files on the second disk
  3. mkboot -a "hpux-lq (;0)/stand/vmunix" /dev/rdsk/c2t2d0
    • Creates an autoboot file on the disk, with information on how to boot
  4. vgextend /dev/vg00 /dev/dsk/c2t2d0
    • extends the volume group to include this second disk.
  5. vgdisplay -v vg00
    • To verify that the second disk is now part of the volume group
  6. lvlnboot -v
    • To verify that the system thinks this disk can boot
  7. lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d0
    • This extends the logical volume to the mirrored disk, effectively creating the mirrored copy.
    • This command needs to be run for each logical volume in the volume group

Labels: HP-UX

My Profile PhotoAbout the Author

I'm Madesh, An UNIX System Admin by Profession. I'm having Expertise in HP-UX and Linux Administration. I have done lot of work on the infrastructure Mgmt side in UNIX system administration, Hardware, Storage (EMC/ HP EVA). I'm blogging since 2010.
Follow Me On Twitter or On Facebook

0 Comments for "Adding mirroring to the root vg - HP Unix"

What do you think about this Article? Add your Opinion..!

Back To Top