PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment) |
Contents Index |
Part 3 Global File Services Shared File System | > Chapter 23 File System Management |
If a file system is damaged and consistency is lost, for example following automatic error recovery after a primary MDS fails, the file system must be checked and repaired using fsck_sfcfs(1M).
The GFS Shared File System provides the update log function to ensure high-speed recovery if an error such as a system failure occurs. If the update log function has been enabled, the file system can be repaired quickly regardless of the size of the file system. This is possible because of update log replay, which updates the un-updated portion of the meta-data located in the update log area.
By default or when "-o log" is specified, fsck repairs the file system by replaying the update log.
If the update log data has been physically damaged, the fsck command does not execute update log replay, but instead automatically performs a full check on the file system. To meet the need for resuming system operation immediately, an option "-o elog" that prohibits file system repair without update log replay is provided. If this option is specified, fsck(1M) terminates immediately without performing a check or recovery if the update log data is physically damaged. In this event, the file system cannot be mounted unless a check and repair are performed using fsck. Specify the "-o nolog" option to perform a full check on the file system without update log replay, repair the file system, and mount the file system.
The following example repairs a file system with log replay.
# fsck -F sfcfs /dev/sfdsk/gfs/rdsk/volume1
The following example performs a full check on the file system and repairs it without log replay.
# fsck -F sfcfs -o nolog /dev/sfdsk/gfs/rdsk/volume1
The following example shows how to specify one raw partition as a work disk to check a full file system.
# fsck -F sfcfs -o nolog,work=/dev/rdsk/c2t3d0s1 /dev/sfdsk/gfs/rdsk/volume1
For details on the fsck_sfcfs(1M) options, see Appendix F.1.2, "fsck_sfcfs(1M)."
Contents Index |