We are going to deport chg2_dg from node1 and and import on node2.
List the existing VGs
root@node1 # vxdg list
NAME STATE ID
locksdg enabled,shared,cds 1279009022.267.node1
ch2_dg enabled,cds 1279010647.271.node1
infranet_dg enabled,shared,cds 1279010983.273.node1
Unmount all the file systems related to ch2_dg from node1
root@node1 # df -h|grep ch2_dg
/dev/vx/dsk/ch2_dg/var_ch2_mqm_vol 48G 77M 45G 1% /var/ch2/mqm
/dev/vx/dsk/ch2_dg/opt_ch2_mqm_vol 4.0G 18M 3.7G 1% /opt/ch2/mqm
/dev/vx/dsk/ch2_dg/opt_ch2_rel_vol 98G 90M 92G 1% /opt/ch2/rel
root@node1 # umount /opt/ch2/rel
root@node1 # umount /opt/ch2/mqm
root@node1 # umount /var/ch2/mqm
Stop all the Veritas volumes from node1
root@node1 # vxvol -g ch2_dg stopall
Deporting the volume
root@node1 # vxdg deport ch2_dg
Node 2:
Listing all existing volume before import.
root@node2 # vxdg list
NAME STATE ID
locksdg enabled,shared,cds 1279009022.267.node1
infranet_dg enabled,shared,cds 1279010983.273.node1
Importing DG to node2
root@node2 # vxdg import ch2_dg
Mounting file systems on node2 (if mount point is not exist, it must be created before mount.)
root@node2 # vxvol -g ch2_dg startall
root@node2 # mount -F vxfs /dev/vx/dsk/ch2_dg/opt_ch2_rel_vol /opt/ch2/rel
root@node2 # mount -F vxfs /dev/vx/dsk/ch2_dg/opt_ch2_mqm_vol /opt/ch2/mqm
root@node2 # mount -F vxfs /dev/vx/dsk/ch2_dg/var_ch2_mqm_vol /var/ch2/mqm
No comments:
Post a Comment