Hi Gianni:
Thanks for your reply.
I added the filters in the lvm.conf file (I hope properly)
global_filter = [ "r|/dev/zd.*|", "r|/dev/mapper/pve-.*|",
"r|/dev/drbd.*|" ]
but the error is the same.
It only happens in the controller node:
linstor r l
╭────────────────────────────────────────╮
┊ ResourceName ┊ Node ┊ Port ┊ Usage ┊ State ┊
╞┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╡
┊ vm-100-disk-1 ┊ proxmox01 ┊ 7001 ┊ ┊ Unknown ┊
┊ vm-100-disk-1 ┊ proxmox02 ┊ 7001 ┊ Unused ┊ UpToDate ┊
┊ vm-100-disk-1 ┊ proxmox03 ┊ 7001 ┊ Unused ┊ UpToDate ┊
╰──────────────────────────────────────────────────────╯
The configuration file was created correctly
(/var/lib/linstor.d/vm-100-disk-1.res)
cat /var/lib/linstor.d/vm-100-disk-1.res
# This file was generated by linstor(0.9.5), do not edit manually.
resource "vm-100-disk-1"
{
template-file "linstor_common.conf";
net
{
cram-hmac-alg sha1;
shared-secret "XmAkZLJ/HZ0SIehMbtjy";
allow-two-primaries yes;
}
on proxmox01
{
volume 0
{
disk /dev/vg_hdd/vm-100-disk-1_00000;
meta-disk internal;
device minor 1001;
}
node-id 0;
}
on proxmox02
{
volume 0
{
disk /dev/drbd/this/is/not/used;
meta-disk internal;
device minor 1001;
}
node-id 1;
}
on proxmox03
{
volume 0
{
disk /dev/drbd/this/is/not/used;
meta-disk internal;
device minor 1001;
}
node-id 2;
}
connection
{
host proxmox01 address ipv4 192.168.187.11:7001;
host proxmox02 address ipv4 192.168.187.12:7001;
}
connection
{
host proxmox01 address ipv4 192.168.187.11:7001;
host proxmox03 address ipv4 192.168.187.13:7001;
}
}
Regards
Daniel
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
De: Gianni Milo [mailto:[email protected]]
Enviado el: miércoles, 17 de abril de 2019 4:22
Para: Daniel Ulman
CC: [email protected]
Asunto: Re: [DRBD-user] Error message: Failed to create meta-data for DRBD
volume
One step which people usually miss, or misconfigure, is to setup lvm filters
properly in /etc/lvm/lvm.conf file. Make sure that you have correctly added
into lvm scan only devices that are really needed and remove all the rest.
G.
On Wed, 17 Apr 2019 at 06:08, Daniel Ulman <[email protected]> wrote:
Hi everybody:
I have installed a cluster of 3 nodes with proxmox and all the Linstor
components in each node.
I follow the steps of the guide "The DRBD9 and LINSTOR User's Guide" without
any problems.
- linstor node create bravo 10.43.70.3
- vgcreate vg_ssd / dev / nvme0n1 / dev / nvme1n1 [...]
- linstor storage-pool create lvm alpha pool_ssd vg_ssd
- linstor resource-definition create backups
- linstor volume-definition create backups 500G
But when I try to do:
- linstor resource create alpha backups --storage-pool pool_hdd
I get the following error:
Error message: Failed to create meta-data for DRBD volume backups / 0
If the resource is created from the proxmox web interface, the error is:
Error: unable to create VM 100 - error with cfs lock 'storage-drbdstorage'.
Could not place vm-100-disk-1 exit code 10
Any help would be appreciated
Regards,
Daniel
P.S.:
cat /proc/drbd
version: 9.0.17-1 (api:2/proto:86-114)
GIT-hash: b9abab2dd27313922797d026542b399870bfd13e build by root@proxmox01,
2019-03-29 15:44:09
Transports (api:16):
apt search linstor | grep install
linstor-client/unknown,now 0.9.2-1 all [installed,automatic]
linstor-common/unknown,now 0.9.5-1 all [installed,automatic]
linstor-controller/unknown,now 0.9.5-1 all [installed]
linstor-proxmox/unknown,now 3.0.3-1 all [installed]
linstor-satellite/unknown,now 0.9.5-1 all [installed]
python-linstor/unknown,now 0.9.2-1 all [installed,automatic]
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.8 (stretch)
Release: 9.8
Codename: stretch
apt search proxmox | grep install
libpve-apiclient-perl/stable,now 2.0-5 all [installed]
libpve-guest-common-perl/stable,now 2.0-20 all [installed]
librados2-perl/stable,now 1.0-6 amd64 [installed]
linstor-proxmox/unknown,now 3.0.3-1 all [installed]
novnc-pve/stable,now 1.0.0-3 amd64 [installed]
pve-edk2-firmware/stable,now 1.20190312-1 all [installed]
pve-headers-4.15/stable,now 5.3-3 all [installed,automatic]
pve-headers-4.15.18-10-pve/stable,now 4.15.18-32 amd64 [installed]
pve-headers-4.15.18-12-pve/stable,now 4.15.18-35 amd64 [installed,automatic]
pve-installer/stable 5.0-4 amd64
pve-kernel-4.15/stable,now 5.3-3 all [installed]
pve-kernel-4.15.18-10-pve/stable,now 4.15.18-32 amd64 [installed]
pve-kernel-4.15.18-11-pve/stable,now 4.15.18-34 amd64 [installed,automatic]
pve-kernel-4.15.18-12-pve/stable,now 4.15.18-35 amd64 [installed,automatic]
apt search drbd | grep install
drbd-dkms/unknown,now 9.0.17-1 all [installed]
drbd-utils/unknown,now 9.8.0-1 amd64 [installed,automatic]
drbdtop/unknown,now 0.2.1-1 amd64 [installed]
linstor-common/unknown,now 0.9.5-1 all [installed,automatic]
linstor-controller/unknown,now 0.9.5-1 all [installed]
linstor-proxmox/unknown,now 3.0.3-1 all [installed]
linstor-satellite/unknown,now 0.9.5-1 all [installed]
_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user
_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user