Sunday, August 31, 2008

Solaris VXVM grow online filesystem

root# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 sliced rootdisk rootdg online
c0t1d0s2 sliced x50008 x500 online
c0t2d0s2 sliced x50007 x500 online
c0t3d0s2 sliced x50004 x500 online
c2t0d0s2 sliced disk01 rootdg online
c2t1d0s2 sliced x50002 x500 online
c2t2d0s2 sliced x50006 x500 online spare
c2t3d0s2 sliced x50003 x500 online
c3t0d0s2 sliced x50009 x500 online
c3t1d0s2 sliced x50001 x500 online
c3t3d0s2 sliced x50005 x500 online
root# vxassist -g x500 maxsize
Maximum volume size: 156450816 (76392Mb)

root# df -k /opt/app/backup
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/x500/app-back
9654053 9149133 473813 96% /opt/app/backup
root#
root# ./vxresize -F vxfs -g x500 app-back +3g
root# df -k /opt/app/backup
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/x500/app-back
12799781 9149903 3422212 73% /opt/app/backup
root#