How do you rename a shared disk group cfs_group_name configured under SFCFSHA ?
Assumptions:
- cfs_group_name is VCS cluster group importing DG on multiple nodes at same time.
- Shred filesystem is mounted on all cluster nodes in read-write mode
hagrp -offline cfs_group_name -sys node1
hastatus -sum
vxdctl -c mode
vxdg deport old_dg_name
vxdg -n app_data_dg -s import old_dg_name ## -s == shared
haconf -makerw
hares -modify cvmvoldg1 CVMDiskGroup app_data_dg
hares -modify cfsmount1 BlockDevice /dev/vx/dsk/app_data_dg/appvol
haconf -dump -makero ## it will update config on all nodes
hagrp -online cfs_group_name -sys node1
df -hP ; tailf /var/VRTSvcs/log/engine_A.log
/usr/sbin/vxedit -g diskgroup rename oldname newname
Assumptions:
- cfs_group_name is VCS cluster group importing DG on multiple nodes at same time.
- Shred filesystem is mounted on all cluster nodes in read-write mode
- Bring cfs_group_name offline on all nodes. Repeat below for each node
hagrp -offline cfs_group_name -sys node1
- Confirm cfs_group_name is offline on all nodes
hastatus -sum
- Fine out which node is master node
vxdctl -c mode
- From master node, deport DG on one node. It will deport on on all other node
vxdg deport old_dg_name
- Import DG on master node with new name
vxdg -n app_data_dg -s import old_dg_name ## -s == shared
- Update Veritas config file
haconf -makerw
hares -modify cvmvoldg1 CVMDiskGroup app_data_dg
hares -modify cfsmount1 BlockDevice /dev/vx/dsk/app_data_dg/appvol
haconf -dump -makero ## it will update config on all nodes
- Bring cfs_group_name online on all nodes (repeat below on each node)
hagrp -online cfs_group_name -sys node1
- Verify shared filesystem has been monted sucessfully and there is no error in log
df -hP ; tailf /var/VRTSvcs/log/engine_A.log
- On related note : How to rename volume of shared disk group ?
/usr/sbin/vxedit -g
No comments:
Post a Comment