I created a datastore and it selected /var/lib/one//datastores/118 as the datastore off the Sunstone VM. This I then mounted to a gluster volume off a remote host.
However the datastore doesn’t pick up the change. Anyway to force it to pick up the change in the datastore size without restarting sunstone?
You need to wait until the datastore is monitored, the time you have to wait is specified in the value of MONITORING_INTERVAL_DATASTORE in /etc/one/oned.conf.
Mon Nov 11 03:23:45 2019 : Cannot dispatch VM to any Host. Possible reasons: Not enough capacity in Host or System DS, dispatch limit reached, or limit of free leases reached.
Getting the above. My GlusterFS DS shows a size of -/-. Guessing this is normal as my other system DS’s that are sshfs mounted also show -/-? It’s been a few hours and there’s no change.
However, my GlusterFS lists a size of 0M free. How would this happen when I have 4TB allocated and can write the file to the storage without issue:
[oneadmin@one01 ~]$ onedatastore list
ID NAME SIZE AVAIL CLUSTERS IMAGES TYPE DS TM STAT
120 mdskvm-p02.ni - - 100 0 sys - ssh on
119 mdskvm-p01.ni - - 100 0 sys - ssh on
118 mdskvmgv-c01 0M - 100 0 sys - shared on
117 mdskvm-p02.ni 4T 100% 100 2 img fs ssh on
115 mdskvm-p01.ni 4T 99% 100 2 img fs ssh on
2 files 40G 94% 0 0 fil fs ssh on
1 default 40G 94% 0 0 img fs ssh on
0 system - - 0 0 sys - ssh on
[oneadmin@one01 ~]$ onedatastore show 118
DATASTORE 118 INFORMATION
ID : 118
NAME : mdskvmgv-c01
USER : oneadmin
GROUP : oneadmin
CLUSTERS : 100
TYPE : SYSTEM
DS_MAD : -
TM_MAD : shared
BASE PATH : /var/lib/one//datastores/118
DISK_TYPE : FILE
STATE : READY
DATASTORE CAPACITY
TOTAL: : 0M
FREE: : 0M
USED: : 0M
LIMIT: : -
PERMISSIONS
OWNER : um-
GROUP : u--
OTHER : ---
DATASTORE TEMPLATE
ALLOW_ORPHANS="NO"
BRIDGE_LIST="onebr01"
CLUSTER="100"
DATASTORE_CAPACITY_CHECK="YES"
DISK_TYPE="FILE"
DS_MIGRATE="YES"
NO_DECOMPRESS="YES"
RESTRICTED_DIRS="/"
SAFE_DIRS="/var/lib/one/datastores/118"
SHARED="YES"
TM_MAD="shared"
TYPE="SYSTEM_DS"
IMAGES
[oneadmin@one01 ~]$ cd datastores/
[oneadmin@one01 datastores]$ df -h 118
Filesystem Size Used Avail Use% Mounted on
mdskvm-pc01.nix.mds.xyz:/mdskvmgv-c01 4.0T 41G 4.0T 2% /var/lib/one/datastores/118
[oneadmin@one01 datastores]$
Getting the above. My GlusterFS DS shows a size of -/-. Guessing this is normal as my other system DS’s that are sshfs mounted also show -/-? It’s been a few hours and there’s no change.
Yes, it’s completely normal.
As you are using gluster, it’s preferable to have qcow2 as TM_MAD, try to update the TM_MAD and try again.
Also, verify that you don’t have any monitoring errors in your /var/log/one/oned.log.
Mon Nov 11 10:35:41 2019 : Cannot dispatch VM to any Host. Possible reasons: Not enough capacity in Host or System DS, dispatch limit reached, or limit of free leases reached.
And yes, you’re completely right. There is an error in oned.log and it has to do with that datastore:
I’ll have to dig into it further but please suggest an action if this is familiar to you.
I wanted to avoid it because it’s very painful to extend a qcow2 images and it’s slower. ( If I have a 2TB qcow2 image, I need to make a copy before I can use it as input to extend the source qcow2 disk.