[DRBD-user] Unable to init a node
Jdt
Jean-Daniel.Tissot at univ-fcomte.fr
Mon Mar 19 19:12:29 CET 2018
Le 13/03/2018 à 17:05, Roland Kammerer a écrit :
> On Tue, Mar 13, 2018 at 04:57:34PM +0100, Jdt wrote:
>> Le 13/03/2018 à 16:21, Roland Kammerer a écrit :
>>
>>> On Tue, Mar 13, 2018 at 04:07:17PM +0100, Jdt wrote:
>>>> 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
>>>> https://docs.linbit.com/docs/users-guide-9.0/#ch-proxmox
>>>> My network interfaces are well configured for drbd.
>>>> On the first node I create the drbdpool volume group as indicated in
>>>> https://docs.linbit.com/docs/users-guide-9.0/#s-dm-init-cluster
>>>>
>>>> But it's failed in initialization :
>>>> root at 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
>>> Failing at that early stage usually means that the wrong module is
>>> loaded. cat /proc/drbd
>> root at dmz-pve1:~ # cat /proc/drbd
>> version: 8.4.7 (api:1/proto:86-101)
>> srcversion: 2DCC561E7F1E3D63526E90D
> 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.
>
Thanks. I add pve-headers and drbd-dkms and I can initialize the new
drbdmanage cluster.
It will be nice to include this in
https://docs.linbit.com/docs/users-guide-9.0/#ch-proxmox chapter.
But, I got a lot of messages on my syslog about PVE storage about every
ten seconds :
> 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.
> 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.
> 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.
> 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.
> 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.
> 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.
> 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.
> 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.
> 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.
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.
For the moment no cluster are created for drbd and for proxmox.
/etc/drbdmanaged.cfg contain :
[LOCAL]
storage-plugin = drbdmanage.storage.lvm_thinlv.LvmThinLv
force=1
and /etc/pve/storage.cfg :
dir: local
path /var/lib/vz
content iso,vztmpl,backup
drbd: drbdstorage
content images,rootdir
redundancy 3
Any Ideas ?
Thanks in advance
Regards, JdT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20180319/97204487/attachment.htm>
More information about the drbd-user
mailing list