Hi All,
Had a strange error before trying to copy a zfs backed virtual machine to another remote host also running ZFS.
Seemed to error on trying to create a directory with mkdir.
I got past the error by manually creating the remote directory using mkdir -p
root@p20:/etc/systemd/system# lxc copy mptcp-server lm1:mptcp-server --stateless
Error: Failed instance creation: Error transferring instance data: Failed to create mount directory "/var/snap/lxd/common/lxd/storage-pools/zfs1/virtual-machines/mptcp-server": mkdir /var/snap/lxd/common/lxd/storage-pools/zfs1/virtual-machines/mptcp-server: no such file or directory
Just thought I’d put it out there just in case its a bug?
Cheers!
Jon.
tomp
(Thomas Parrott)
December 8, 2020, 11:44am
2
What version of LXD was this? Thanks
Hi
It was version 4.8 on both sides.
Cheers,
Jon.
tomp
(Thomas Parrott)
December 10, 2020, 9:58am
4
Was the storage pool on the receiving side freshly created or had it been in use for some time?
tomp
(Thomas Parrott)
December 10, 2020, 9:58am
5
Was the /var/snap/lxd/common/lxd/storage-pools/zfs1/virtual-machines
directory missing?
In use for some time, it was imported after I reinstalled everything.
Tbh its probably a non issue as this wasn’t a fresh install so I don’t want to cause alarm, I just thought it may have been something that was common but seems maybe its unique to my setup.
I’m running lxd on proxmox aswell which probably isn’t ideal.
Cheers,
Jon.
tomp
(Thomas Parrott)
December 10, 2020, 1:39pm
7
Perhaps the storage pool didn’t have the virtual machine directory, but was imported after LXD ran the patch to add it to existing storage pools.