Notes on Mirroring with Logical Volume on HP/UX

 

How to Create a New Mirrored Logical Volume

    # vgdisplay -v vg00
    # lvcreate /dev/vg00
    # lvextend -L 2048 /dev/vg00/lvol9 /dev/dsk/c0t0d0
    # newfs -F vxfs -o largefiles /dev/vg00/rlvol9
    # lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c1t0d0

How to Mirror a Root Disk

   # pvcreate -f -B /dev/rdsk/
   # vgextend /dev/vg00/ /dev/dsk/
   # mkboot -b /dev/dsk/ /dev/dsk/
   # mkboot -a "hpux -lq" /dev/dsk/
   # lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/
(repeat for all logical volumes)
   # lvlnboot -R

Verify by rebooting, stop autoboot with ESC, boot p1 (or similar device).

How to Extend a Logical Volume

Example, lvol4 is 1.5GB, should be 2.5GB.

   # umount 
   # vgdisplay -v vg00  (if volume is mirrored, free extents should be halved)
   # lvextend -L 2500 /dev/vg00/lvol4
   # fsadm -F vxfs -b 2560000 /dev/vg00/lvol4

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>