hpuxextendcfs
Extend Clustered File System on HP-UX 11.23 Service Guard Cluster Nodes
Using Existing LUNs
- Find the master node by executing the following command and execute the rest of the CFS commands on that master node:
vxdctl -c mode
- Assuming that one or more LUNs has already been attached to all nodes, find the newly added disk:
vxdisk list
- Find the free space to be sure there's enough. This will show the available space in kB
vxassist -g (disk group name) -p maxsize
- Get the logical volume name for the file system being extended
bdf
- Extend the logical volume.
vxassist -g (disk group name) growby (logical volume name) (size in kB)
- Find the current total size
vxprint -g (disk group name) -pl
- Extend the file system
fsadm -F vxfs -b (total size) (mount point)
New LUNS Added
- Find the master node by executing the following command and execute the rest of the CFS commands on that master node:
vxdctl -c mode
- Assuming that one or more LUNs has already been attached to all nodes, find the newly added disk:
vxdisk list
If you're not able to find the newly added disk do the following steps:
vxdisk scandisks vxdisk list
If the problem persists, carry out the following steps. This won't do any harm on your running system.
mv /etc/vx/disk.info /etc/vx/disk.info.old vxconfigd -m -k enable
- Initialize new disks
/usr/lib/vxvm/bin/vxdisksetup -i cxtxdx
- Add new disks to Disk Group
vxdg -g 9disk group name) adddisk disk1 disk2 disk3
- Verify the Disk Group
vxdisk list
- Find the free space. This will show the available space in kB of existing LUNs and the new LUNs
vxdg -g (disk group name) free
- Extend the Volume.
vxassist -g (disk group name) growby (logical volume name) (size in kB)
- Find the current total size
vxprint -g (disk group name) -pl
- Extend the file system
fsadm -F vxfs -b (total size) (mount point)
hpuxextendcfs.txt · Last modified: 2017/11/09 04:09 by mark