Maintaining OCFS2

After OCFS2 is installed and configured, the cluster is defined, the disks are allocated, and everything has been started, you might need to make changes to ensure that this setup remains current and meets your needs.

After OCFS2 is installed, it requires very little maintenance. However, it is good to know that the Linux® file checker, named fsck.ocfs2, can be used to check and correct problems in an OCFS2 target, typically a disk device. By default, the fsck.ocfs2 utility uses the cluster services. To verify that the specified file or device is not mounted on any node in the cluster, issue the following command:
fsck.ocfs2  device

The fsck.ocfs2 utility searches for file system errors and tries to correct them if the invoker of the command selects an option to do so. The complete syntax and explanation of return codes is on the Linux man page for the fsck.ocfs2 utility.

The ocfs2console has file checking and repair as tasks on the drop-down task menu, and checks the disk that the user selects.