<div dir="ltr"><div class="gmail-adn gmail-ads" style="padding-bottom:20px;font-size:medium"><div class="gmail-gs"><div id="gmail-:ue" class="gmail-ii gmail-gt gmail-adP gmail-adO" style="font-size:12.8px"><div id="gmail-:uf" class="gmail-a3s gmail-aXjCH gmail-m16006ac60f1bb826"><div dir="ltr"><div class="gmail_extra">Hello,</div><div class="gmail_extra">I guess I did something wrong the first time.</div><div class="gmail_extra">I retried three times, and it worked three times. So I guess ocfs 1.6 and 1.8 are compatibles :)</div><div class="gmail_extra"><br></div><div class="gmail_extra">Not it's time to set up a second ocfs2 cluster on my debian 9 server (ocfs 1.8), and I get this error when trying to mkfs.ocfs2 :</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">root@LAB-virtm6:~# mkfs.ocfs2 /dev/mapper/data_san_2 </div><div class="gmail_extra">mkfs.ocfs2 1.8.4</div><div class="gmail_extra">On disk cluster (o2cb,ocfs2new,0) does not match the active cluster (o2cb,ocfs2,0).</div><div class="gmail_extra">mkfs.ocfs2 will not be able to determine if this operation can be done safely.</div><div class="gmail_extra">To skip this check, use --force or -F</div><div><br></div><div><br></div><div>The running cluster on this host is :</div><div><div>root@LAB-virtm6:~# o2cluster -r</div><div>o2cb,ocfs2,local</div></div><div><br></div><div>I'm trying to add an "ocfs2new" cluster :</div><div>root@LAB-virtm6:~# o2cb add-cluster ocfs2new</div><div>root@LAB-virtm6:~# o2cb add-node --ip 192.168.0.12 --port 7777 --number 1 ovfs2new LAB-virtm6</div><div>root@LAB-virtm6:~# o2cb add-node --ip 192.168.0.13 --port 7777 --number 2 ovfs2new LAB-virtm7</div><div><br></div><div><div>root@LAB-virtm6:~# o2cb list-clusters</div><div>ocfs2</div><div>ocfs2new</div></div><div><br></div><div><div>root@LAB-virtm6:~# o2cb cluster-status</div><div>Cluster 'ocfs2' is online</div></div><div><br></div><div>Even if I restart services or reboot, cluster 'ocfs2new' never goes online.</div><div><br></div><div>What am I doing wrong ?</div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-11-24 3:30 GMT+01:00 Eric Ren <span dir="ltr"><<a href="mailto:zren@suse.com" target="_blank">zren@suse.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hi,<br>
</p><span class="">
<br>
<div class="m_-5752602192613359252moz-cite-prefix">On 11/23/2017 09:42 PM, BASSAGET Cédric
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Tried to mkfs.ocfs2 on the debian 9 side (ocfs 1.8)
:
<div><br>
</div>
<div>
<div>root@LAB-virtm6:~# o2cluster -o /dev/mapper/data_san_2 </div>
<div>o2cb,ocfs2new,local</div>
</div>
</div>
</blockquote>
<br></span>
Sorry, my fault. For mount failure, first thing is to check if your
o2cb stack<br>
is running via o2cb init service `rco2cb status` IIRC. Then, it's
probably<br>
a compatible issue: see the "FEATURE FLAGS" section in `man ocfs2` <br>
for more instructions.<span class=""><br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div><br>
</div>
<div>root@LAB-virtm6:~# mount /dev/mapper/data_san_2
/mnt/vol1_iscsi_san2</div>
<div><b>mount.ocfs2: Cluster name is invalid while trying to
join the group</b></div>
</div>
</div>
</blockquote>
<br></span>
Quote from `man ocfs2`:<br>
"""<br>
DETECTING FEATURE INCOMPATIBILITY<br>
<br>
Say one tries to mount a volume with an incompatible
feature. What happens then? How does<br>
one detect the problem? How does one know the name of
that incompatible feature?<br>
<br>
To begin with, one should look for error messages in
dmesg(8). Mount failures that are<br>
due to an incompatible feature will always result in
an error message like the following:<br>
<br>
ERROR: couldn't mount because of unsupported optional
features (200).<br>
<br>
Here the file system is unable to mount the volume
due to an unsupported optional fea-<br>
ture. That means that that feature is an Incompat
feature. By referring to the table<br>
above, one can then deduce that the user failed to
mount a volume with the xattr feature<br>
enabled. (The value in the error message is in
hexadecimal.)<br>
"""<br>
<br>
Please show your dmesg.<span class="HOEnZb"><font color="#888888"><br>
<br>
Eric</font></span><div><div class="h5"><br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div><br>
</div>
<div>root@LAB-virtm6:~# cat /etc/ocfs2/cluster.conf </div>
<div>node:</div>
<div> ip_port = 7777</div>
<div> ip_address = 192.168.0.11</div>
<div> number = 1 </div>
<div> name = LAB-virtm5</div>
<div> cluster = ocfs2new</div>
<div>node:</div>
<div> ip_port = 7777</div>
<div> ip_address = 192.168.0.12</div>
<div> number = 2 </div>
<div> name = LAB-virtm6</div>
<div> cluster = ocfs2new</div>
<div>node:</div>
<div> ip_port = 7777</div>
<div> ip_address = 192.168.0.13</div>
<div> number = 3</div>
<div> name = LAB-virtm7</div>
<div> cluster = ocfs2new</div>
<div>cluster:</div>
<div> node_count = 5</div>
<div> name = ocfs2new</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-11-23 14:02 GMT+01:00 BASSAGET
Cédric <span dir="ltr"><<a href="mailto:cedric.bassaget.ml@gmail.com" target="_blank">cedric.bassaget.ml@gmail.com</a>></span><wbr>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Eric
<div>on debian 9 (ocfs2 v1.8) :</div>
<div><br>
<div>
<div># o2cluster -o /dev/mapper/data_san_2</div>
<div>default</div>
</div>
<div><br>
</div>
<div>on debian 8 (ocfs2 v1.6), I don't have the
"o2cluster" tool</div>
<div><br>
</div>
<div>:(</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
<div class="m_-5752602192613359252HOEnZb">
<div class="m_-5752602192613359252h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-11-23 13:41 GMT+01:00
Eric Ren <span dir="ltr"><<a href="mailto:zren@suse.com" target="_blank">zren@suse.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Hi,<span><br>
<br>
<div class="m_-5752602192613359252m_-7714090415349141390m_-4143471480192232412moz-cite-prefix">On
11/23/2017 06:23 PM, BASSAGET Cédric wrote:<br>
</div>
</span>
<blockquote type="cite">
<div dir="ltr"><span>hello,
<div>I'm trying to set-up an OCFS2 cluster
between hosts running debian8 and
debian9</div>
<div><br>
</div>
<div>2*debian 8 : ocfs2-tools 1.6.4-3</div>
<div>1*debian 9 : ocfs2-tools 1.8.4-4</div>
<div><br>
</div>
<div>I created the FS on debian 8 node :</div>
<div> mkfs.ocfs2 -L "ocfs2_new" -N 5
/dev/mapper/data_san_2</div>
<div><br>
</div>
<div>then mounted it without problem</div>
<div>mount /dev/mapper/data_san_2
/mnt/vol1_iscsi_san2/</div>
<div><br>
</div>
<div>I mounted it on second debian 8 host
too, without problem.</div>
<div><br>
</div>
<div>Trying to mount in on debian9 returns
:</div>
<div>mount.ocfs2: Cluster name is invalid
while trying to join the group<br>
</div>
<div><br>
</div>
<div>I saw in "man mkfs.ocfs2" that
debian9 version has --cluster-stack and
--cluster-name options.</div>
<div><br>
</div>
</span>
<div>Is this option mandatory on ocfs2 1.8 ?
That would say that ocfs2 1.6 and 1.8 are
not compatible ? Nothing is said about 1.8
on <a href="https://oss.oracle.com/projects/ocfs2/" target="_blank">https://oss.oracle.com/proj<wbr>ects/ocfs2/'re
<br>
</a></div>
</div>
</blockquote>
<br>
Not sure if they're compatible. So can you try
again with --cluster-stack and --cluster-name?<br>
<br>
# o2cluster -o /dev/sda1<br>
pcmk,cluster,none<br>
<br>
pcmk is the cluster-stack, cluster is the name.<br>
<br>
Usually, these two option is optional, the tools
will detect the right cluster stack
automatically.<span class="m_-5752602192613359252m_-7714090415349141390HOEnZb"><font color="#888888"><br>
<br>
Eric<br>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>