tunefs.ocfs2(8)
β¨ tunefs.ocfs2(8) β¨
okay bestie, welcome to the OCFS2 manual pages, this is the one and only tunefs.ocfs2 and she is that girl π
π NAME π
tunefs.ocfs2 β Change OCFS2 file system parameters.
π¦ SYNOPSIS π¦
tunefs.ocfs2 [--cloned-volume[=new-label]
[--fs-features=list-of-features] [-J journal-options] [-L volume-label]
[-N number-of-node-slots] [-Q query-format] [-ipqnSUvVy] [--backup-
super] [--list-sparse] device [blocks-count]
π DESCRIPTION π
So like, tunefs.ocfs2(8) is the girl you call when you wanna adjust your OCFS2 file system parameters on disk. No cap. β¨
But here's the thing β the tool expects the cluster to be online, because it needs to grab the appropriate cluster locks to write safely to disk. It's giving responsible queen behavior, honestly. π«Ά
πΈ OPTIONS πΈ
--cloned-volume[=new-label]β Changes the volume UUID (which is auto-generated) and the label, if you provided one, of a cloned OCFS2 volume. Now listen, bestie β this option does not perform volume cloning. It literally only changes the UUID and the label on a cloned volume so that it can be mounted on the node that has the original volume mounted. That's it. That's the whole job. π--fs-features=[no]sparse...β Turns specific file system features on or off.tunefs.ocfs2(8)will attempt to enable or disable the feature list you hand it. Wanna turn a feature ON? Just include it in the list. Wanna turn it OFF? Prependnoto the name. For a list of feature names, go look atmkfs.ocfs2(8). iykyk π§-J,--journal-optionsoptions β Modifies the journal using the options you specify on the command-line. Journal options are comma separated, and may take an argument using the equals (=) sign. For a list of possible options, refer tomkfs.ocfs2(8). π-L,--labelvolume-label β Changes the volume label of the file system. Keep the label under 64 bytes, babe. π-N,--node-slotsnumber-of-node-slots β Valid number ranges from1to255. 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 you might wanna decrease? Releasing the space that the journals for those slots were eating up. Frugal queen energy. πΈ-S,--volume-sizeβ Grows the size of the OCFS2 file system. If blocks-count is not specified,tunefs.ocfs2(8)extends the volume to the current size of the device. Glow up, volume. π±-Q,--queryquery-format β Queries the file system for its attributes like block size, label, etc. Query formats are modified versions of the standardprintf(3)formatting. The format is made up of static strings (which may include standard C character escapes for newlines, tabs, and other special characters) andprintf(3)type formatters. Here's the full list of type specifiers, bestie:Bβ Block size in bytesTβ Cluster size in bytesNβ Number of node slotsRβ Root directory block numberYβ System directory block numberPβ First cluster group block numberVβ Volume labelUβ Volume uuidMβ Compat flagsHβ Incompat flagsOβ RO Compat flags
-q,--quietβ Quiet mode. π€«-U,--uuid-reset[=new-uuid]β Resets the volume UUID of the file system. If you don't provide one, the utility will auto generate it. For a custom UUID, specify it in either the plain (2A4D1C581FAA42A1A41D26EFC90C1315) or the traditional (2a4d1c58-1faa-42a1-a41d-26efc90c1315) format.
β οΈ okay real talk: if you're specifying a custom UUID, you must be careful to ensure that no two volumes have the same UUID. If more than one file system were to have the same UUID, one is very likely to encounter erratic behavior, if not, outright file system corruption. That is not a vibe. That is a disaster. π
-v,--verboseβ Verbose mode. Give me all the lore. π’-V,--versionβ Show version and exit. π-y,--yesβ Always answer Yes in interactive command line.-n,--noβ Always answer No in interactive command line.--backup-superβ Backs up the superblock to fixed offsets (1G,4G,16G,64G,256Gand1T) 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 ofmkfs.ocfs2(8)(1.2.2or older) that did not provide this facility. Protect the superblock, protect the peace. π‘οΈ--list-sparseβ Lists the files having holes. This option is useful when disabling the sparse feature. π³οΈ--update-cluster-stackβ Updating on-disk cluster information to match the running cluster. Users looking to update the on-disk cluster stack without starting the new cluster should use theo2cluster(8)utility instead. π- blocks-count β During resize,
tunefs.ocfs2(8)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. So like, it's the "actually, only this much" button. π
π EXAMPLES π
# tunefs.ocfs2 -Q "UUID = %U\nNumSlots = %N\n" /dev/sda1
UUID = CBB8D5E0C169497C8B52A0FD555C7A3E
NumSlots = 4
ate and left no crumbs, honestly. π₯
β SEE ALSO β
debugfs.ocfs2(8) fsck.ocfs2(8) fsck.ocfs2.checks(8) mkfs.ocfs2(8) mount.ocfs2(8) mounted.ocfs2(8) o2cluster(8) o2image(8) o2info(1)
the whole friend group, periodt. π«Ά
π AUTHORS π
Oracle Corporation
π COPYRIGHT π
Copyright Β© 2004, 2012 Oracle. All rights reserved.
okay that's the whole page bestie, you're literally a tunefs expert now, no notes. mwah π
this has been Version 1.8.9, from January 2012 β go forth and tune those file systems 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