<div dir="ltr"><div>Hi,<br><br>I'm using the SBD fencing method in my Career Final Project. I'm student but work like linux sysadmin since years ago. :)<br><br></div>In Ubuntu Krusty, i don't find the package for bsd and the bsd software was removed from cluster-glue package. Compile and install bsd was pretty hard but it was done. <br>
<div><br></div><div>The sbd agent shows the follow information:<br></div><div><br>---<br><br>root@nodo1:/usr/lib/stonith/plugins/external <br># ./sbd getinfo-devdescr<br>sbd uses a shared storage device as a medium to communicate<br>
fencing requests. This allows clusters without network power<br>switches; the downside is that access to the shared storage<br>device becomes a Single Point of Failure. <br><br>It requires sbd to be configured on all nodes.<br>
<br>Please read <a href="http://linux-ha.org/wiki/SBD_Fencing">http://linux-ha.org/wiki/SBD_Fencing</a>!<br><br>---<br><br></div><div>I don't understand why the SBD method is a SPOF. If it use a SAN, the block device can be in mirror RAID in the Storage. With multipath fibre gets redundancy in the communications. Where would be the SPOF? it would be the sbd daemon? it would be reasonable to run the bsd daemon like resource in Pacemaker? I think controld agent resource might be right to run the bsd daemon.<br>
<br></div><div>I think the I/O fencing is the best option because it doesn't depend of network to be operative. It is SBD truely independent from network status for work? I have my dudes because in the compilation of the binary, sbd needs corosync and pacemaker libs. <br>
</div><div><br><br><span id="result_box" class="" lang="en"><span class="">Finally</span>, IMHO, <span class="">let me</span> <span class="">some suggestions to improve</span> <span class="">SBD</span><span>.</span><br><br>
<span class="">It would be nice</span> that <span class="">by </span><span class="">default</span>, "sbd <span class="">list"</span><span>,</span> "<span class="">sbd</span> <span class="">dump</span>" <span class="">and others commands</span><span>,</span> <span class="">would work</span> <span class="">without having to specify</span> <span class="">the</span> <span class="">device</span> <span class="">parameters</span><span>.</span><span class=""> Of course, the</span> <span class="">variable</span> <span class="">SBD_DEVICE</span> <span class="">in /</span><span class="">etc/</span><span class="">sysconfig</span><span class="">/</span><span class="">sbd</span> file, <span class="">would be defined. <br>
<br>---<br><br>root@nodo1:/usr/lib/stonith/plugins/external <br># grep SBD_DEVICE /etc/sysconfig/sbd <br># SBD_DEVICE specifies the devices to use for exchanging sbd messages<br>SBD_DEVICE="/dev/disk/by-id/ata-VBOX_HARDDISK_VB37c86fb9-b67e3db4-part1;/dev/disk/by-id/ata-VBOX_HARDDISK_VB24ac6909-20d73ce9-part1;/dev/disk/by-id/ata-VBOX_HARDDISK_VB051291f4-f95e847d-part1"<br>
root@nodo1:/usr/lib/stonith/plugins/external <br># sbd list<br>You must specify 1 to 3 devices via the -d option.<br>sbd failed; please check the logs.<br>root@nodo1:/usr/lib/stonith/plugins/external <br># sbd -d /dev/disk/by-id/ata-VBOX_HARDDISK_VB37c86fb9-b67e3db4-part1 -d /dev/disk/by-id/ata-VBOX_HARDDISK_VB24ac6909-20d73ce9-part1 -d /dev/disk/by-id/ata-VBOX_HARDDISK_VB051291f4-f95e847d-part1 list<br>
0 nodo2 clear<br>1 nodo1 clear<br>0 nodo2 clear<br>1 nodo1 clear<br>0 nodo2 clear<br>1 nodo1 clear<br><br>---<br><br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">In debian and ubunut distros, the /etc/sysconfig directory doesn exist. The directory equivalent would be /etc/defaults.<br>
<br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">The initscript sbd is not compatible in debian distros. I modified the provieded script to work in ubuntu and debian. I don't know if that would be task for the debian HA maintainers. <br>
</span></span></div><div><span id="result_box" class="" lang="en"><span class=""></span></span><br></div><div>I think that the initscript should be load the softdog module in the start function if the parameter is defined.<br>
<br><br></div><div>One last question. Which is the official repository and website of the SBD proyect?<br>- <a href="http://linux-ha.org/wiki/SBD_Fencing">http://linux-ha.org/wiki/SBD_Fencing</a><br>- <a href="https://github.com/l-mb/sbd/">https://github.com/l-mb/sbd/</a><br>
- <a href="http://hg.linux-ha.org/sbd/">http://hg.linux-ha.org/sbd/</a><br><br></div><div><br></div><div>Thank you so much!<br><br></div><div>A great and cool software, Corosync, Pacemaker and SBD.<br><br><br></div><div>Saludos.<br>
</div></div>