Management Utilities and Commands
OCFS2 stores node-specific parameter files on the node. The
cluster configuration file (
/etc/ocfs2/cluster.conf) resides on
each node assigned to the cluster.
The ocfs2console utility is a GTK GUI-based interface
for managing the configuration of the OCFS2 services in the cluster. Use
this utility to set up and save the
/etc/ocfs2/cluster.conf file to all
member nodes of the cluster. In addition, you can use it to format,
tune, mount, and umount OCFS2 volumes.
![[Important]](admon/important.png) | Important |
|---|
The file browser column in the ocfs2console utility is prohibitively
slow and inconsistent across the cluster. We recommend that you use the
ls(1) command to list files instead.
|
Additional OCFS2 utilities are described in the following table. For
information about syntax for these commands, see their man pages.
Table 14.3. OCFS2 Utilities
|
OCFS2 Utility
|
Description
|
|---|
|
debugfs.ocfs2
|
Examines the state of the OCFS file system for the purpose of
debugging.
|
|
fsck.ocfs2
|
Checks the file system for errors and optionally repairs errors.
|
|
mkfs.ocfs2
|
Creates an OCFS2 file system on a device, usually a partition on a
shared physical or logical disk. This tool requires the O2CB
cluster service to be up.
|
|
mounted.ocfs2
|
Detects and lists all OCFS2 volumes on a clustered system. Detects
and lists all nodes on the system that have mounted an OCFS2 device
or lists all OCFS2 devices.
|
|
ocfs2cdsl
|
Creates a context-dependent symbolic link (CDSL) for a specified
filename (file or directory) for a node. A CDSL filename has its
own image for a specific node, but has a common name in the OCFS2.
|
|
tune.ocfs2
|
Changes OCFS2 file system parameters, including the volume label,
number of node slots, journal size for all node slots, and volume
size.
|
Use the following commands to manage O2CB services. For more information
about the o2cb command syntax, see its man page.
Table 14.4. O2CB Commands
|
Command
|
Description
|
|---|
|
/etc/init.d/o2cb status
|
Reports whether the o2cb services are loaded and mounted
|
|
/etc/init.d/o2cb load
|
Loads the O2CB modules and in-memory file systems
|
|
/etc/init.d/o2cb online
ocfs2
|
The cluster named ocfs2 gets online
At least one node in the cluster must be active for the cluster to
be online.
|
|
/etc/init.d/o2cb offline
ocfs2
|
The cluster named ocfs2 gets offline
|
|
/etc/init.d/o2cb unload
|
Unloads the O2CB modules and in-memory file systems
|
|
/etc/init.d/o2cb start ocfs2
|
If the cluster is set up to load on boot, starts the cluster named
ocfs2 by loading o2cb and onlining the cluster
At least one node in the cluster must be active for the cluster to
be online.
|
|
/etc/init.d/o2cb stop ocfs2
|
If the cluster is set up to load on boot, stops the cluster named
ocfs2 by offlining the cluster and unloading the O2CB modules and
in-memory file systems
|