Symantec logo

Migrating a file system on an ongoing basis

This example describes how to migrate a file system between the Solaris OS and Linux on an ongoing basis. Some of the following steps require a backup of the file system to be created. To simplify the process, you can create one backup before performing any of the steps instead of creating multiple backups as you go.

 To perform an ongoing migration

  1. Use the following command to ensure that there are no files in the file system that will be inaccessible after migrating the data due to large file size or to differences in user or group ID between platforms:

    # fscdsadm -v -t target mount_point

If such files exist, move the files to another file system or reduce the size of the files.

  1. Add SunOS and Linux to the target_list file:

# fscdsadm -o add -t os_name=SunOS /mnt1

# fscdsadm -o add -t os_name=Linux /mnt1

  1. Enforce the limits:

# fscdsadm -l enforce mount_point

This is the last of the preparation steps. When the file system is to be migrated, it must be unmounted, and then the storage moved and mounted on the target system:

  1. Unmount the file system:

    # umount mount_point

  2. Make the file system suitable for use on the specified target.

    See "Converting the byte order of a file system" on page 49.

  3. Make the physical storage and Volume Manager logical storage accessible on the target system by exporting the disk group from the source system and importing the disk group on the target system after resolving any other physical storage attachment issues.

    See "Maintaining your system" on page 27.

  4. Mount the file system on the target system.