<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">Le 13/03/2018 à 17:05, Roland Kammerer
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:20180313160539.srodoty75zqkzkso@rck.sh">
<pre wrap="">On Tue, Mar 13, 2018 at 04:57:34PM +0100, Jdt wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Le 13/03/2018 à 16:21, Roland Kammerer a écrit :
</pre>
<blockquote type="cite">
<pre wrap="">On Tue, Mar 13, 2018 at 04:07:17PM +0100, Jdt wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
We had a three nodes Proxmox cluster in V4 (jessie) with drbd from Proxmox.
I choose to reinitialize this cluster with Proxmox V5 (stretch) with
drbd from Linbit.
I install Proxmox from the ISO image on the three nodes. Proxmox nodes
are not associated yet in a cluster.
I install drbdmanage-proxmox as indicated in
<a class="moz-txt-link-freetext" href="https://docs.linbit.com/docs/users-guide-9.0/#ch-proxmox">https://docs.linbit.com/docs/users-guide-9.0/#ch-proxmox</a>
My network interfaces are well configured for drbd.
On the first node I create the drbdpool volume group as indicated in
<a class="moz-txt-link-freetext" href="https://docs.linbit.com/docs/users-guide-9.0/#s-dm-init-cluster">https://docs.linbit.com/docs/users-guide-9.0/#s-dm-init-cluster</a>
But it's failed in initialization :
root@dmz-pve1:~ # drbdmanage init 192.168.2.10
You are going to initialize a new drbdmanage cluster.
CAUTION! Note that:
* Any previous drbdmanage cluster information may be removed
* Any remaining resources managed by a previous drbdmanage installation
that still exist on this system will no longer be managed by drbdmanage
Confirm:
yes/no: yes
Error: External command failed:
drbdsetup new-resource .drbdctrl 0
Command output:
(stdout)
Command exited with exit_code 20
Initialization failed
</pre>
</blockquote>
<pre wrap="">Failing at that early stage usually means that the wrong module is
loaded. cat /proc/drbd
</pre>
</blockquote>
<pre wrap="">root@dmz-pve1:~ # cat /proc/drbd
version: 8.4.7 (api:1/proto:86-101)
srcversion: 2DCC561E7F1E3D63526E90D
</pre>
</blockquote>
<pre wrap="">
Then I was right. drbdmanage always was drbd9 only. There should be a
drbd-dkms module in our proxmox repo. Install that one and make sure it
is loaded.
</pre>
</blockquote>
<font size="-1">Thanks. I add pve-headers and drbd-dkms and I can
initialize the new drbdmanage cluster.<br>
It will be nice to include this in
<a class="moz-txt-link-freetext" href="https://docs.linbit.com/docs/users-guide-9.0/#ch-proxmox">https://docs.linbit.com/docs/users-guide-9.0/#ch-proxmox</a> chapter.<br>
But, I got a lot of messages on my syslog about PVE storage about
every ten seconds :<br>
</font><font size="-1">
<blockquote type="cite"><tt>Mar 19 18:54:02 dmz-pve1
pvestatd[1984]: Use of uninitialized value in split at
/usr/share/perl5/PVE/Storage/Custom/DRBDPlugin.pm line 217.</tt><tt><br>
</tt><tt>Mar 19 18:54:02 dmz-pve1 pvestatd[1984]: Use of
uninitialized value $free_space in multiplication (*) at
/usr/share/perl5/PVE/Storage/Custom/DRBDPlugin.pm line 220.</tt><tt><br>
</tt><tt>Mar 19 18:54:02 dmz-pve1 pvestatd[1984]: Use of
uninitialized value $total_space in multiplication (*) at
/usr/share/perl5/PVE/Storage/Custom/DRBDPlugin.pm line 221.</tt><tt><br>
</tt><tt>Mar 19 18:54:12 dmz-pve1 pvestatd[1984]: Use of
uninitialized value in split at
/usr/share/perl5/PVE/Storage/Custom/DRBDPlugin.pm line 217.</tt><tt><br>
</tt><tt>Mar 19 18:54:12 dmz-pve1 pvestatd[1984]: Use of
uninitialized value $free_space in multiplication (*) at
/usr/share/perl5/PVE/Storage/Custom/DRBDPlugin.pm line 220.</tt><tt><br>
</tt><tt>Mar 19 18:54:12 dmz-pve1 pvestatd[1984]: Use of
uninitialized value $total_space in multiplication (*) at
/usr/share/perl5/PVE/Storage/Custom/DRBDPlugin.pm line 221.</tt><tt><br>
</tt><tt>Mar 19 18:54:22 dmz-pve1 pvestatd[1984]: Use of
uninitialized value in split at
/usr/share/perl5/PVE/Storage/Custom/DRBDPlugin.pm line 217.</tt><tt><br>
</tt><tt>Mar 19 18:54:22 dmz-pve1 pvestatd[1984]: Use of
uninitialized value $free_space in multiplication (*) at
/usr/share/perl5/PVE/Storage/Custom/DRBDPlugin.pm line 220.</tt><tt><br>
</tt><tt>Mar 19 18:54:22 dmz-pve1 pvestatd[1984]: Use of
uninitialized value $total_space in multiplication (*) at
/usr/share/perl5/PVE/Storage/Custom/DRBDPlugin.pm line 221.</tt><br>
</blockquote>
In proxmox interface I have no idea of free space on my drbdpool
VG. Initialize the cluster create /dev/drbdpool/.drbdctrl_0 and
/dev/drbdpool/.drbdctrl_1.<br>
For the moment no cluster are created for drbd and for proxmox.<br>
<br>
/etc/drbdmanaged.cfg contain :<br>
[LOCAL]<br>
storage-plugin = drbdmanage.storage.lvm_thinlv.LvmThinLv<br>
force=1<br>
<br>
and /etc/pve/storage.cfg :<br>
dir: local<br>
path /var/lib/vz<br>
content iso,vztmpl,backup<br>
<br>
drbd: drbdstorage<br>
content images,rootdir<br>
redundancy 3<br>
<br>
Any Ideas ?<br>
Thanks in advance<br>
<br>
Regards, JdT<br>
<br>
<br>
<br>
<br>
</font><br>
<div class="moz-signature"><br>
</div>
</body>
</html>