153f67e33SJoel BeckerWhat: /sys/fs/ocfs2/ 253f67e33SJoel BeckerDate: April 2008 3*5a569db6SAnthony IliopoulosContact: ocfs2-devel@lists.linux.dev 453f67e33SJoel BeckerDescription: 553f67e33SJoel Becker The /sys/fs/ocfs2 directory contains knobs used by the 653f67e33SJoel Becker ocfs2-tools to interact with the filesystem. 753f67e33SJoel Becker 853f67e33SJoel BeckerWhat: /sys/fs/ocfs2/max_locking_protocol 953f67e33SJoel BeckerDate: April 2008 10*5a569db6SAnthony IliopoulosContact: ocfs2-devel@lists.linux.dev 1153f67e33SJoel BeckerDescription: 1253f67e33SJoel Becker The /sys/fs/ocfs2/max_locking_protocol file displays version 1353f67e33SJoel Becker of ocfs2 locking supported by the filesystem. This version 1453f67e33SJoel Becker covers how ocfs2 uses distributed locking between cluster 1553f67e33SJoel Becker nodes. 1653f67e33SJoel Becker 1753f67e33SJoel Becker The protocol version has a major and minor number. Two 1853f67e33SJoel Becker cluster nodes can interoperate if they have an identical 1953f67e33SJoel Becker major number and an overlapping minor number - thus, 2053f67e33SJoel Becker a node with version 1.10 can interoperate with a node 2153f67e33SJoel Becker sporting version 1.8, as long as both use the 1.8 protocol. 2253f67e33SJoel Becker 2353f67e33SJoel Becker Reading from this file returns a single line, the major 2453f67e33SJoel Becker number and minor number joined by a period, eg "1.10". 2553f67e33SJoel Becker 2653f67e33SJoel Becker This file is read-only. The value is compiled into the 2753f67e33SJoel Becker driver. 2853f67e33SJoel Becker 2953f67e33SJoel BeckerWhat: /sys/fs/ocfs2/loaded_cluster_plugins 3053f67e33SJoel BeckerDate: April 2008 31*5a569db6SAnthony IliopoulosContact: ocfs2-devel@lists.linux.dev 3253f67e33SJoel BeckerDescription: 3353f67e33SJoel Becker The /sys/fs/ocfs2/loaded_cluster_plugins file describes 3453f67e33SJoel Becker the available plugins to support ocfs2 cluster operation. 3553f67e33SJoel Becker A cluster plugin is required to use ocfs2 in a cluster. 3653f67e33SJoel Becker There are currently two available plugins: 3753f67e33SJoel Becker 3853f67e33SJoel Becker * 'o2cb' - The classic o2cb cluster stack that ocfs2 has 3953f67e33SJoel Becker used since its inception. 4053f67e33SJoel Becker * 'user' - A plugin supporting userspace cluster software 4153f67e33SJoel Becker in conjunction with fs/dlm. 4253f67e33SJoel Becker 4353f67e33SJoel Becker Reading from this file returns the names of all loaded 4453f67e33SJoel Becker plugins, one per line. 4553f67e33SJoel Becker 4653f67e33SJoel Becker This file is read-only. Its contents may change as 4753f67e33SJoel Becker plugins are loaded or removed. 4853f67e33SJoel Becker 4953f67e33SJoel BeckerWhat: /sys/fs/ocfs2/active_cluster_plugin 5053f67e33SJoel BeckerDate: April 2008 51*5a569db6SAnthony IliopoulosContact: ocfs2-devel@lists.linux.dev 5253f67e33SJoel BeckerDescription: 5353f67e33SJoel Becker The /sys/fs/ocfs2/active_cluster_plugin displays which 5453f67e33SJoel Becker cluster plugin is currently in use by the filesystem. 5553f67e33SJoel Becker The active plugin will appear in the loaded_cluster_plugins 5653f67e33SJoel Becker file as well. Only one plugin can be used at a time. 5753f67e33SJoel Becker 5853f67e33SJoel Becker Reading from this file returns the name of the active plugin 5953f67e33SJoel Becker on a single line. 6053f67e33SJoel Becker 6153f67e33SJoel Becker This file is read-only. Which plugin is active depends on 6253f67e33SJoel Becker the cluster stack in use. The contents may change 6353f67e33SJoel Becker when all filesystems are unmounted and the cluster stack 6453f67e33SJoel Becker is changed. 6553f67e33SJoel Becker 6653f67e33SJoel BeckerWhat: /sys/fs/ocfs2/cluster_stack 6753f67e33SJoel BeckerDate: April 2008 68*5a569db6SAnthony IliopoulosContact: ocfs2-devel@lists.linux.dev 6953f67e33SJoel BeckerDescription: 7053f67e33SJoel Becker The /sys/fs/ocfs2/cluster_stack file contains the name 7153f67e33SJoel Becker of current ocfs2 cluster stack. This value is set by 7253f67e33SJoel Becker userspace tools when bringing the cluster stack online. 7353f67e33SJoel Becker 7453f67e33SJoel Becker Cluster stack names are 4 characters in length. 7553f67e33SJoel Becker 7653f67e33SJoel Becker When the 'o2cb' cluster stack is used, the 'o2cb' cluster 7753f67e33SJoel Becker plugin is active. All other cluster stacks use the 'user' 7853f67e33SJoel Becker cluster plugin. 7953f67e33SJoel Becker 8053f67e33SJoel Becker Reading from this file returns the name of the current 8153f67e33SJoel Becker cluster stack on a single line. 8253f67e33SJoel Becker 8353f67e33SJoel Becker Writing a new stack name to this file changes the current 8453f67e33SJoel Becker cluster stack unless there are mounted ocfs2 filesystems. 8553f67e33SJoel Becker If there are mounted filesystems, attempts to change the 8653f67e33SJoel Becker stack return an error. 8753f67e33SJoel Becker 8853f67e33SJoel BeckerUsers: 89*5a569db6SAnthony Iliopoulos ocfs2-tools <ocfs2-tools-devel@lists.linux.dev> 90