tunefs.ocfs2 is used to adjust OCFS2 file system parameters on disk.
The tool expects the cluster to be online as it needs to take the appropriate
cluster locks to write safely to disk.
Change the volume UUID (auto-generated) and the label, if provided, of a cloned OCFS2 volume.
This option does not perform volume cloning. It only changes the UUID and label on a cloned
volume so that it can be mounted on the node that has the original volume mounted.
Turn specific file system features on or off. tunefs.ocfs2 will attempt to enable or disable the feature list provided. To enable a feature, include it in the list. To disable a feature, prepend no to the name. For a list of feature names, see the man page for mkfs.ocfs2.
Modify the journal using options specified on the command-line. Journal options are comma separated, and may take an argument using the equals ('=') sign. For a list of possible options, see the man page for mkfs.ocfs2.
Change the volume label of the file system. Limit the label to under 64 bytes.
Valid number ranges from 1 to 255. This number specifies the maximum number of
nodes that can concurrently mount the partition. Use this to increase or
decrease the number of node slots. One reason to decrease could be to release
the space consumed by the journals for those slots.
Grow the size of the OCFS2 file system. If blocks-count is not
specified, tunefs.ocfs2 extends the volume to the current size of
Query the file system for its attributes like block size, label, etc. Query formats are modified
versions of the standard printf(3) formatting. The format is made up of static strings (which may
include standard C character escapes for newlines, tabs, and other special characters) and
printf(3) type formatters. The list of type specifiers is as follows:
BBlock size in bytes
TCluster size in bytes
NNumber of node slots
RRoot directory block number
YSystem directory block number
PFirst cluster group block number
ORO Compat flags
Set the volume UUID for the file system. If not provided, will auto generate a new UUID. The format of the provided UUID should be 178BDC83D50241EF94EB474A677D498B or 178BDC83-D502-41EF-94EB-474A677D498B.
Show version and exit.
Always answer Yes in interactive command line.
Always answer No in interactive command line.
Backs up the superblock to fixed offsets (1G, 4G, 16G, 64G, 256G and 1T)
on disk. This option is useful for users to backup the superblock on volumes
that the user either explicitly disallowed while formatting, or, used a
version of mkfs.ocfs2 (1.2.2 or older) that did not provide this
Lists the files having holes. This option is useful when disabling the sparse feature.
Updating on-disk cluster information to match the running cluster.
During resize, tunefs.ocfs2 automatically determines the size of the given
device and grows the file system such that it uses all of the available space on
the device. This optional argument specifies that the file system should be
extended to consume only the given number of file system blocks on the device.