Tuesday, May 12, 2009

steps to resize vxfs,ufs file systems on Veritas volumes

You resize a Veritas File System by using the fsadm command
-----------------------------------------------------------
fsadm -F vxfs [-b newsize] [-r rawdev] mount_point


1. Verify free space on underlying device:
# vxdg -g "datavol" free
2. Expand the volume using vxassist:
# vxassist -g "datadg" growto "myvol" "newsize"
example: #vxassist -g testdg growto datavol 1024000
3. Expand the file system using fsadm:
# fsadm -F vxfs -b "newsize" \-r /dev/vx/rdsk/testdg/datavol /datavol
4. Verify that the file system was resized by using df:
# df -k /datavol

for ufs: file system growing

-------------------------------------------------------
# vxresize -b -F ufs -g "name_dg" "volume" +"MB"


example:
# vxresize -b -F ufs -g rootdg rootvol1 +20000m
# vxresize -g mitdg -F ufs myvol1 +1g

No comments:

Post a Comment