LVM Volume Group Dynamic LUN Expansion (DLE) and Contraction (DLC) (September 2009)

25
VG Name /dev/vg01
PV Status available
Allocatable yes
VGDA 2
Cur LV 1
PE Size (Mbytes) 4
Total PE 17501
Free PE 7501
Allocated PE 10000
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On
--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg01/lvol1 10000 10000
--- Physical extents ---
PE Status LV LE
00000 current /dev/vg01/lvol1 00000
00001 current /dev/vg01/lvol1 00001
00002 current /dev/vg01/lvol1 00002
00003 current /dev/vg01/lvol1 00003
00004 current /dev/vg01/lvol1 00004
00005 current /dev/vg01/lvol1 00005
*Entries deleted for brevity*
09994 current /dev/vg01/lvol1 09994
09995 current /dev/vg01/lvol1 09995
09996 current /dev/vg01/lvol1 09996
09997 current /dev/vg01/lvol1 09997
09998 current /dev/vg01/lvol1 09998
09999 current /dev/vg01/lvol1 09999
10000 free 00000
10001 free 00000
10002 free 00000
*Entries deleted for brevity*
17496 free 00000
17497 free 00000
17498 free 00000
17499 free 00000
17500 free 00000
# diskinfo /dev/rdsk/c4t2d0
SCSI describe of /dev/rdsk/c4t2d0:
vendor: HP 73.4G
product id: ST373405FC
type: direct access
size: 71687369 Kbytes
bytes per sector: 512
Out of17501 extents on the disk /dev/rdsk/c4t2d0, the first 10,000 extents are allocated;
the rest of the extents are free.
2. Run the vgmodify command with the –C option in review mode to determine if you can
reduce the physical volume size to 50 GB. Note: You can run review mode with and without
the –a option. The -a option indicates that the vgmodify command can be run when the
volume group is active (online vgmodify).
# vgmodify -r -C 51200m vg01 /dev/rdsk/c4t2d0 #Offline Mode
or
# vgmodify -a -r -C 51200m vg01 /dev/rdsk/c4t2d0 #Online mode