# System datastore showing 0/0 GB

**URL:** <https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305>\
**Category:** Product Support\
**Created:** [March 16, 2021, 8:00am UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305 "2021-03-16T08:00:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![laser](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@laser](https://forum.opennebula.io/u/laser)\
**Post date:** [March 16, 2021, 8:00am UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/1 "2021-03-16T08:00:36Z")

</div>

Hi Team,  
After fresh installation of OpenNebula, I’m getting this result on datastores 🙂

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/1/13dcd0c24aa551d433ac57afbe8caff9cbbb35ea.png)

Should it be like this ? I still didn’t touched anything regarding storage, and I thought that by default, the system datastore will have the same GB as the other ones …

---

<div class="post-metadata">

**Author:** ![laser](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@laser](https://forum.opennebula.io/u/laser)\
**Post date:** [March 16, 2021, 8:21am UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/2 "2021-03-16T08:21:35Z")

</div>

BTW -  
I’ve now noticed some change between image vs. system datastores.  
It seems that DS\_MAD is missing there :

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/5/5912aa754c1c70239650c39cf6fc1dd6bb0b6f02.png)

can it tell something ?

---

<div class="post-metadata">

**Author:** ![feldsam](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/feldsam/32/4441_2.png) [@feldsam](https://forum.opennebula.io/u/feldsam)\
**Post date:** [March 16, 2021, 2:26pm UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/3 "2021-03-16T14:26:53Z")

</div>

Hello, it is normal for system ds not have ds\_mad. you should check logs for monitoring errors

grep -i error /var/log/one/oned.log

---

<div class="post-metadata">

**Author:** ![laser](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@laser](https://forum.opennebula.io/u/laser)\
**Post date:** [March 17, 2021, 6:34am UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/4 "2021-03-17T06:34:42Z")

</div>

> [@feldsam](#):
>
> grep -i error /var/log/one/oned.log

Hi, thanks for your prompt.  
Here is the output :  
grep -i error /var/log/one/oned.log  
Tue Mar 16 09:24:47 2021 [Z0][ONE][I]: Log level:3 [0=ERROR,1=WARNING,2=INFO,3=DEBUG]  
Tue Mar 16 09:24:47 2021 [Z0][ONE][E]: SQL command was: SELECT version FROM local\_db\_versioning WHERE oid=(SELECT MAX(oid) FROM local\_db\_versioning), error: no such table: local\_db\_versioning  
Tue Mar 16 09:24:47 2021 [Z0][ONE][E]: SQL command was: SELECT version FROM db\_versioning WHERE oid=(SELECT MAX(oid) FROM db\_versioning), error: no such table: db\_versioning  
Wed Mar 17 00:00:01 2021 [Z0][ONE][E]: SQL command was: SELECT MIN(stime) FROM history, error: callback requested query abort

BTW -  
I’ve installed OpenNebula twice. one on a VM and one on physical server - and the same result…

---

<div class="post-metadata">

**Author:** ![feldsam](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/feldsam/32/4441_2.png) [@feldsam](https://forum.opennebula.io/u/feldsam)\
**Post date:** [March 17, 2021, 10:42am UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/5 "2021-03-17T10:42:25Z")

</div>

Hmm, looks like you are missing db\_verioning table. Try to create it manually

> <https://github.com/OpenNebula/one/blob/947c9716cddf2c595213f4c72ac379ec57a2ecd6/src/nebula/SystemDB.cc#L33>

---

<div class="post-metadata">

**Author:** ![laser](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@laser](https://forum.opennebula.io/u/laser)\
**Post date:** [March 17, 2021, 11:16am UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/6 "2021-03-17T11:16:51Z")

</div>

Thanks Krisitan !  
But where and how to create it ? what is the exact command ?  
[or to which file should I add it ? to vi /etc/one/oned.conf]?

---

<div class="post-metadata">

**Author:** ![feldsam](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/feldsam/32/4441_2.png) [@feldsam](https://forum.opennebula.io/u/feldsam)\
**Post date:** [March 17, 2021, 11:58am UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/7 "2021-03-17T11:58:21Z")

</div>

I recommend you connect to your mysql server and check if tables are missing. If you don’t know, then google for ‘how to list mysql tables cli’ in google

---

<div class="post-metadata">

**Author:** ![feldsam](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/feldsam/32/4441_2.png) [@feldsam](https://forum.opennebula.io/u/feldsam)\
**Post date:** [March 17, 2021, 12:00pm UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/8 "2021-03-17T12:00:08Z")

</div>

but you probably dont use mysql but sqlite located in /var/lib/one/one.db. In that case I recommend you to use mysql

[https://docs.opennebula.io/5.12/deployment/opennebula\_installation/frontend\_installation.html#step-5-enabling-mysql-mariadb-postgresql-optional](https://docs.opennebula.io/5.12/deployment/opennebula_installation/frontend_installation.html#step-5-enabling-mysql-mariadb-postgresql-optional)

---

<div class="post-metadata">

**Author:** ![laser](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@laser](https://forum.opennebula.io/u/laser)\
**Post date:** [March 17, 2021, 12:02pm UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/9 "2021-03-17T12:02:42Z")

</div>

thanks again Kristian for this info !

---

<div class="post-metadata">

**Author:** ![laser](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@laser](https://forum.opennebula.io/u/laser)\
**Post date:** [March 18, 2021, 9:02am UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/10 "2021-03-18T09:02:07Z")

</div>

Hello Again,  
The issue was with 5.12 , so now I’ve tried to install the newest version, 5.13 to see if it solves the issue.  
But still, the same result.

How cab it be that I’m installing something from scratch on a new and clean machine and it happens again ? what am I missing ? I don’t want to deal with DBs, just want to install a straight-forward product.  
Someone have a clue ?

---

<div class="post-metadata">

**Author:** ![feldsam](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/feldsam/32/4441_2.png) [@feldsam](https://forum.opennebula.io/u/feldsam)\
**Post date:** [March 20, 2021, 8:04pm UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/11 "2021-03-20T20:04:49Z")

</div>

probably some bug with sqlite integration? I installed OpenNebula few times without problems, but I always use MySQL.

---

<div class="post-metadata">

**Author:** ![laser](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@laser](https://forum.opennebula.io/u/laser)\
**Post date:** [March 21, 2021, 8:22am UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/12 "2021-03-21T08:22:51Z")

</div>

Very Strange.

Someone who using sqlite had this issue ??

---

<div class="post-metadata">

**Author:** ![ruben](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ruben/32/19_2.png) [@ruben](https://forum.opennebula.io/u/ruben)\
**Post date:** [March 22, 2021, 2:44pm UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/13 "2021-03-22T14:44:12Z")

</div>

Hi, it seems that you are ssh mode, it is normal it displays 0. These drivers uses the local storage of each host, and so each host will have different usage statistics.

The actual usage of the datastore in each host is show under the host information or onehost show command. Note that this behavior is different for other drivers.

---

<div class="post-metadata">

**Author:** ![laser](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@laser](https://forum.opennebula.io/u/laser)\
**Post date:** [March 24, 2021, 6:41am UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/14 "2021-03-24T06:41:28Z")

</div>

Oh, Thanks Ruben for the professional reply.

I had an issue with create a VM [Pending STATE forever], so I suspected it was this issue. but now that you are saying that it’s normal behavior, I’ll go ahead and add the host again, and check other things.

Thanks !

When I’ll add an host, should I configure something in order to be able to create the VM on the host’s datastore [local] ? or if I’ll choose the VM to be create on the host, it’ll choose the host’s datastore by default ?

---

<div class="post-metadata">

**Author:** ![carolynperry](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@carolynperry](https://forum.opennebula.io/u/carolynperry)\
**Post date:** [March 27, 2021, 6:54pm UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/15 "2021-03-27T18:54:54Z")

</div>

this is really helpful for me. thank you for sharing with us…

---

<div class="post-metadata">

**Author:** ![arora2deepak](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@arora2deepak](https://forum.opennebula.io/u/arora2deepak)\
**Post date:** [April 16, 2021, 11:03am UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/16 "2021-04-16T11:03:31Z")

</div>

Damm even I am having a similar kind of issue, I have searched all over the internet and even have posted on number of threads on different forum, no solution seems to work. I am really frustrated, can anyone of you here help me resolve this issue, I am very much tired now.

---

<div class="post-metadata">

**Author:** ![ahuertas](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ahuertas/32/7487_2.png) [@ahuertas](https://forum.opennebula.io/u/ahuertas)\
**Post date:** [April 16, 2021, 11:08am UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/17 "2021-04-16T11:08:52Z")

</div>

Hello @laser

If you want to use local storage of the host, you need to follow these steps:

- Have a system datastore using `TM_MAD=ssh` (this is created by default when you start OpenNebula first time)
- Create the host and wait until it is in ON state.
- Then when creating the VM, it will be deployed on the host and the system datastore.

If the VM is in `PENDING` state for so long, you need to check `/var/log/one/sched.log` to see what is the problem there. If you are not able to figure out, you can increase the scheduler debug level by editing the file `/etc/one/sched.conf` and changing the value under `debug_level`, then restart the scheduler.

Best,  
Álex.

---

<div class="post-metadata">

**Author:** ![laser](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@laser](https://forum.opennebula.io/u/laser)\
**Post date:** [April 20, 2021, 9:53am UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/18 "2021-04-20T09:53:22Z")

</div>

Hi Alex, and thanks for your detailed reply.

I’ve installed the new version now [it’s the 4-5 time…] and the same happens…  
My ‘system’ datastore is 0 GB…

I’m having the TM\_MAD=ssh on my datastore.  
I’m trying to create a VM on my host, and choosing the system datastore, and the VM is in “CLONING” state…

Can you please assist to solve it ? now I see that I’m not the only one who having that issue  
Thanks in advance !

## Here is the log : cat /var/log/one/sched.log Tue Apr 20 11:03:13 2021 [Z0][SCHED][I]: Init Scheduler Log system Tue Apr 20 11:03:13 2021 [Z0][SCHED][I]: Starting Scheduler Daemon

```
 Scheduler Configuration File       

```

* * *

## COLD\_MIGRATE\_MODE=0 DEFAULT\_DS\_SCHED=POLICY=1 DEFAULT\_NIC\_SCHED=POLICY=1 DEFAULT\_SCHED=POLICY=1 DIFFERENT\_VNETS=YES LIVE\_RESCHEDS=0 LOG=DEBUG\_LEVEL=3,SYSTEM=file MAX\_DISPATCH=30 MAX\_HOST=1 MAX\_VM=5000 MEMORY\_SYSTEM\_DS\_SCALE=0 MESSAGE\_SIZE=1073741824 ONE\_XMLRPC=[http://localhost:2633/RPC2](http://localhost:2633/RPC2) SCHED\_INTERVAL=15 TIMEOUT=60

Tue Apr 20 11:03:13 2021 [Z0][SCHED][I]: XML-RPC client using 1073741824 bytes for response buffer.

Tue Apr 20 11:03:13 2021 [Z0][SCHED][I]: oned successfully contacted.  
Tue Apr 20 11:03:13 2021 [Z0][SCHED][I]: Configuring scheduler for Zone ID: 0  
Tue Apr 20 11:03:13 2021 [Z0][SCHED][I]: Starting scheduler loop..

And here is the ‘system’ datastore :

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/d/d8cbae055f07d2d21edeac87938f48fe72ef69c9.png)

---

<div class="post-metadata">

**Author:** ![ahuertas](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ahuertas/32/7487_2.png) [@ahuertas](https://forum.opennebula.io/u/ahuertas)\
**Post date:** [April 21, 2021, 8:16am UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/19 "2021-04-21T08:16:45Z")

</div>

Hello @laser,

That system datastore is completely normal. Could you please share the VM log with the error you are getting when deploying a VM? It is located in `/var/log/one/<VM_ID>.log`.

Best,  
Álex.

---

<div class="post-metadata">

**Author:** ![laser](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@laser](https://forum.opennebula.io/u/laser)\
**Post date:** [April 21, 2021, 9:42am UTC](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305/20 "2021-04-21T09:42:21Z")

</div>

Hi Alex, here is the log :  
cat /var/log/one/0.log  
Tue Apr 20 11:24:13 2021 [Z0][VM][I]: New state is CLONING  
Tue Apr 20 11:24:31 2021 [Z0][VM][I]: New state is CLONING

And this is from my other setup, which there all the VMs I’m trying to create, are in PENDING state forever, and the VM log, just shows nothing.

After I’m deleting the VM I can see this :  
cat /var/log/one/2.log  
Tue Mar 9 04:12:31 2021 [Z0][VM][I]: New state is DONE  
Tue Mar 9 04:12:31 2021 [Z0][VM][I]: New LCM state is LCM\_INIT

* * *

And I want to thank you for your time & attention.  
Hope we’ll be able to solve it

Thanks

[Next page](https://forum.opennebula.io/t/system-datastore-showing-0-0-gb/9305.md?page=2)
