# vxdisk -oalldgs list
DEVICE TYPE DISK GROUP STATUS
c2t50060E80004372C0d4s2auto:- - - error >>>>>>> disk which will be used for expansion
c2t50060E80004372C0d12s2auto:cdsdisk failoverdg02 failoverdg online
c2t50060E80004372C0d13s2auto:cdsdisk failoverdg03 failoverdg online
c2t50060E80004372C0d15s2auto:- - - error >>>>>>> disk which will be used for expansion
The volume to be grown is testingvol which is a mirrored volume:
# vxprint -thg failoverdg testingvol
v testingvol - ENABLED ACTIVE 10240 SELECT - fsgen
pltestingvol-01 testingvol ENABLED ACTIVE 10240 CONCAT - RW
sdfailoverdg02-02 testingvol-01 failoverdg02 410144 102400 c2t50060E80004372C0d12 ENA
pltestingvol-02 testingvol ENABLED ACTIVE 10240 CONCAT - RW
sdfailoverdg03-06 testingvol-02 failoverdg03 1250368 10240 0 c2t50060E80004372C0d13 ENA
The current size of the filesystem is as follows:
# df -k /testingvol
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/failoverdg/testingvol 5120 962 3906 20% /testingvol
The following are the steps needed to grow the volume using the two new disks:
1.Initialise the two disks:
#vxdisksetup -i c2t50060E80004372C0d4 format=cdsdisk
#vxdisksetup -i c2t50060E80004372C0d15 format=cdsdisk
2. Add these two disks into the failoverdg diskgroup
# vxdg -g failoverdg adddisk failoverdg01=c2t50060E80004372C0d4s2
# vxdg -g failoverdg adddisk failoverdg04=c2t50060E80004372C0d15s2
3. Determine the maximum size this volume can grow to using those two disks.
# vxassist- g failoverdg maxgrow testingvol alloc=failoverdg01,failoverdg04
Volume testingvol can be extended by 1871872 to: 1882112(919Mb)
5. Then grow the volume as well as the file system using the following command (using the size from the above output):
# vxresize -b -F vxfs -g failoverdg testingvol 1882112 alloc=failoverdg01,failoverdg04
6. check and make sure the size of the volume and filesystem have both grown:
# vxprint -thg failoverdg testingvol
v testingvol - ENABLED SYNC 1882112 SELECT - fsgen
pltestingvol-01 testingvol ENABLED ACTIVE 1882112 CONCAT - RW
sdfailoverdg02-02 testingvol-01 failoverdg02 410144 102400 c2t50060E80004372C0d12 ENA
sdfailoverdg04-01 testingvol-01 failoverdg04 0 1871872 10240 c2t50060E80004372C0d15 ENA
pltestingvol-02 testingvol ENABLED ACTIVE 1882112 CONCAT - RW
sdfailoverdg03-06 testingvol-02 failoverdg03 1250368 10240 0 c2t50060E80004372C0d13 ENA
sdfailoverdg01-06 testingvol-02 failoverdg01 430624 1871872 10240c2t50060E80004372C0d4 ENA
# df -k /testingvol
/dev/vx/dsk/failoverdg/testingvol 941056 1186 881135 1% /testingvol