PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment)
Contents Index PreviousNext

Part 3 Global File Services Shared File System> Chapter 26 Migration to the GFS Shared File System

26.1 Migration from a UFS file system

Note the following when migrating from an existing UFS file system to a GFS Shared File System:

File system migration first requires that the files and directories on the UFS file system be saved in a separate location (for example, on a backup device or another file system). The new GFS Shared File System can then be configured and the files and directories expanded. Use the following procedure to accomplish this:

  1. Check that the UFS file system is not in use.
  2. Save all the files on the UFS file system to a backup device or another file system using the appropriate command such as tar(1) and cpio(1).
  3. Create the GFS Shared File System, as described in Section 21.2, "Creation" and Section 22.2, "Flow from file system creation to mount/unmount."
  4. Restore the saved files to the newly created GFS Shared File System.

The following shows an example of migration on the same partition.

# cd /ufsmnt                                    <- /ufsmnt is the mount point for the UFS file system from which to migrate.
# tar cvpf - . > /data/backup.tar            <-Save files.
# cd /
# umount /ufsmnt

Perform the GDS setup and the setup of a management partition.

(For details on GDS setup, see "PRIMECLUSTER Global Disk Services Configuration and Administration Guide")

# sfcnewfs -H mikan,mango /dev/FJSVgdhd/rdsk/gdhd0s1   <- Configure the GFS Shared File System.
# cd /sfcfs                                             <- Move to the mount point of /sfcfs.
# tar xvf /data/backup.tar                              <- Restore the backup file to the GFS Shared File System.

[Figure Migration from the UFS File System]


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2004