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 4 Management of the GFS Local File System |
If the file system is damaged or becomes inconsistent because of a system failure or other errors, it must be checked and recovered with the fsck_sfxfs(1M) command.
The GFS Local File System supports the update log function that makes high-speed recovery from a system failure or other faults possible. When the update log function is enabled, update log replay can recover the file system at high speed within a given time regardless of the size of the file system. Update log replay updates meta-data in the update log area that has not been updated.
When "-o log" is specified or the default is used, fsck_sfxfs(1M) recover the file system by update log replay.
If update log data is physically damaged, fsck_sfxfs(1M) does not perform update log replay but automatically performs a full check of the file system. However, to support a quick restart of system operation, fsck_sfxfs(1M) contains an option (-o elog) that suppresses file system recovery except for update by update log replay. If update log data is physically damaged while this option is specified, fsck_sfxfs(1M) quits immediately without checking and recovering the file system. This means, however, that the file system can be mounted only after it was checked and recovered by fsck_sfxfs(1M) afterwards. Enter fsck_sfxfs(1M) with the "-o nolog" option for performing a full check of the file system without update log replay. Recover the file system with this command, and mount it.
The command in the following example performs update log replay for recovering the file system.
# fsck -F sfxfs /dev/sfdsk/gfs/rdsk/vol0301
The command in the following example performs a full check of the file system without update log replay, and recovers the file system.
# fsck -F sfxfs -o nolog /dev/sfdsk/gfs/rdsk/vol0301
See the description of the fsck_sfxfs(1M) command in Appendix B for details on the options of the fsck_sfxfs(1M) command.
The following commands can also be used to clear invalid i-nodes and recover the file system consistently.
Contents Index |