This does not seem to work for me either, I'm on the latest pve and
drbd9/drbdmanage versions. For me, it fails with a different kind of error
though.
I've executed the command on the "leader" node. The source vm disk is local
zfs but I tried it also with a qemu raw image and had the same result.

Task viewer: VM 108 - Move disk
OutputStatus
Stop
create full clone of drive scsi1 (local-zfs:vm-108-disk-2)
pong
Operation completed successfully
Operation completed successfully
pong
Operation completed successfully
Operation completed successfully
pong
Operation completed successfully
pong
Operation completed successfully
Operation completed successfully
transferred: 0 bytes remaining: 34359738368 bytes total: 34359738368 bytes
progression: 0.00 %
qemu-img: Could not open '/dev/drbd/by-res/vm-108-disk-1/0': Could not open
'/dev/drbd/by-res/vm-108-disk-1/0': No such file or directory
pong
Operation completed successfully
Operation completed successfully
TASK ERROR: storage migration failed: copy failed: command
'/usr/bin/qemu-img convert -p -n -T none -f raw -O raw
/dev/zvol/rpool/data/vm-108-disk-2 /dev/drbd/by-res/vm-108-disk-1/0'
failed: exit code 1



On Wed, Jun 6, 2018 at 8:30 AM Roland Kammerer <roland.kamme...@linbit.com>
wrote:

> On Tue, Jun 05, 2018 at 03:46:10PM +0200, Christophe NOUVEL wrote:
> > Hi all,
> >
> > Our new 2 nodes proxmox cluster (PVE 5.2) + drbd9 (Linbit repository)
> works
> > fine.
> >
> > But when we try to move an existing disk, from an external USB hard drive
> > to DRB storage, we have :
> >
> > create full clone of drive ide1 (local-lvm:vm-107-disk-1)
> > pong
> > Operation completed successfully
> > Operation completed successfully
> > pong
> > Operation completed successfully
> > "." is not a valid unit!
> > usage: drbdmanage add-volume [-h] [-m MINOR] [-d DEPLOY] [-s SITE] name
> size
> > ...
> > Valid units: pib,gb,kib,kb,g,mb,k,mib,m,pb,p,t,tb,tib,gib
> > pong
> > Operation completed successfully
> > pong
> > Operation completed successfully
> > Operation completed successfully
> > drive mirror is starting for drive-ide1
> > drive-ide1: Cancelling block job
> > drive-ide1: Done.
> > pong
> > Operation completed successfully
> > Operation completed successfully
> > TASK ERROR: storage migration failed: mirroring error: VM 107 qmp command
> > 'drive-mirror' failed - Could not open
> '/dev/drbd/by-res/vm-107-disk-3/0':
> > No such file or directory
> >
> > We found a similar problem here :
> > http://lists.linbit.com/pipermail/drbd-user/2017-September/023679.html
> >
> > And tried to patch /usr/share/perl5/PVE/Storage/Custom/DRBDplugin.pm, but
> > nothing changed...
> > I even tried to hide this file, and nothing changes again??
>
> 1. Don't manually patch something
> 2. To me that looks like a bug that got fixed by now probably more than
> a year ago, IIRC. Back then the bug was that this "debug output"
> including '.' was printend on stdout, and then got mixed into other
> commands.
>
> So my best guess is you are using very very outdated versions.
>
> dpkg -l | grep drbd # would help
>
> Regards, rck
> _______________________________________________
> drbd-user mailing list
> drbd-user@lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
>
_______________________________________________
drbd-user mailing list
drbd-user@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to