This 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) or HP-UX system (big endian) to a Linux system (little endian).
To migrate a snapshot volume
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
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.
Refresh the plexes of the snapshot volume using the following command:
# vxsnap -g datadg refresh snapvol source=yes syncing=yes
The applications can now be unquiesced.
If you temporarily suspended updates to the volume by a database in 2, release all the tables from hot backup mode.
Use the vxsnap syncwait command to wait for the synchronization to complete:
# vxsnap -g datadg syncwait snapvol
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
Confirm whether the file system can be converted to the target operating system:
# fscdstask validate Linux /mnt
# umount /mnt
Convert the file system to the opposite endian:
# fscdsconv -f /tmp/fs_recov/recov.file /dev/vx/dsk/datadg/snapvol
This step is only required if the source and target systems have the opposite endian configuration.
Split the snapshot volume into a new disk group, migdg, and deport that disk group:
# vxdg split datadg migdg snapvol # vxdg deport migdg
Import the disk group, migdg, on the Linux system:
# vxdg import migdg
It may be necessary to reboot the Linux system so that it can detect the disks.
Use the following commands to recover and restart the snapshot volume:
# vxrecover -g migdg -m snapvol # vxvol -g migdg start snapvol
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