Friday, November 18, 2011

Solaris vxvm move a disk group to another system

Move a disk group to another system
1. Unmount and stop all volumes in the disk group on the first system:
umount /mntdir
vxvol -g <diskgroup> stopall
2. Deport (disable all local access to) the disk group to be moved with this command:
vxdg deport <diskgroup>
3. Import (enable local access to) the disk group and its disks from the second system with:
vxdg import <diskgroup>
4. After the disk group is imported, start all volumes in the disk group with this command:
vxrecover -g <diskgroup> -sb
The options here indicate that VERITAS Volume Manager will start all the disabled volumes (-s) in the background (-b).