[one-users] System volumes created with no space
Marius Rex
MariusRex at venda.com
Thu Apr 24 19:36:14 PDT 2014
I am using Opennebula 4.5.80 on Centos6 with KVM.
/var/lib/one is a NFS mount, and has over a terabyte of free space available. I have it shared between my administrative host and my KVM servers, but I cannot launch a VM as there is never any space seen as available in the systems datastore.
[oneadmin$] onedatastore list
ID NAME SIZE AVAIL CLUSTER IMAGES TYPE DS TM
0 system 0M - snowman 0 sys - shared
1 default 1.4T 100% snowman 1 img fs shared
2 files 1.4T 100% snowman 0 fil fs ssh
All volumes are actually located on the same NFS volume:
[oneadmin]$ df -h /var/lib/one
Filesystem Size Used Avail Use% Mounted on
snowman03.of-1.uk.venda.com:/tank/systems/one
1.4T 946M 1.4T 1% /var/lib/one
Yet:
[oneadmin]$ onedatastore show 0
DATASTORE 0 INFORMATION
ID : 0
NAME : system
USER : oneadmin
GROUP : oneadmin
CLUSTER : snowman
TYPE : SYSTEM
DS_MAD : -
TM_MAD : shared
BASE PATH : /var/lib/one//datastores/0
DISK_TYPE : FILE
DATASTORE CAPACITY
TOTAL: : 0M
FREE: : 0M
USED: : 0M
LIMIT: : -
PERMISSIONS
OWNER : um-
GROUP : u--
OTHER : ---
DATASTORE TEMPLATE
BASE_PATH="/var/lib/one//datastores/"
SHARED="YES"
TM_MAD="shared"
TYPE="SYSTEM_DS"
IMAGES
[oneadmin]$ onedatastore show 1
DATASTORE 1 INFORMATION
ID : 1
NAME : default
USER : oneadmin
GROUP : oneadmin
CLUSTER : snowman
TYPE : IMAGE
DS_MAD : fs
TM_MAD : shared
BASE PATH : /var/lib/one//datastores/1
DISK_TYPE : FILE
DATASTORE CAPACITY
TOTAL: : 1.4T
FREE: : 1.4T
USED: : 945M
LIMIT: : -
PERMISSIONS
OWNER : um-
GROUP : u--
OTHER : ---
DATASTORE TEMPLATE
BASE_PATH="/var/lib/one//datastores/"
CLONE_TARGET="SYSTEM"
DISK_TYPE="FILE"
DS_MAD="fs"
LN_TARGET="NONE"
TM_MAD="shared"
TYPE="IMAGE_DS"
IMAGES
5
So I tried creating a new systems datastore on separate NFS mount as a test:
[oneadmin]$ cat template.ds
NAME = systems_nfs
TM_MAD = shared
TYPE = SYSTEM_DS
BASE_PATH = /mnt/systems/one
[oneadmin]$ onedatastore create template.ds -c snowman
And I get another system volume with no space:
[oneadmin at snow-opennebula01 ~]$ onedatastore show 102
DATASTORE 102 INFORMATION
ID : 102
NAME : systems_nfs
USER : oneadmin
GROUP : oneadmin
CLUSTER : snowman
TYPE : SYSTEM
DS_MAD : -
TM_MAD : shared
BASE PATH : /mnt/systems/one/102
DISK_TYPE : FILE
DATASTORE CAPACITY
TOTAL: : 0M
FREE: : 0M
USED: : 0M
LIMIT: : -
PERMISSIONS
OWNER : um-
GROUP : u--
OTHER : ---
DATASTORE TEMPLATE
BASE_PATH="/mnt/systems/one/"
SHARED="YES"
TM_MAD="shared"
TYPE="SYSTEM_DS"
IMAGES
[oneadmin]$ df -h /mnt/systems/one
Filesystem Size Used Avail Use% Mounted on
snowman03.of-1.uk.venda.com:/tank/systems
1.4T 945M 1.4T 1% /mnt/systems
I am not sure what I am doing wrong.
Suggestions?
Marius Rex
mariusrex at venda.com
Senior linux Engineer
cell# 347.565.5037
More information about the Users
mailing list