Sie sind auf Seite 1von 3

Tecnical Document on Veritas Volume Manager

Technical Document on Veritas Volume Manager


Moving Data disks between VXVM disk Groups without losing Data

Ver: 1.0 Date: 2010-09-21 Author: Orijit Nath E-mail: orijitnath@in.ibm.com

Technical Doc on Veritas

Page 1 of 3

Tecnical Document on Veritas Volume Manager

Overview
Several times we come across situations where requirements arise to reorganize the VERITAS Volume Manager Disk groups. Yes, it is really possible to move an existing disk with its contents to another disk group without losing any data. The only condition is the disk/disks should contain full copy of volume/s. The following example here shows the steps to move a disk (c3t0d0) having Single Volume from datadg to archive_dg. The disk contains a file system /usr/ibm, which is associated with the volume ibmvol and this is the only object on the disk.

Technical Steps
Please Take full backup of Volume / Volumes before doing that activity .It is Tested Procedure & didnt harm Data but still for Safety do have the backup 1. Stop any activity to the file system. 2. Unmount the file system: # umount /usr/ibm 3. Create a vxprint file dump of the ibmvol volume that will be used by vxmake once the disk is in its new disk group. # vxprint -hmvpsQq -g datadg test > /ibmvol.vxprint NOTE: If the volume is layered, add the -r option to the -hmv 4. Stop the volume: # vxvol -g datadg stop ibmvol 5. Remove the volume and disk from the disk group. This doesn't physically destroy any data # vxedit -g datadg -r rm ibmvol

# vxdg -g datadg rmdisk c3t0d0 If it is the only disk in DG , you need to destroy the DG . # vxdg destroy datadg

Technical Doc on Veritas

Page 2 of 3

Tecnical Document on Veritas Volume Manager

6. If the target disk group archive_dg is not new, then just add the disks without reinitializing them. # vxdg -g archive_dg adddisk disk1=c3t0d0 Otherwise create the disk group archive_dg with the disk. # vxdg init archive_dg disk1=c3t0d0 7. Rebuild the ibmvol volume from the vxprint dump taken in step 3. NOTE: If you want to create the volume with a new name, you need to edit the /ibmvol.vxprint and replace the name ibmvol to the new name. # vxmake -g archive_dg -d /ibmvol.vxprint 8. Bring the volume back online using the option init active instead of start. # vxvol -g archive_dg init active ibmvol 9. Edit /etc/vfstab to reflect the new device paths for the volume, ibmvol. 10. Remount the file system. # mount /usr/ibmvol

Technical Doc on Veritas

Page 3 of 3

Das könnte Ihnen auch gefallen