PRIMECLUSTER Global File Services Configuration and Administration Guide 4.1 (Linux)
Contents Index PreviousNext

Chapter 13 Migration to the GFS Shared File System

This chapter describes how to migrate from the ext2/ext3 file system to the GFS Shared File System.

Note the following items when migrating from the existing ext2/ext3 file system to the GFS Shared File System:

 

A file with a hole means a file containing a part to which no data block has been assigned.

 

File system migration first requires that files and directories on the ext2/ext3 file system 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. Be sure the relevant ext2/ext3 file system is not in use.
  2. Save all of the files on the ext2/ext3 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 "Creation", "Flow from file system creation to mount/unmount."
  4. Expand the saved files on the created GFS Shared File System.

     

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

# cd /extmnt                                    <- /extmnt is the mount point of ext2/ext3 from which migration is performed.
# tar cvpf - . > /data/backup.tar            <-Back up files.
# cd /
# umount /extmnt
 
Perform GDS settings and management partition settings.
(For details about GDS settings, see "PRIMECLUSTER Global Disk Services Configuration and Administration Guide.")
 
# sfcmkfs -o node=mikan,mango /dev/sfdsk/gfs/dsk/volume1     <- Configure GFS.
# sfcmount /dev/sfdsk/gfs/dsk/volume1 /sfcfs                <- Mount on GFS.
# cd /sfcfs                                             <- Move to the GFS Shared File System mount point.
# tar xvf /data/backup.tar                              <- Expand backup files on the GFS Shared File System.

 

[Figure Migration from ext2/ext3]

 


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2004