How to extend veritas filesystem on IBM AIX/Linux ?
In this article, we will look steps how to extend a VXFS(Veritas Filesystem) on an IBM AIX or Linux box.
Lets have a look step by step how to perform this task.
1. First check out the partition we want to increase.
ngeaix001 --> df -g /nfspart/products/interfaces /dev/vx/dsk/nfspdg/nfsp_vol 18.00 13.47 26% 42544 2% /nfspart/products/interfaces ngeaix001 -->
2. Check out the space available on that DG(diskgroup)
ngeaix001 --> vxassist -g nfspdg maxsize Maximum volume size: 3921920 (1915Mb)
3. Now give LUN id to storage team to increase this LUN by 20GB for both disks.
Lets see the steps to get the LUN ID.
ngeaix001 --> vxdisk list | grep -i nfspdg 3pardata0_13005 auto:cdsdisk hdisk12 nfspdg online thinrclm shared 3pardata1_12206 auto:cdsdisk hdisk5 nfspdg online thinrclm shared ngeaix001 --> ngeaix001 --> lsattr -El hdisk12 clr_q no Device CLEARS its Queue on error True location Location True lun_id 0x6000000000000 Logical unit number ID False node_name 0x2ff70002ac00c71e Node name False pvid none Device support False q_err yes Use QERR bit True q_type simple Queuing TYPE True queue_depth 16 Queue DEPTH True reassign_to 120 REASSIGN time out value True rw_timeout 60 Read/Write time out value True scsi_id 0x64e5c0 SCSI ID False sn_location 2410 N/A False start_timeout 60 START unit time out value True ww_name 0x21230002ac00c71e World wide name False ngeaix001 -->
4. Now after disk size increase, rescan the disk.
# cfgmgr or, # vxdctl -c mode
5. Now increase the Veritas Diskgroup first by occupying new disk space.
ngeaix001 --> df -g /nfspart/products/interfaces /dev/vx/dsk/nfspdg/nfsp_vol 18.00 13.47 26% 42544 2% /nfspart/products/interfaces ### Try to increase the partition directly, it will throw an error. ngeaix001 --> vxresize -F vxfs -g nfspdg nfsp_vol +12G VxVM vxassist ERROR V-5-1-436 Cannot allocate space to grow volume to 62914560 blocks VxVM vxresize ERROR V-5-1-4703 Problem running vxassist command for volume nfsp_vol, in diskgroup nfspdg ### Resize the disks increased. ngeaix001 --> vxdisk -f -g nfspdg resize 3pardata0_13005 ngeaix001 --> vxassist -g nfspdg maxsize Maximum volume size: 3921920 (1915Mb) ngeaix001 --> vxdisk -f -g nfspdg resize 3pardata1_12206 ngeaix001 --> vxassist -g nfspdg maxsize Maximum volume size: 45862912 (22394Mb)
6. Now increase the partition or volume.
ngeaix001 --> vxresize -F vxfs -g nfspdg nfsp_vol +12G ngeaix001 --> df -g | grep -i interface /dev/vx/dsk/nfspdg/nfsp_vol 30.00 24.72 18% 42544 1% /nfspart/products/interfaces ngeaix001 -->