Tuesday, July 24, 2018

How Resize CFS filesystem


1. Find the CVM Master server. 
# vxdctl -c mode 

Find the CFS Primary for the file system you want to resize. 
# fsclustadm -v showprimary </mount_point> 

If the CFS Primary and CVM Master are not the same, change the CFS Primary designation to be the same as the CVM Master. 
# fsclustadm setprimary </mount_point> 

2. Freeze the cluster to protect against monitor timeout issues: 
# hagrp -freeze cvm 

3. Resize the file system and volume using 'vxresize'. 

Verify the resize operation can complete successfully. 
# vxresize -x -F vxfs -g [disk group] -o verify [volume] [ new size] 

If no errors are returned proceed with the resize operation. 
# vxresize -bx -F vxfs -g [disk group] [volume] [ new size] 
* -x is not necessary however it confirms the valued specified will actually increate the volume length. 
-x Requires that the operation represent an increase 
in the volume length. Fail the operation other- 
wise. 

4. At the end unfreeze the cvm servicegroup 
#hagrp -unfreeze cvm 

No comments:

Post a Comment