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 contains an example of backing up an entire GFS Local File System specified in the /etc/vfstab file shown below. Here, /dev/rmt/0 is the backup destination tape drive.
% cat /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
...
/dev/sfdsk/gfs/dsk/vol0a00 /dev/sfdsk/gfs/rdsk/vol0a00 /mnt sfxfs 2 yes -
...
The character special file in the representative partition of the GFS Local File System is /dev/sfdsk/gfs/rdsk/vol0a00. The mount point is /mnt.
1. Set for super user.
% su
2. Unmount the GFS Local File System to be backed up, or set the system to single-user mode so that the GFS Local File System is not updated. In the following example, the GFS Local File System is unmounted.
# umount /mnt
The GFS Local File System can be backed up while the file system is mounted. However, the GFS Local File System must be set to non-updated status. If the GFS Local File System is updated during backup, the contents of the backup may be invalid.
3. Set a tape to back up the GFS Local File System.
# sfxdump 0ucf /dev/rmt/0 /dev/sfdsk/gfs/rdsk/vol0a00
DUMP: Writing 63 Kilobyte records
DUMP: Date of this level 0 dump: Tue May 23 11:20:14 2000
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/sfdsk/gfs/rdsk/vol0a00 (kaizer1:/mnt) to /dev/rmt/0.
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Estimated 282 blocks (141KB).
DUMP: Dumping (Pass III) [directories]
DUMP: Dumping (Pass IV) [regular files]
DUMP: 250 blocks (125KB) on 1 volume at 1838 KB/sec
DUMP: DUMP IS DONE
DUMP: Level 0 dump on Tue May 23 11:20:14 2000
Here, each character of 0ucf in the first parameter has the following meaning:
This is the backup level. The number 0 means a full backup. A number between 1 and 9 means an incremental backup. In this example, the file system is backed up as an incremental backup from the latest backup at a lower level than the specified backup level.
The dump record file, /etc/sfxfs_dumpdates, is updated. Specify this character for full backup or incremental backup.
The contents are backed up on tape.
The write destination is specified. Here, /dev/rmt/0 is specified as the write destination.
Contents Index |