mount.ocfs2(8)
β¨ mount.ocfs2 β¨ β like, the OCFS2 manual page, bestie edition π
okay so you're here for mount.ocfs2(8), the section-8 manual page for mounting an OCFS2 filesystem. pull up a chair, grab a strawberry π, and let's get you fluent. no cap, it's all here.
πΈ NAME πΈ
mount.ocfs2 β mount an OCFS2 filesystem
π¦ SYNOPSIS π¦
mount.ocfs2 [-vn] [-o options] device dir
π DESCRIPTION π
So basically, mount.ocfs2 mounts an OCFS2 filesystem at dir. It's usually not even you calling it directly β it gets invoked indirectly by the mount(8) command. it's giving backstage crew, doing the real work while mount gets all the credit. π
β¨ OPTIONS β¨
okay this is the main character section, let's go one by one, no skips:
_netdevβ says that the filesystem lives on a device that needs network access. the whole point is to stop the system from trying to mount these filesystems before the network is even up.mount.ocfs2(8)transparently appends this option during mount β sneaky, but helpful. however (and this is the tea β) if you're mounting the volume via/etc/fstab, you have to explicitly specify this mount option yourself, so the system waits until after the network is enabled before it mounts the volume.noatimeβ the filesystem will not update access time. atime? never heard of her. πrelatimeβ the filesystem only updates atime if the on-disk atime is older than mtime or ctime. this is the default mode. lowkey the chill one.strictatime,atime_quantum=nrsecβ the filesystem will always do atime updates, but the minimum update interval is set byatime_quantum, which defaults to60secs. set it to zero to always update atime. these two options need to work together, they're a package deal π«Ά[no]aclβ enables / disables POSIX ACLs (access control lists) support. it's enabled by default.[no]user_xattrβ enables / disables extended user attributes. it's enabled by default.commit=nrsecβ sync all data and metadata every nrsec seconds. the default value is5seconds. zero means default. slay.data=[ordered|writeback]β specifies the handling of file data during metadata journalling. two flavours:orderedβ this is the default mode. data is flushed to disk before the corresponding meta-data is committed to the journal. safe and tidy, we love her.writebackβ data ordering is not preserved β data may be flushed to disk after the corresponding meta-data is committed to the journal. this is rumored to be the higher-throughput option. while it guarantees internal file system integrity, it can allow old data to appear in files after a crash and journal recovery. π so like, fast but chaotic.
errors=[remount-ro|errors=panic|errors=continue]β specifies the behavior when an on-disk corruption is encountered. the drama options:remount-roβ this is the default mode. the file system is remounted read-only.panicβ the system is halted via panic. it's giving "we die together" πcontinueβ ignore errors. just log error message, return error code to the calling process and continue.
localflocksβ this disables cluster-awareflock(2). local vibes only.coherency=[full|coherency]β specifies the extent of coherency for the cached file data across the cluster. this mount option works with Linux kernel2.6.37and later.fullβ this is the default mode. the file system ensures the cached file data is coherent across the cluster for all IO modes.bufferedβ the file system only ensures the cached file data coherency for buffered mode IOs. it does not perform IO serialization for direct IOs. this allows multiple nodes to perform concurrent direct IOs to the same file. this is the recommended mode for volumes hosting database files. database besties, this one's for you π₯
resv_level=levelβ specifies the level of allocation reservation for files. the higher the value, the more aggressive it is. valid values are between0(reservation off) to8(maximum space for reservation). it defaults to2. this mount option works with Linux kernel2.6.35and later.dir_resv_level=levelβ by default, directory reservation scales with file reservation. users should rarely need to change this value. if the file allocation reservation is turned off, this option will have no effect. this mount option works with Linux kernel2.6.35and later.inode64β indicates that the file system can create inodes at any location in the volume, including those which will result in inode numbers greater than 4 billion. big numbers, big energy. π’noclusterβ this option allows users to mount a clustered volume without configuring the cluster stack.
okay so β οΈ you must be aware that you can only mount the file system from one node at the same time β otherwise the file system may be damaged. please use it with caution. fr fr, be careful.
[no]intrβ specifies whether a signal can interrupt IOs. it is disabled by default.roβ mount the file system read-only. look, don't touch. πrwβ mount the file system read-write. touch away. π
π NOTES π
to mount and umount a OCFS2 volume, do:
# mount /dev/sda1 /mount/path
...
# umount /mount/path
users mounting a clustered volume should be aware of the following:
- the cluster stack must to be online for a clustered mount to succeed.
- the clustered mount operation is not instantaneous β it must wait for the node to join the DLM domain.
- likewise, clustered umount is also not instantaneous β it involves migrating all mastered lock-resources to the other nodes in the cluster.
if the mount fails, detailed errors can be found via dmesg(8). these might include incorrect cluster configuration (say, a missing node or incorrect IP address) or a firewall interfering with o2cb network traffic. check the configuration as listed in o2cb(7) or the man page of the active cluster stack. it's always the firewall, bestie. π§±
to auto-mount volumes on startup, the file system tools include an ocfs2 init service. this runs after the o2cb init service has started the cluster. the ocfs2 init service mounts all OCFS2 volumes listed in /etc/fstab.
# chkconfig --add o2cb
o2cb 0:off 1:off 2:on 3:on 4:off 5:on 6:off
$ chkconfig --add ocfs2
o2cb 0:off 1:off 2:on 3:on 4:off 5:on 6:off
$ cat /etc/fstab
...
/dev/sda1 /u01 ocfs2 _netdev,defaults 0 0
...
(yes, the output line under chkconfig --add ocfs2 says o2cb in the original β not me, I'm just the messenger π keeping it exactly as written.)
π SEE ALSO π
debugfs.ocfs2(8) fsck.ocfs2(8) mkfs.ocfs2(8) mounted.ocfs2(8) o2cb(7) o2cluster(8) o2image(8) o2info(1) tunefs.ocfs2(8)
π AUTHORS π
Oracle Corporation
π COPYRIGHT π
Copyright Β© 2004, 2012 Oracle. All rights reserved.
and that's the whole page, bestie β you ate it. π«Άβ¨
this was Version 1.8.9, dated January 2012, and it's mount.ocfs2(8) from the OCFS2 Manual Pages β go forth and mount responsibly, ily, bye π
πΈ
π¦ where this page comes from
- fedora 44: ocfs2-tools 1.8.9-2.fc44 Β· GPL-2.0-only
- fedora 44: ocfs2-tools 1.8.9-2.fc44 Β· GPL-2.0-only
- ubuntu resolute: ocfs2-tools 1.8.9-1 Β· GPL-2.0-or-later
- ubuntu stonking: ocfs2-tools 1.8.9-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms