Hello.
In preparation for the migration to 5.12 from 5.8, we are finishing our new infrastructure based on Lizardfs.
We setup our new hypervisors with Lizardfs storage but we experience messages like:
Fri Jul 10 12:06:18 2020 [Z0][VM][E]: Error deploying virtual machine 380825 to HID: 15. Reason: [one.vm.deploy] Image Datastore does not support transfer mode: qcow2
Fri Jul 10 12:06:18 2020 [Z0][VM][E]: Error deploying virtual machine 380825 to HID: 14. Reason: [one.vm.deploy] Image Datastore does not support transfer mode: qcow2
Fri Jul 10 12:06:18 2020 [Z0][VM][E]: Error deploying virtual machine 380825 to HID: 13. Reason: [one.vm.deploy] Image Datastore does not support transfer mode: qcow2
Fri Jul 10 12:06:18 2020 [Z0][VM][E]: Error deploying virtual machine 380825 to HID: 16. Reason: [one.vm.deploy] Image Datastore does not support transfer mode: qcow2
Fri Jul 10 12:06:18 2020 [Z0][VM][E]: Error deploying virtual machine 380825 to HID: 17. Reason: [one.vm.deploy] Image Datastore does not support transfer mode: qcow2
We setup the transfert driver and the datastore driver.
The transition between the previous hypervisors using a SAN and the new ones was in several steps:
Images are stored on SAN but usable on new hypervisors
- NFS mount the SAN backed image datastores (with
TM_MAD=qcow2
) on the new hypervisors - create a
SHARED
system datastore on the new hypervisors (backed by Lizardfs)
Here are it’s informations:
DATASTORE 107 INFORMATION
ID : 107
NAME : test-cluster-system
USER : nebula
GROUP : oneadmin
CLUSTERS : 102
TYPE : SYSTEM
DS_MAD : -
TM_MAD : shared
BASE PATH : /var/lib/one//datastores/107
DISK_TYPE : FILE
STATE : READY
DATASTORE CAPACITY
TOTAL: : 36.4T
FREE: : 26.1T
USED: : 10.3T
LIMIT: : -
PERMISSIONS
OWNER : um-
GROUP : u--
OTHER : ---
DATASTORE TEMPLATE
ALLOW_ORPHANS="NO"
DISK_TYPE="FILE"
DS_MIGRATE="YES"
RESTRICTED_DIRS="/"
SAFE_DIRS="/var/tmp"
SHARED="YES"
TM_MAD="shared"
TYPE="SYSTEM_DS"
This way, the new hypervisors can run VMs but the images are copied from the NFS.
New Lizardfs datastores
As it was not used before, we used the default
datastore as the new Lizardfs image datastore:
DATASTORE 1 INFORMATION
ID : 1
NAME : default
USER : nebula
GROUP : oneadmin
CLUSTERS : 102
TYPE : IMAGE
DS_MAD : lizardfs
TM_MAD : lizardfs
BASE PATH : /var/lib/one//datastores/1
DISK_TYPE : FILE
STATE : READY
DATASTORE CAPACITY
TOTAL: : 36.4T
FREE: : 26.1T
USED: : 10.3T
LIMIT: : -
PERMISSIONS
OWNER : um-
GROUP : u--
OTHER : ---
DATASTORE TEMPLATE
ALLOW_ORPHANS="YES"
BRIDGE_LIST="nebula80 nebula81 nebula82 nebula83 nebula84"
CLONE_TARGET="SYSTEM"
CLONE_TARGET_SHARED="SYSTEM"
DISK_TYPE="FILE"
DISK_TYPE_SHARED="FILE"
DRIVER="qcow2"
DS_MAD="lizardfs"
LN_TARGET="NONE"
LN_TARGET_SHARED="NONE"
TM_MAD="lizardfs"
TM_MAD_SYSTEM="shared"
TYPE="IMAGE_DS"
and since it was not used either, we used the system
datastore as the new Lizardfs system datastore:
DATASTORE 0 INFORMATION
ID : 0
NAME : system
USER : nebula
GROUP : oneadmin
CLUSTERS : 102
TYPE : SYSTEM
DS_MAD : -
TM_MAD : lizardfs
BASE PATH : /var/lib/one//datastores/0
DISK_TYPE : FILE
STATE : READY
DATASTORE CAPACITY
TOTAL: : 36.4T
FREE: : 26.1T
USED: : 10.3T
LIMIT: : -
PERMISSIONS
OWNER : um-
GROUP : u--
OTHER : ---
DATASTORE TEMPLATE
ALLOW_ORPHANS="YES"
DS_MIGRATE="YES"
SHARED="YES"
TM_MAD="lizardfs"
TYPE="SYSTEM_DS"
Unable to disable the test-cluster-system
system datastore
Now we are ready cleanup old stuffs, I tried to disable the test-cluster-system
before removing it when all VM will be migrated, but this results in the error message Error deploying virtual machine X to HID: Y. Reason: [one.vm.deploy] Image Datastore does not support transfer mode: qcow2
Do you have any suggestion of what could I have missed?
Regards.
oned.conf
informations
I modified the qcow2
TM_MAD_CONF
as describe in another post:
TM_MAD_CONF = [
NAME = "qcow2", LN_TARGET = "NONE", CLONE_TARGET = "SYSTEM", SHARED = "YES",
DRIVER = "qcow2", TM_MAD_SYSTEM = "ssh,shared",
LN_TARGET_SSH = "SYSTEM", CLONE_TARGET_SSH = "SYSTEM", DISK_TYPE_SSH = "FILE",
LN_TARGET_SHARED = "SYSTEM", CLONE_TARGET_SHARED = "SYSTEM", DISK_TYPE_SHARED = "FILE"
]
Here are the configuration for Lizardfs:
TM_MAD_CONF = [
NAME = "lizardfs",
LN_TARGET = "NONE",
CLONE_TARGET = "SYSTEM",
SHARED = "YES",
DS_MIGRATE = "YES",
ALLOW_ORPHANS = "YES",
TM_MAD_SYSTEM = "shared",
LN_TARGET_SHARED = "NONE",
CLONE_TARGET_SHARED = "SYSTEM",
DISK_TYPE_SHARED = "FILE"
]
and
DS_MAD_CONF = [
NAME = "lizardfs",
REQUIRED_ATTRS = "",
PERSISTENT_ONLY = "NO",
MARKETPLACE_ACTIONS = "export"
]