<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I solve the problem just initializing DRBD with /etc/init.d/drbd
start in both nodes, but now I can't make it work with Proxmox. I
feel like the documentation is really messed up, don't know what I
should do to make a 3 node Cluster Proxmox with DRBD and LVM on
top. It's confusing.<br>
<br>
This is the steps that I've followed:<br>
<br>
- Create volume group named drbdpool /dev/sdh1<br>
- Initialize control volume drbdmanage init <br>
- Add node <br>
- Create logical volume with <i>lvcreate --name vmdisk --size 50G
drbdpool </i>on every node<br>
- Create /etc/drbd.d/r0.res resource on every node with:<br>
<br>
<i>resource r0 {</i><i><br>
</i><i> protocol C;</i><i><br>
</i><i> startup {</i><i><br>
</i><i> wfc-timeout 0; # non-zero wfc-timeout
can be dangerous
(<a class="moz-txt-link-freetext" href="http://forum.proxmox.com/threads/3465-Is-it-safe-to-use-wfc-timeout-in-DRBD-configuration">http://forum.proxmox.com/threads/3465-Is-it-safe-to-use-wfc-timeout-in-DRBD-configuration</a>)</i><i><br>
</i><i> degr-wfc-timeout 60;</i><i><br>
</i><i> become-primary-on both;</i><i><br>
</i><i> }</i><i><br>
</i><i> on node1 {</i><i><br>
</i><i> device /dev/drbd0;</i><i><br>
</i><i> disk /dev/drbdpool/vmdisk;</i><i><br>
</i><i> address 172.20.0.50:7788;</i><i><br>
</i><i> meta-disk internal;</i><i><br>
</i><i> }</i><i><br>
</i><i> on node2 {</i><i><br>
</i><i> device /dev/drbd0;</i><i><br>
</i><i> disk /dev/drbdpool/vmdisk;</i><i><br>
</i><i> address 172.20.0.52:7788;</i><i><br>
</i><i> meta-disk internal;</i><i><br>
</i><i> }</i><i><br>
</i><i>}</i><i><br>
</i><br>
- I try to create metadata with <i>drbadm create-md r0 </i>but
I have an error:<br>
<b>drbdadm create-md r0</b><b><br>
</b><b>drbd.d/drbdctrl.res:7: conflicting use of device-minor
'device-minor:node1:0' ...</b><b><br>
</b><b>drbd.d/r0.res:0: device-minor 'device-minor:node2:0' first
used here</b><b><br>
</b><br>
I don't know what to do. I have restarted the nodes, reconfigured
the pool but I can't make it work.<br>
</p>
<br>
<div class="moz-cite-prefix">El 20/01/2018 a las 9:19, Yannis Milios
escribió:<br>
</div>
<blockquote type="cite"
cite="mid:CAFiF2OpWekmRQ+SSnYFqMCk6eRnPCRfGc+JqQ+938pJ437UNkA@mail.gmail.com">
<div dir="ltr">Follow the steps in DRBD9 documentation carefully,
in order to create and initialise properly your DRBD9 cluster.
<div><br>
</div>
<div><a
href="https://docs.linbit.com/docs/users-guide-9.0/#s-proxmox-overview"
moz-do-not-send="true">https://docs.linbit.com/docs/users-guide-9.0/#s-proxmox-overview</a><br>
</div>
<div><br>
</div>
<div>- Make sure you have installed properly drbd9 kernel
modules/drbd-utils.</div>
<div>- Make sure you have created a VG named drbdpool *before*
initialising the cluster.</div>
<div>- Make sure you have configured /etc/drbdmanaged.cfg
properly.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jan 18, 2018 at 9:47 AM, Borja
Muñoz <span dir="ltr"><<a
href="mailto:borja.munoz@inelcom.com" target="_blank"
moz-do-not-send="true">borja.munoz@inelcom.com</a>></span>
wrote:<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>Hello,<br>
<br>
I'm trying to setup DRBD9 in a new Proxmox 5.0 Cluster
but I can't make it work. I have read some threads like
this but the solution is not fully clear at all, so:<br>
<br>
The problem is the following:</p>
<p>drbdmanage init<br>
<br>
<i>You are going to initialize a new drbdmanage cluster.</i><i><br>
</i><i>CAUTION! Note that:</i><i><br>
</i><i> * Any previous drbdmanage cluster information
may be removed</i><i><br>
</i><i> * Any remaining resources managed by a previous
drbdmanage installation</i><i><br>
</i><i> that still exist on this system will no
longer be managed by drbdmanage</i><i><br>
</i><i><br>
</i><i>Confirm:</i><i><br>
</i><i> yes/no: yes</i><i><br>
</i><i><b>Error: External command failed:</b></i><i><b><br>
</b></i><i><b>drbdsetup new-resource .drbdctrl 0</b></i><i><b><br>
</b></i><i><b>Command output:</b></i><i><b><br>
</b></i><i><b> (stdout) </b></i><i><b><br>
</b></i><i><b>Command exited with exit_code 20</b></i><i><b><br>
</b></i><i><b>Initialization failed</b></i></p>
<p>I have installed the latest packages with: apt-get
install drbd-dkms dbrd-manager pve-headers etc and I
have loaded the module<br>
<i> dkms status</i><i><br>
</i><i>drbd, 9.0.11-1: added</i></p>
<p>modprobe drbd</p>
<p># modinfo drbd<br>
<i>filename: /lib/modules/4.10.17-2-pve/<wbr>updates/dkms/drbd.ko</i><i><br>
</i><i>alias: block-major-147-*</i><i><br>
</i><i>license: GPL</i><i><br>
</i><i>version: 9.0.11-1</i><i><br>
</i><i>description: drbd - Distributed Replicated
Block Device v9.0.11-1</i><i><br>
</i><i>author: Philipp Reisner <a
class="m_-6067159764847322447moz-txt-link-rfc2396E"
href="mailto:phil@linbit.com" target="_blank"
moz-do-not-send="true"><phil@linbit.com></a>,
Lars Ellenberg <a
class="m_-6067159764847322447moz-txt-link-rfc2396E"
href="mailto:lars@linbit.com" target="_blank"
moz-do-not-send="true"><lars@linbit.com></a></i><i><br>
</i><i>srcversion: 9ACAAF3E3C9B36A172843DE</i><i><br>
</i><i>depends: libcrc32c</i><i><br>
</i><i>vermagic: 4.10.17-2-pve SMP mod_unload
modversions </i><i><br>
</i><i>parm: enable_faults:int</i><i><br>
</i><i>parm: fault_rate:int</i><i><br>
</i><i>parm: fault_count:int</i><i><br>
</i><i>parm: fault_devs:int</i><i><br>
</i><i>parm: disable_sendpage:bool</i><i><br>
</i><i>parm: allow_oos:DONT USE! (bool)</i><i><br>
</i><i>parm: minor_count:Approximate number of
drbd devices (1-255) (uint)</i><i><br>
</i><i>parm: usermode_helper:string<br>
</i><br>
</p>
<p>I don't know what to do anymore. <br>
Thanks<br>
</p>
</div>
<br>
______________________________<wbr>_________________<br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com"
moz-do-not-send="true">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.linbit.com/<wbr>mailman/listinfo/drbd-user</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>