Image Datastore does not support transfer mode: fs_lvm

Hello,

An LVM System Datastore has been added to the system (iscsi lun presented to kvm nodes).
While instantiating VM from the template the following error has appeared:

one.vm.deploy result FAILURE [one.vm.deploy] Image Datastore does not support transfer mode: fs_lvm

Configured Image datastore (NFS shared):
DATASTORE TEMPLATE
ALLOW_ORPHANS="NO"
CLONE_TARGET="SYSTEM"
CLONE_TARGET_SSH="SYSTEM"
DISK_TYPE="FILE"
DISK_TYPE_SSH="FILE"
DRIVER="qcow2"
DS_MAD="fs"
LN_TARGET="NONE"
LN_TARGET_SSH="SYSTEM"
RESTRICTED_DIRS="/"
SAFE_DIRS="/var/tmp"
TM_MAD="qcow2"
TM_MAD_SYSTEM="shared"
TYPE="IMAGE_DS"

Configured System datastore (LVM):
DATASTORE TEMPLATE
ALLOW_ORPHANS="NO"
BRIDGE_LIST="one-kvm-node-01 one-kvm-node-02"
CLUSTER="100"
DISK_TYPE="FILE"
DS_MIGRATE="YES"
RESTRICTED_DIRS="/"
SAFE_DIRS="/var/tmp"
SHARED="YES"
TM_MAD="fs_lvm"
TYPE="SYSTEM_DS"

Could you help to solve this issue?


KVM Nodes
OS: Centos
kernel: 3.10.0-957.21.3.el7.x86_64

Opennebula: 5.8.1

Hello @gray380

Do you need to change your TM_MAD in your image datastore to fs_lvm, visit this for more information.

Hello @ahuertas,

Do I have to change image ds type despite that in reality it is NFS shared?

You can have both, so just change TM_MAD or TM_MAD_SYSTEM, so, you can have lvm and shared at once.

Okay, I’ve change Image DS’s TM_MAD from qcow2 to fs_lvm and faced the other error:

Mon Aug 5 15:25:47 2019 [Z0][VMM][I]: error: internal error: process exited while connecting to monitor: nly=on -device ide-cd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -chardev socket,id=charchannel0,fd=28,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 -vnc 0.0.0.0:239 -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg timestamp=on
Mon Aug 5 15:25:47 2019 [Z0][VMM][I]: 2019-08-05T12:25:47.661101Z qemu-kvm: -drive file=/var/lib/one//datastores/119/239/disk.0,format=qcow2,if=none,id=drive-virtio-disk0,cache=none: Image is not in qcow2 format

Seems that opennebula works only in the following combinations:
LVM Image DS → LVM System DS
Shared qcow2 Image → Shared System DS

in other words mixing not supported.

Hello,

Do you mean this one:

$ onedatastore show 100
DATASTORE 100
INFORMATION
ID : 100
NAME : emc-dd
USER : oneadmin
GROUP : tsu
CLUSTERS : 100
TYPE : IMAGE
DS_MAD : fs
TM_MAD : qcow2
BASE PATH : /var/lib/one//datastores/100
DISK_TYPE : FILE
STATE : READY

DATASTORE
CAPACITY
TOTAL: : 1.5T
FREE: : 1.2T
USED: : 321.8G
LIMIT: : -

PERMISSIONS

OWNER : um-
GROUP : um-
OTHER : —

DATASTORE
TEMPLATE
ALLOW_ORPHANS=“NO”
CLONE_TARGET=“SYSTEM”
CLONE_TARGET_SSH=“SYSTEM”
DISK_TYPE=“FILE”
DISK_TYPE_SSH=“FILE”
DRIVER=“qcow2”
DS_MAD=“fs”
LN_TARGET=“NONE”
LN_TARGET_SSH=“SYSTEM”
RESTRICTED_DIRS="/"
SAFE_DIRS="/var/tmp /var/lib/one/datastores/100/ golden-images
/var/lib/one/datastores/external/bk_vms/ /var/lib/one/tmp/"
TM_MAD=“qcow2”
TM_MAD_SYSTEM=“shared”
TYPE=“IMAGE_DS”

IMAGES
0
1
2
3
5
7
9
32
43
44
55
56
65
73
74
76
80
81
82
83
86
87
89
91
92

05.08.19 15:11, Alejandro Huertas via OpenNebula Community пише:

Yes, the image datastore you are using.