[Ocfs2-devel] Adding new node to an online OCFS2 cluster

BASSAGET Cédric cedric.bassaget.ml at gmail.com
Thu Nov 9 02:56:33 PST 2017


Hello,
As I did not get help on users mailing list, I allow myself to post my
question here. Sorry if it's not the right place, but I can't find any
documentation.

I'm currently running an OCFS2 cluster on two hosts.
My ocfs2 partition is an iscsi disk mounted on both hosts debian1 and
debian2

I need to add a third host (debian3) to this cluster.
I've set up  iscsi (& multipath), but now I'm looking for the correct way
to add the ocfs2 partition to my existing cluster.

root at debian1:~# cat /etc/ocfs2/cluster.conf
node:
        ip_port = 7777
        ip_address = 192.168.0.11
        number = 0
        name = debian1
        cluster = ocfs2
node:
        ip_port = 7777
        ip_address = 192.168.0.12
        number = 1
        name = debian2
        cluster = ocfs2
cluster:
        node_count = 2
        name = ocfs2

Same config on debian2.

I try to add the new node to the cluster, running this command on nodes
debian1 et debian2 :

root at debian1:~# o2cb_ctl -C -i -n debian3 -t node -a number=2 -a
ip_address=192.168.0.13 -a ip_port=7777 -a cluster=ocfs2

my new node is added to the config file, and node_count is incremented to 3.

then I do a "systemctl reload ocfs2" on debian1 and debian2.
I copy the cluster.conf file on debian3 and restart ocfs2 on it.

and in dmesg, I get :
[  145.582469] o2net: Connected to node debian2 (num 1) at 192.168.0.12:7777
[  145.582978] o2net: Connected to node debian1 (num 0) at 192.168.0.11:7777
[  149.631921] o2dlm: Joining domain D2A1F74976E04C55B625CDC8DAC1D5E5
[  149.631922] (
[  149.631923] 0
[  149.631924] 1
[  149.631924] 2
[  149.631925] ) 3 nodes
[  149.634255] (mount.ocfs2,1627,0):ocfs2_find_slot:490 *ERROR: no free
slots available!*
[  149.634784] (mount.ocfs2,1627,0):ocfs2_mount_volume:1859 ERROR: status =
-22
[  153.738044] o2dlm: Leaving domain D2A1F74976E04C55B625CDC8DAC1D5E5
[  153.738153] ocfs2: Unmounting device (254,0) on (node 2)
[  153.738174] (mount.ocfs2,1627,0):ocfs2_fill_super:1218 ERROR: status =
-22
[  155.657295] o2net: No longer connected to node debian1 (num 0) at
192.168.0.11:7777
[  155.657387] o2net: No longer connected to node debian2 (num 1) at
192.168.0.12:7777


Can anyone tell me how I can add a slot, so my new node can work ?

Thanks for your help.
Regards,
Cédric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20171109/720afa66/attachment.html 


More information about the Ocfs2-devel mailing list