Previous  |  Next  >  
Product: Storage Foundation Guides   
Manual: Storage Foundation 4.1 Cross-Platform Data Sharing Administrator's Guide   

Data Migration Example

The following example demonstrates how to migrate a snapshot volume containing a VxFS file system from a Solaris SPARC system (big endian) to a Linux system (little endian):

  1. On the Solaris system, create the instant snapshot volume, snapvol, from an existing plex in the volume, vol, in the CDS disk group, datadg:
    vxsnap -g datadg make source=vol/newvol=snapvol/nmirror=1
  2. Quiesce any applications that are accessing the volume. For example, suspend updates to the volume that contains the database tables. The database may have a hot backup mode that allows you to do this by temporarily suspending writes to its tables.
  3. Refresh the plexes of the snapshot volume using the following command:
    vxsnap -g datadg refresh snapvol source=yes syncing=yes
  4. The applications can now be unquiesced. For example, if you temporarily suspended updates to the volume by a database in step 2, release all the tables from hot backup mode.
  5. Use the vxsnap syncwait command to wait for the synchronization to complete:
    vxsnap -g datadg syncwait snapvol
  6. Check the integrity of the file system, and then mount it on a suitable mount point:
    fsck -F vxfs /dev/vx/rdsk/datadg/snapvol
    mount -F vxfs /dev/vx/dsk/datadg/snapvol /mnt
  7. Confirm whether the file system can be converted to the target operating system:
    fscdstask validate Linux /mnt
  8. Unmount the snapshot:
    umount /mnt
  9. Convert the file system to the opposite endian:
    fscdsconv -f /tmp/fs_recov/recov.file /dev/vx/dsk/datadg/snapvol
    Note   Note    This step is only required if the source and target systems have the opposite endian configuration.
  10. Split the snapshot volume into a new disk group, migdg, and deport that disk group:
    vxdg split datadg migdg snapvol
    vxdg deport migdg
  11. Import the disk group, migdg, on the Linux system:
    vxdg import migdg
    Note   Note    It may be necessary to reboot the Linux system so that it can detect the disks.
  12. Use the following commands to recover and restart the snapshot volume:
    vxrecover -g migdg -m snapvol
    vxvol -g migdg start snapvol
  13. Check the integrity of the file system, and then mount it on a suitable mount point:
    fsck -t vxfs /dev/vx/dsk/migdg/snapvol
    mount -t vxfs /dev/vx/dsk/migdg/snapvol /mnt
 ^ Return to Top Previous  |  Next  >  
Product: Storage Foundation Guides  
Manual: Storage Foundation 4.1 Cross-Platform Data Sharing Administrator's Guide  
VERITAS Software Corporation
www.veritas.com