[HPADM] SUMMARY extend a logical volume

From: Unix-Admin (Unix-admin@triad.rr.com)
Date: Thu Sep 05 2002 - 21:39:45 EDT


Thanks to everyone who responded.
This one did it but please see all the responses.
Tom

Simply do a "vgdisplay -v vg00". At the bottom of the output you will see the two (or more) disks in the volume group. In a simple dual disk mirrored volume group, the disks should have the same amount of space available (i.e. they are the same size to begin with and everything is mirrored once).
 
Note that if you are running 11.0 or above, the lvextend will also automagically extend the mirrors. At 10.20, you will need to extend the volume and then redo the mirrors (unmirror, remirror). At least that was my experience.

------------------------------------------------

pvdisplay -v your_second_disk will tell you all you want.

------------------------------------------------

pvdisplay /dev/dsk/<?> for whatever other disk(s) are in vg00. This will tell you how many free extents are on them.

------------------------------------------------
In general,
 
    vgdisplay -v vg00 | sed -n "/Physical volumes/,$p"
 
Look for two physical volumes that have enough space.
 
However, you may want to extend lvol7 into the same places
 
    lvdisplay -v /dev/vg00/lvol7 | sed -n "/Distribution/,/^$/p"
 
This will show you what physical volumes you are currently using (hopefully, two). The output
from the above vgdisplay will show you how much space you have "free" in those PVs.

------------------------------------------------

pvdisplay; or lvdisplay -v and compare them

------------------------------------------------

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:19 EDT