to increase a volume and the filesystem with Veritas, we need to know first what is the max size we can increase to
# vxassist -g oradg maxsize Maximum volume size: 214847488 (104906Mb)
Also the volume
# vxassist -g oradg maxgrow dpp Volume dpp can be extended by 214847488 to: 361648128 (176586Mb)
with below commands we assure which filesystem it has.
# fstyp /dev/vx/dsk/oradgbindg/dpp vxfs # fstyp /dev/vx/dsk/oradg/dpp ufs
Above parameter will be use with -F to establish what is the current filesystem type.
If we have a UFS filesystem:
# /usr/lib/vxvm/bin/vxresize -g oradg -F ufs dpp +40G
Otherwise, if we have vxfs then:
# /usr/lib/vxvm/bin/vxresize -g orabindg -F vxfs oraexchange +60G
Size parameter can be expressed with
- +60G, that will increase in that size.
- 60G that will increase to this size.
- -60G that will decrease in that size.
This is a script to check size and EMC id in a veritas environment:
# cat check.sh for i in ` vxdisk -o alldgs list | awk '$2=="auto:cdsdisk" {print $1}'` do echo -n "$i: " data=`vxdisk list $i | grep "^public:"| awk -F"=" '{ print $4}'| awk '{print $1}'` echo "($data/2034)/1024" | bc emcdisk=$(vxdisk list $i| tail -1| awk 'BEGIN {FS=" "}{print $1}') for j in $emcdisk do echo -n "EMC disk ID: " inq.sol64 -showvol -dev /dev/rdsk/$j|tail -1 | awk 'BEGIN {FS=":"}{print $6}' done done