How to export and import disk group from one host to other by using Veritas Volume manager?
  
1.Check disk group which you want to export :
vxdisk list | grep mydg
2. Unmount file system which resides on the target disk.
  umount /software 
 3.Unshare all shares from this file systrem if they exist.
unshare 
  
4. For SAN presented disks represent LUN to target host and rescan disks 
5. On the source host make deport of disk group  
 vxdg deport  mydg
6.On the target host make import of disk group 
 vxdg nimport mydg
7. Rescan disks 
 vxdisk scandisks
8. Check that your disk group exist on target host
vxdisk list 
 DEVICE       TYPE            DISK         GROUP        STATUS
disk513    uto:cdsdisk    disk513      mydg                 online
 9. Restart and resynchronize the disk group: 
vxrecover -sn vol_name 
 10. Add vx disk device file  and mount dir  ( i.e. /dev/vx/dsk/mydg/lvol1  /software ) to etc/fstab  
11. Remount your fs
mount /software  
 
No comments:
Post a Comment