Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Trying to get ocfs2 running on Ubuntu 10. I don't quite understand where everything goes.

I have 2 servers APP1 and APP2 that I want to cluster /dev/sdc1 on. These are separate vms. /dev/sdc is a volume on each system and are not connected.

So where do I run all the commands? On both servers? Or just on 1? Do I need a 3rd server for this configuration? I assumed that I would run all commands on each server. But that seems like it is not the case since nothing syncs. Everything I have read says that the conf file goes on every node but not where to run all the other commands like formatting the partition.

        ip_port = 7777
        ip_address =
        number = 0
        name = APP1
        cluster = ocfs2
        ip_port = 7777
        ip_address =
        number = 1
        name = APP2
        cluster = ocfs2
        node_count = 2
        name = ocfs2

grep ocfs2 /var/log/messages | less

Jan 31 14:29:44 APP1 kernel: [1407406.894232] ocfs2_dlm: Nodes in domain ("A8CD50FEDEFB41D895C6740D9FD7A31C"): 0
Jan 31 14:43:21 APP1 kernel: [1408222.801633] ocfs2_dlm: Nodes in domain ("32C4EC4174ED46B286A345773B24BF99"): 0
Jan 31 14:43:21 APP1 kernel: [1408222.853273] ocfs2: Mounting device (8,33) on (node 0, slot 0) with ordered data mode.
Jan 31 14:55:28 APP1 kernel: [1408950.020641] ocfs2: Unmounting device (8,33) on (node 0)

service o2cb status

Driver for "configfs": Loaded
Filesystem "configfs": Mounted
Stack glue driver: Loaded
Stack plugin "o2cb": Loaded
Driver for "ocfs2_dlmfs": Loaded
Filesystem "ocfs2_dlmfs": Mounted
Checking O2CB cluster ocfs2: Online
Heartbeat dead threshold = 31
  Network idle timeout: 30000
  Network keepalive delay: 2000
  Network reconnect delay: 2000
Checking O2CB heartbeat: Active
share|improve this question
You need to set it up on both machines yes, but can you let us know MUCH more details please, what's the shared storage, how's it presented, are you seeing the raw LUN/s on both machines, what have you tried, what do your config files look like, what are you seeing etc. –  Chopper3 Jan 31 '13 at 23:25
You don't need a third machine, but you will need to enter all the right commands and configure OCFS2 on both machines before those commands - but you could still add a lot more detail, please could you look at my last comment and let us see what your responses are please. –  Chopper3 Feb 1 '13 at 8:46
What make you think it is not working? –  quanta Feb 22 '13 at 16:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.