PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment) |
Contents Index |
Part 2 Global File Services Local File System | > Chapter 5 Backing Up and Restoring the GFS Local File System |
The sfxmkbkup command is a support tool for backing up and restoring by executing the dd command.
For the GFS Local File System, a file system can be created to have a multi-partition configuration. In this configuration, however, operation is complicated because the dd command must be executed several times to back up the GFS Local File System. In addition, the each backup of the multiple partitions must be restored to its correct partition at restoration. Otherwise, the file system may not be restored if the partitions are incorrect.
The sfxmkbkup command is a support tool that solves this problem. The sfxmkbkup command can be executed to create shell scripts for backing up and restoring the GFS Local File System. These commands thus enable safe backup and restoration of the GFS Local File System.
This section shows how to execute the sfxmkbkup command to back up and restore the GFS Local File System.
For information on the sfxmkbkup command, refer to Appendix B.2.8 "sfxmkbkup(1M)."
Super user authority (root) is required to execute the sfxmkbkup command and run shell scripts created by the sfxmkbkup command.
Assume the GFS Local File System has the multi-partition configuration shown below.
# sfxinfo /dev/sfdsk/gfs/dsk/vol0301
ID special size mount type
0 /dev/sfdsk/gfs/dsk/vol0301(3f40021) 25986 /mnt META
0 /dev/sfdsk/gfs/dsk/vol0301(3f40021) 105751 /mnt DATA
1 /dev/sfdsk/gfs/dsk/vol0302(3f40022) 5120 /mnt LOG
2 /dev/sfdsk/gfs/dsk/vol0303(3f40023) 131736 /mnt DATA
1. To generate the shell script for backing-up and restoring the GFS Local File System, specify in the sfxmkbkup command the representative partition and a device for performing the backup.
# sfxmkbkup /dev/sfdsk/gfs/rdsk/vol0301 /dev/rmt/0
After executing the sfxmkbkup command, the following two shell scripts are generated in the current working directory:
If the shell script indicated below already exists in the current working directory, the shell script will not be overwritten.
If you wish to change the shell script, delete it first and then execute the sfxmkbkup command.
2. Execute each of these scripts for backing up and restoring the GFS Local File System.
a) Execute backup by using the sfxfs.bkup shell script.
# ./sfxfs.bkup
b) Execute the restoring by using the sfxfs.rstr shell script.
The partition for the restoring must be the same one for the backing-up.
# ./sfxfs.rstr
The device size required for backup can be estimated by using the sfxmkbkup command before performing the backup. Prepare the required medium for backup in accordance with the estimate.
Specify the representative partition to execute the sfxmkbkup command.
# sfxmkbkup -e /dev/sfdsk/gfs/rdsk/vol0301
special size(KB)
/dev/sfdsk/gfs/dsk/vol0301 131760
/dev/sfdsk/gfs/dsk/vol0302 131760
/dev/sfdsk/gfs/dsk/vol0303 131760
If the sfxadd command is executed to add a volume, execute the sfxmkbkup command again to create the backup and restoration shell scripts. Also, restoration from a backup media is disabled before the volume is added. Therefore, Fujitsu recommends that the backup shell script created after the volume is added be run again for another backup.
Contents Index |