Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

1 votes
0 answers
16 views
Ocfs2: link between cluster and device?
I am having 2 servers (Debian 12) that use a storage-disk (SD). Both see this SD as a device via fdisk. I have no details about the storage-device itself or the connection type - for me it is just a disk that is connected to 2 servers. To use the disk simultaneously I need to use a cluster filesyste...
I am having 2 servers (Debian 12) that use a storage-disk (SD). Both see this SD as a device via fdisk. I have no details about the storage-device itself or the connection type - for me it is just a disk that is connected to 2 servers. To use the disk simultaneously I need to use a cluster filesystem. That is not provided by the storage-device itself. I am running Ocfs2 on both servers to get that. cluster: name = myshare heartbeat_mode = local node_count = 2 node: cluster = myshare number = 1 ip_port = 7777 ip_address = 9.9.9.101 name = S1 node: cluster = myshare number = 2 ip_port = 7777 ip_address = 9.9.9.102 name = S2 Both servers have this fstab. UUID=xxxx /myshare ocfs2 defaults 0 3 **It is working great - I can mount and use it on both servers.** Now I try to get a 2nd SD up and running for both servers. It appears as a different device with fdisk. So I am not sure how to do it - because I do not see a "logical connection" between the defined Ocfs2 cluster and the storage-device - beside the fact that is is mounted as an ocfs2 type on a server that is running an Ocfs2 node. Is that enought?? Is it enought to have anouther line in fstab with the other UUID and also the type ocfs2 to make it work (both SDs are controlled by the Ocfs2 cluster)?
chris01 (869 rep)
Jun 5, 2025, 03:28 AM
Showing page 1 of 1 total questions