PRIMECLUSTER Global File Services Configuration and Administration Guide 4.1 (Solaris(TM) 10 Operating System)
Contents Index PreviousNext

Chapter 15 Migration to the GFS Shared File System

15.1 Moving the existing files

When moving existing files that were created on a file system such as UFS to the GFS Shared File System, be aware of the following important information.

File system migration first requires that files and directories be backed up on another location (for example, on a storage device or another file system). Then, a new GFS Shared File System should be configured, and the files and directories can be expanded. Take the following procedures:

  1. Check that the file system is not being used.
  2. Save all of the files on the UFS file system on a backup device or another file system using a command such as tar(1) and cpio(1).
  3. Create the GFS Shared File System, as described in "10.2 Creation", "11.2 Creation."
  4. Expand the saved files on the created GFS Shared File System.

The following example shows how to move the file of the UFS file system that is mounted on /mnt to the GFS Shared File System on the same device after saving it in /data temporarily.

1. Back up files

# cd /mnt <Enter>
# tar cvpf - . > /data/backup.tar <Enter>
# cd / <Enter>
# umount /mnt <Enter>

2. Configure GFS Shared File System

Create a GFS Shared File System and mount it according to "10.2 Creation" or "11.2 Creation."

In this example, the mount point is /sfcfs.

3. Restore the file.

# cd /sfcfs <Enter>
# tar xvf /data/backup.tar <Enter>

[Figure Migration from UFS]


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006