Volume Management
Add a volume (Normal UFS mounted filesystem)
# # vxassist -g datadg maxsize # # iostat -En > /tmp/iostat_en_<date> # # devfsadm # # iostat -En > /tmp/iostat_en_<date>.NEW # # luxadm probe # If no disk appears add disk manually ## # vxdmpadm listctlr all ## # cfgadm -c configure c2 ## # cfgadm -c configure c3 ## # luxadm probe # Add label to new disk # # format # vxdctl enable # vxdiskadm Add the new disk to <datadg> # vxassist -g datadg maxsize # vxassist -g datadg -U fsgen make <vol> 10g Create a new 10Gb volume # echo y | newfs /dev/vx/rdsk/datadg/<vol> # fsck /dev/vx/rdsk/datadg/<vol> # cp /etc/vfstab /etc/vfstab.<date> # vi /etc/vfstab /dev/vx/dsk/datadg/<vol> /dev/vx/rdsk/datadg/<vol> /export/home2 ufs 3 yes logging # mkdir -p /export/home2 Volume mountpoint # mount /export/home2 # df -k
For Oracle volumes # vxedit set user=oracle group=dba mode=0775 u02_oradata # chown oracle:dba /u02/oradata
Remove a volume
# dmesg Check for recent errors # df -k Check the volume is not mounted # vxprint <vol> # vxassist -g datadg maxsize Check current space in datadg # vxvol -g datadg stop <vol> Stop the volume # vxprint <vol> Check volume is stopped # vxedit -g datadg -rf rm <vol> Remove volume # vxassist -g datadg maxsize Check for new space # dmesg Check for any errors
Increase a volume
# dmesg Check for recent errors # df -k /oracle_backups Check current size of filesystem, 5Gb # vxassist -g datadg maxsize Check available space in datadg # vxprint orabck_filvp Check current size LENGTH=10240000 # vxassist -g datadg -U fsgen growby orabck_filvp 10g Increase vol by 10gb # vxprint orabck_filvp Check new size LENGTH=31211520 # /usr/lib/fs/ufs/mkfs -F ufs -M /oracle_backups /dev/vx/rdsk/datadg/orabck_filvp 31211520 # df -k /oracle_backups Check new size of filesystem, should by 15Gb # vxprint orabck_filvp Check volume is ENABLED # dmesg Check for recent errors