Provided by: ocfs2-tools_1.1.5-0ubuntu5_i386
mkfs.ocfs2 - Creates an OCFS2 file system.
mkfs.ocfs2 [ -b block-size ] [ -C cluster-size ] [ -L volume-label ] [
-N number-of-nodes ] [ -J journal-options ] [ -F ] [ -q ] [ -v ] [ -V ]
device [ blocks-count ]
mkfs.ocfs2 is used to create an OCFS2 file system on a device, usually
a partition on a shared disk. In order to prevent data loss, mkfs.ocfs2
will not format an existing OCFS2 volume if that volume is mounted on
any node in the cluster. This tool requires the O2CB cluster service to
Valid block size values are 512, 1K, 2K and 4K bytes per block.
If omitted, a value will be hueristically determined by the file
system size. A block size of 512 bytes is never recommended.
Choose 1K, 2K or 4K.
Valid cluster size values are 4K, 8K, 16K, 32K, 64K, 128K, 256K,
512K and 1M. If omitted, a value will be hueristically
determined by the file system size. For volumes expected to
store large files, like database files, a cluster-size of 128K
or more is recommended. For others, 16K-64K.
Usually mkfs.ocfs2 automatically determines the size of the
given device and creates a file system that uses all of the
available space on the device. This optional argument specifies
that the file system should only consume the given number of
file system blocks (see -b) on the device.
Set the volume label for the file system. This is useful for
mounting-by-label. Limit the label length 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. If omitted, the number defaults to 4. This number can
be later increased using tunefs.ocfs2.
Create the journal using options specified on the command-line.
Journal options are comma separated, and may take an argument
using the equals (’=’) sign. The following journal options are
Create a journal of size journal-size. Minimum size
is 4M. If omitted, a value is heuristically
determined by the file system size.
-F For existing OCFS2 volumes, mkfs.ocfs2 ensures the volume is not
mounted on any node in the cluster before formatting. For that
to work, mkfs.ocfs2 expects the O2CB cluster service to be
running. Specify this option to disable this check.
-q Quiet mode.
-v Verbose mode.
-V Print version and exit.
debugfs.ocfs2(8) fsck.ocfs2(8) tunefs.ocfs2(8) mounted.ocfs2(8)
Copyright © 2004, 2005 Oracle. All rights reserved.