^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/fs/ocfs2/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Contact: ocfs2-devel@oss.oracle.com
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) The /sys/fs/ocfs2 directory contains knobs used by the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) ocfs2-tools to interact with the filesystem.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) What: /sys/fs/ocfs2/max_locking_protocol
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Contact: ocfs2-devel@oss.oracle.com
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) The /sys/fs/ocfs2/max_locking_protocol file displays version
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) of ocfs2 locking supported by the filesystem. This version
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) covers how ocfs2 uses distributed locking between cluster
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) nodes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) The protocol version has a major and minor number. Two
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) cluster nodes can interoperate if they have an identical
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) major number and an overlapping minor number - thus,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) a node with version 1.10 can interoperate with a node
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) sporting version 1.8, as long as both use the 1.8 protocol.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) Reading from this file returns a single line, the major
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) number and minor number joined by a period, eg "1.10".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) This file is read-only. The value is compiled into the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) What: /sys/fs/ocfs2/loaded_cluster_plugins
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) Contact: ocfs2-devel@oss.oracle.com
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) The /sys/fs/ocfs2/loaded_cluster_plugins file describes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) the available plugins to support ocfs2 cluster operation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) A cluster plugin is required to use ocfs2 in a cluster.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) There are currently two available plugins:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) * 'o2cb' - The classic o2cb cluster stack that ocfs2 has
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) used since its inception.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) * 'user' - A plugin supporting userspace cluster software
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) in conjunction with fs/dlm.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) Reading from this file returns the names of all loaded
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) plugins, one per line.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) This file is read-only. Its contents may change as
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) plugins are loaded or removed.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) What: /sys/fs/ocfs2/active_cluster_plugin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) Contact: ocfs2-devel@oss.oracle.com
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) The /sys/fs/ocfs2/active_cluster_plugin displays which
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) cluster plugin is currently in use by the filesystem.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) The active plugin will appear in the loaded_cluster_plugins
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) file as well. Only one plugin can be used at a time.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) Reading from this file returns the name of the active plugin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) on a single line.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) This file is read-only. Which plugin is active depends on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) the cluster stack in use. The contents may change
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) when all filesystems are unmounted and the cluster stack
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) is changed.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) What: /sys/fs/ocfs2/cluster_stack
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) Contact: ocfs2-devel@oss.oracle.com
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) The /sys/fs/ocfs2/cluster_stack file contains the name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) of current ocfs2 cluster stack. This value is set by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) userspace tools when bringing the cluster stack online.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) Cluster stack names are 4 characters in length.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) When the 'o2cb' cluster stack is used, the 'o2cb' cluster
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) plugin is active. All other cluster stacks use the 'user'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) cluster plugin.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) Reading from this file returns the name of the current
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) cluster stack on a single line.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) Writing a new stack name to this file changes the current
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) cluster stack unless there are mounted ocfs2 filesystems.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) If there are mounted filesystems, attempts to change the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) stack return an error.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) Users:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) ocfs2-tools <ocfs2-tools-devel@oss.oracle.com>