CREATING A FILE SYSTEM IN HACMP
/usr/sbin/cluster/sbin/cl_crfs -cspoc “-ncws,pci” -v jfs2 -gconvg -a size=32786 -m/test-export -prw -a size=4096
In the above command –n for nodes here pci and cws are nodes
-v for type of file system –g for vgname
-m for mount point
-p for permissions
-a size is size in blocks
EXTENDING A FILE SYSTEM IN HACMP
# /usr/es/sbin/cluster/sbin/cl_chfs -cspoc "-g testrg" -a size=+32768 /shfs
cws: File System size changed to 65536
#
In the above command –g for resource group
-a size is the size in block
CHECKING THE FILE SYSTEM
# df -k /shfs
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/lv1 32768 31408 5% 4 1% /shfs
#
#
MOVE THE RG TO OTHER NODE AND VERIFY FILE SYSTEM
# /usr/es/sbin/cluster/utilities/clRGmove -g testrg -n pci -m
Attempting to move group testrg to node pci.
Waiting for cluster to process the resource group movement request....
Waiting for the cluster to stabilize............
Resource group movement successful.
Resource group testrg is online on node pci.
REDUCING VG IN HACMP
# ./cl_reducevg -cspoc "-g testrg" -R pci sh1vg hdisk4