[one-users] opennebula 3.8.1 + clvm
Tobias Honacker
t.honacker at googlemail.com
Thu Feb 21 06:51:50 PST 2013
Hi guys,
my setup:
centos 6.3
opennebula 3.8.1
clvm (cman, corosync)
drbd 8.4.2
---snip---
bash-4.1$ grep -vE '^($|#)' /etc/one/oned.conf
MANAGER_TIMER = 10
HOST_MONITORING_INTERVAL = 30
VM_POLLING_INTERVAL = 30
SCRIPTS_REMOTE_DIR=/var/lib/one/remotes/
PORT = 2633
DB = [ backend = "sqlite" ]
VNC_BASE_PORT = 5900
DEBUG_LEVEL = 3
NETWORK_SIZE = 254
MAC_PREFIX = "02:00"
DEFAULT_IMAGE_TYPE = "OS"
DEFAULT_DEVICE_PREFIX = "hd"
IM_MAD = [
name = "im_kvm",
executable = "one_im_ssh",
arguments = "-r 0 -t 15 kvm" ]
VM_MAD = [
name = "vmm_kvm",
executable = "one_vmm_exec",
arguments = "-t 15 -r 0 kvm",
default = "vmm_exec/vmm_exec_kvm.conf",
type = "kvm" ]
TM_MAD = [
executable = "one_tm",
arguments = "-t 15 -d dummy,lvm,shared,qcow2,ssh,vmfs,iscsi" ]
DATASTORE_MAD = [
executable = "one_datastore",
arguments = "-t 15 -d fs,vmware,vmfs,iscsi,lvm"
]
HM_MAD = [
executable = "one_hm" ]
AUTH_MAD = [
executable = "one_auth_mad",
authn = "ssh,x509,ldap,server_cipher,server_x509"
]
SESSION_EXPIRATION_TIME = 900
VM_RESTRICTED_ATTR = "CONTEXT/FILES"
VM_RESTRICTED_ATTR = "NIC/MAC"
VM_RESTRICTED_ATTR = "NIC/VLAN_ID"
VM_RESTRICTED_ATTR = "RANK"
IMAGE_RESTRICTED_ATTR = "SOURCE"
---snip---
---snip---
bash-4.1$ onedatastore show 100
DATASTORE 100 INFORMATION
ID : 100
NAME : production
USER : oneadmin
GROUP : oneadmin
CLUSTER : drbd
DS_MAD : lvm
TM_MAD : shared
BASE PATH : /var/lib/one/datastores/100
PERMISSIONS
OWNER : um-
GROUP : u--
OTHER : ---
DATASTORE TEMPLATE
DS_MAD="lvm"
HOST="localhost"
NAME="production"
TM_MAD="shared"
VG_NAME="vg-one"
IMAGES
4
---snip---
At the moment i'm not able to create a VM. The logs:
---snip---
Thu Feb 21 15:36:13 2013 [TM][D]: Message received: LOG I 4 Command execution fail: /var/lib/one/remotes/tm/shared/clone localhost:vg-one.lv-one-4 priv002:/var/lib/one//datastores/0/4/disk.0 4 100
Thu Feb 21 15:36:13 2013 [TM][D]: Message received: LOG I 4 clone: Cloning /var/lib/one/datastoresvg-one.lv-one-4 in priv002:/var/lib/one//datastores/0/4/disk.0
Thu Feb 21 15:36:13 2013 [TM][D]: Message received: LOG E 4 clone: Command "cd /var/lib/one/datastores/0/4; cp -r /var/lib/one/datastoresvg-one.lv-one-4 /var/lib/one/datastores/0/4/disk.0" failed: Warning: Permanently added 'priv002,192.168.255.2' (RSA) to the list of known hosts.
Thu Feb 21 15:36:13 2013 [TM][D]: Message received: LOG I 4 cp: cannot stat `/var/lib/one/datastoresvg-one.lv-one-4': No such file or directory
Thu Feb 21 15:36:13 2013 [TM][D]: Message received: LOG E 4 Error copying localhost:vg-one.lv-one-4 to priv002:/var/lib/one//datastores/0/4/disk.0
Thu Feb 21 15:36:13 2013 [TM][D]: Message received: LOG I 4 ExitCode: 1
Thu Feb 21 15:36:13 2013 [TM][D]: Message received: TRANSFER FAILURE 4 Error copying localhost:vg-one.lv-one-4 to priv002:/var/lib/one//datastores/0/4/disk.0
---snip---
Changing TM_MAD to lvm instead of shared i got this error:
---snip---
Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG I 5 Command execution fail: /var/lib/one/remotes/tm/lvm/clone localhost:vg-one.lv-one-4 priv002:/var/lib/one//datastores/0/5/disk.0 5 100
Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG E 5 clone: Command " set -e
Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG I 5 mkdir -p /var/lib/one/datastores/0/5
Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG I 5 sudo lvcreate -s -L512 -n lv-one-4-5-0 /dev/vg-one/lv-one-4
Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG I 5 ln -s "/dev/vg-one/lv-one-4-5-0" "/var/lib/one/datastores/0/5/disk.0"" failed: Warning: Permanently added 'priv002,192.168.255.2' (RSA) to the list of known hosts.
Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG I 5 lv-one-4 must be active exclusively to create snapshot
Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG E 5 Error cloning /dev/vg-one/lv-one-4 to /dev/vg-one/lv-one-4-5-0
Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG I 5 ExitCode: 5
Thu Feb 21 15:48:33 2013 [TM][D]: Message received: TRANSFER FAILURE 5 Error cloning /dev/vg-one/lv-one-4 to /dev/vg-one/lv-one-4-5-0
---snip---
It tells me that lv-one-4 isnt active but it is on both nodes:
lv-one-4 vg-one -wi-a--- 8,00g
Any ideas? i followed the documenation of LVM but there are no hints to solve this problem.
Best regards,
Tobias
More information about the Users
mailing list