nodeN# apt install ocfs2-tools nodeN# cat /etc/ocfs2/cluster.conf
cluster: node_count = 2 name = ocfs2 node: number = 1 cluster = ocfs2 ip_port = 7777 ip_address = 192.168.X.1 name = node1 node: number = 2 cluster = ocfs2 ip_port = 7777 ip_address = 192.168.X.2 name = node2
node1# mkfs.ocfs2 -L "DrbdVol" /dev/drbd0 node1# mkfs.ocfs2 -L "CephVol" /dev/mapper/mpatha или node1# mkfs.ocfs2 -L "CephVol" /dev/mapper/360000000000000000e00000000010001 nodeN# cat /etc/default/o2cb
... O2CB_ENABLED=true ...
nodeN# o2cb register-cluster ocfs2 nodeN# o2cb list-clusters nodeN# o2cb list-cluster ocfs2 nodeN# systemctl enable o2cb ocfs2 nodeN# systemctl start o2cb ocfs2 nodeN# mkdir /disk3 nodeN# cat /etc/fstab
... #/dev/drbd0 /disk2 ocfs2 defaults,heartbeat=local 0 0 #/dev/mapper/mpatha /disk3 ocfs2 defaults,heartbeat=local 0 0 /dev/mapper/360000000000000000e00000000010001 /disk3 ocfs2 defaults,heartbeat=local 0 0
nodeN# systemctl daemon-reload nodeN# mount /disk3