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 | > 5.1 Backing Up and Restoring by sfxdump and sfxrestore |
This section explains the procedure for fully restoring the GFS Local File System from the backup tape described in the previous section.
In this example, the backup data is restored to the GFS Local File System. If the representative partition of the GFS Local File System is different than that of the restoration destination, the /etc/vfstab file must be corrected to match the representative partition.
If a different GFS Local File System is to be restored, note the capacity of the restoration destination. Restoration may fail because of insufficient capacity.
1. Set for super user.
% su
2. If the GFS Local File System of the restoration destination is mounted, unmount the GFS Local File System.
# umount /mnt
3. Execute the sfxnewfs command to create the GFS Local File System of the restoration destination. The following example shows a single partition configuration where options are not specified.
# sfxnewfs /dev/sfdsk/gfs/rdsk/vol0a00
When the GFS Local File System is created, the contents of the previously created GFS Local File System are lost.
4. Mount the GFS Local File System. If an entry exists in the /etc/vfstab file shown above, the GFS Local File System can be simply mounted by specifying only the mount point.
# mount /mnt
5. Move the current working directory to the mount point.
# cd /mnt
6. Insert the appropriate tape, and execute the sfxrestore command to restore the GFS Local File System from the tape.
# sfxrestore rvf /dev/rmt/0
Verify volume and initialize maps
Media block size is 126
Dump date: Wed May 24 13:28:08 2000
Dumped from: the epoch
Level 0 dump of /mnt on kaizer1:/dev/sfdsk/gfs/dsk/vol0a00
Label: none
Begin level 0 restore
Initialize symbol table.
Extract directories from tape
Calculate extraction list.
Warning: ./lost+found: File exists
Make node ./etc
Make node ./etc/default
...
extract file ./etc/fs/nfs/mount
extract file ./etc/fs/ufs/mount
Add links
Set directory mode, owner, and times.
Check the symbol table.
Check pointing the restore
Here, each character of rvf in the first parameter has the following meaning:
All contents of the backup media are restored. Specify this character to restore the entire contents of the backup data.
Details are displayed. The name of each file is displayed when it is restored.
The read source is specified. Here, /dev/rmt/0 is specified as the read source.
To restore the incremental backup, restore from the backup tape with level 0 according to step 6. Then, repeat step 6 in ascending order based on the backup level.
7. Delete the restoresymtable file, which is a temporary file created by the sfxrestore command.
# rm /mnt/restoresymtable
8. To restore the GFS Local File System using a quota function, execute the sfxquotadm command with the -i option specified to reflect the contents of an external quotas file to an internal quotas file. For information on the sfxquotadm command, refer to the Appendix B, " Reference Manual." This step is not required if a quota function is not used.
# sfxquotadm -i /mnt
9. Move to a different directory.
# cd /
10. Unmount the newly restored GFS Local File System.
# umount /mnt
11. Execute the sfxdump command to fully back up the newly restored GFS Local File System. Insert a tape, and execute the sfxdump command to back up the GFS Local File System.
# sfxdump 0ucf /dev/rmt/0 /mnt
Back up the entire GFS Local File System immediately after it has been restored. This must be done because the assignment of the i-node numbers changes after restoration by the sfxrestore command. An incremental backup cannot thereby be correctly executed from the GFS Local File System before restoration.
12. Mount the restored GFS Local File System.
# mount /mnt
Contents Index |