# System datastore ID not created for new datastore at /var/lib/one/datastore

**URL:** <https://forum.opennebula.io/t/system-datastore-id-not-created-for-new-datastore-at-var-lib-one-datastore/13839>\
**Category:** Operations\
**Created:** [May 16, 2025, 4:55pm UTC](https://forum.opennebula.io/t/system-datastore-id-not-created-for-new-datastore-at-var-lib-one-datastore/13839 "2025-05-16T16:55:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kemcfarl](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@kemcfarl](https://forum.opennebula.io/u/kemcfarl)\
**Post date:** [May 16, 2025, 4:55pm UTC](https://forum.opennebula.io/t/system-datastore-id-not-created-for-new-datastore-at-var-lib-one-datastore/13839/1 "2025-05-16T16:55:57Z")

</div>

HI I’m using version 6.10.1 for a few months now. (Its a great product).

We are starting to see a datastore creation issue as we’ve scaled up in hosts/datastores.  
Typically when we add a new datastore within a few seconds the new ID is at /var/lib/one/datastore.

We have NFS mounted “shared” datastores. Once the IDs is created, then I create NFS mount symbolic link to the datastore directory.

Recently we’ve started seeing a huge delay in the ID directory being created on the filesystem at “/var/lib/one/datatore”.

Some times it takes an hour and as long as 24hours+. I’ve tried restarting ‘oned’ process to kick it, but that doesn’t trigger it. I can’t find any error related logs in oned or monitor.

Any suggestion as to where to find the error or what set to trigger it to complete ID setup and monitoring?

Thanks for your time and help,

-\_Ken

Here is a one from today:

created via cli as:

```auto
oneadmin@s002-openneb:~/ken$ cat system_datastore.txt 
NAME = laas-m7-ssd-ds1-s002-nfs15
DISK_TYPE = "FILE"
SHARED = "YES"
TM_MAD = "shared"
TYPE = "SYSTEM_DS"
DATASTORE_CAPACITY_CHECK = "YES"
LIMIT_MB = 1500000
DS_TYPE="ZFS"
oneadmin@s002-openneb:~/ken$ onedatastore create ./system_datastore.txt 

```

I see it quickly, but with values of zero size

```auto
 ID NAME SIZE AVA CLUSTERS IMAGES TYPE DS TM STAT
 179 laas-m7-ssd-ds1-s002-nfs15 0M - 0 0 sys - shared on

oneadmin@s002-openneb:~/ken$ onedatastore show 179
DATASTORE 179 INFORMATION                                                       
ID : 179                 
NAME : laas-m7-ssd-ds1-s002-nfs15
USER : oneadmin            
GROUP : oneadmin            
CLUSTERS : 0                   
TYPE : SYSTEM              
DS_MAD : -                   
TM_MAD : shared              
BASE PATH : /var/lib/one//datastores/179
DISK_TYPE : FILE                
STATE : READY               

DATASTORE CAPACITY                                                              
TOTAL: : 0M                  
FREE: : 0M                  
USED: : 0M                  
LIMIT: : 1.4T                

PERMISSIONS                                                                     
OWNER : um-                 
GROUP : u--                 
OTHER : ---                 

DATASTORE TEMPLATE                                                              
ALLOW_ORPHANS="FORMAT"
DATASTORE_CAPACITY_CHECK="YES"
DISK_TYPE="FILE"
DS_MIGRATE="YES"
DS_TYPE="ZFS"
LIMIT_MB="1500000"
RESTRICTED_DIRS="/"
SAFE_DIRS="/var/tmp"
SHARED="YES"
TM_MAD="shared"
TYPE="SYSTEM_DS"

IMAGES         
oneadmin@s002-openneb:~/ken$ 

```

checking here the ID is not created on the filesystem.

```auto
oneadmin@s002-openneb:~/datastores$ 
oneadmin@s002-openneb:~/datastores$ ls
0 100 109 111 113 115 117 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 2
1 101 110 112 114 116 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 ISO
oneadmin@s002-openneb:~/datastores$ ls *179*
ls: cannot access '*179*': No such file or directory
oneadmin@s002-openneb:~/datastores$ 

```

This log is in oned.log

```auto
Fri May 16 16:46:13 2025 [Z0][ImM][D]: Monitoring datastore laas-m7-ssd-ds1-s002-nfs15 (179)

```

a normal datastore have a 2nd log like this

```auto
Fri May 16 16:45:43 2025 [Z0][ImM][D]: Monitoring datastore laas-m7-ssd-ds1-s002-nfs9 (117)

Fri May 16 16:45:54 2025 [Z0][ImM][D]: Datastore laas-m7-ssd-ds1-s002-nfs9 (117) successfully monitored.

```

---

<div class="post-metadata">

**Author:** ![kemcfarl](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@kemcfarl](https://forum.opennebula.io/u/kemcfarl)\
**Post date:** [May 17, 2025, 3:46pm UTC](https://forum.opennebula.io/t/system-datastore-id-not-created-for-new-datastore-at-var-lib-one-datastore/13839/2 "2025-05-17T15:46:46Z")

</div>

Also - once the ID appears everything works fine. Usage of datastore and monitoring. Its just stuck starting/creating the ID for some reason.

Waiting a day to use the datastore is becoming a blocking issue.  
Any hints on debugging this and how to kick it to get unstuck?

I did try a hack on a different datastore than the logs below after creating new a DS… I tried manually creating the directory on filesystem with proper ID/oneadmin permission. It didn’t help, still not monitored.

Here is some more logs Once it finally created the ID many hours later.  
Note this \_monitor log with some ID appears before the successful log.

```auto
drwxr-xr-x 2 oneadmin oneadmin 4.0K May 17 01:48 179
oneadmin@s002-openneb:~/datastores$ date
Sat May 17 03:36:26 PM UTC 2025
oneadmin@s002-openneb:~/datastores$

oneadmin@s002-openneb:~/datastores$ grep -B 1 laas-m7-ssd-ds1-s002-nfs15 /var/log/one/oned.log | less

Sat May 17 02:01:28 2025 [Z0][ImM][D]: Monitoring datastore laas-m7-ssd-ds1-s002-nfs14 (178)
Sat May 17 02:01:28 2025 [Z0][ImM][D]: Monitoring datastore laas-m7-ssd-ds1-s002-nfs15 (179)
--
Sat May 17 02:01:44 2025 [Z0][ImM][D]: Monitoring datastore laas-m7-ssd-ds1-s002-nfs14 (178)
Sat May 17 02:01:44 2025 [Z0][ImM][D]: Monitoring datastore laas-m7-ssd-ds1-s002-nfs15 (179)
--
Sat May 17 02:01:59 2025 [Z0][ImM][D]: Monitoring datastore laas-m7-ssd-ds1-s002-nfs14 (178)
Sat May 17 02:01:59 2025 [Z0][ImM][D]: Monitoring datastore laas-m7-ssd-ds1-s002-nfs15 (179)
--
Sat May 17 02:02:09 2025 [Z0][ImM][DDD]: _monitor: VVNFRF9NQj05MDQ3OTEgRlJFRV9NQj0xMTkyMzYyIFRPVEFMX01CPTIwOTcxNTIK
Sat May 17 02:02:09 2025 [Z0][ImM][D]: Datastore laas-m7-ssd-ds1-s002-nfs15 (179) successfully monitored.
--
Sat May 17 02:02:14 2025 [Z0][ImM][D]: Monitoring datastore laas-m7-ssd-ds1-s002-nfs14 (178)
Sat May 17 02:02:14 2025 [Z0][ImM][D]: Monitoring datastore laas-m7-ssd-ds1-s002-nfs15 (179)
--
Sat May 17 02:02:29 2025 [Z0][ImM][D]: Monitoring datastore laas-m7-ssd-ds1-s002-nfs14 (178)
Sat May 17 02:02:29 2025 [Z0][ImM][D]: Monitoring datastore laas-m7-ssd-ds1-s002-nfs15 (179)
--
Sat May 17 02:02:34 2025 [Z0][ImM][DDD]: _monitor: VVNFRF9NQj05MDQ5MjAgRlJFRV9NQj0xMTkyMjMzIFRPVEFMX01CPTIwOTcxNTIK
Sat May 17 02:02:34 2025 [Z0][ImM][D]: Datastore laas-m7-ssd-ds1-s002-nfs15 (179) successfully monitored.

```

---

<div class="post-metadata">

**Author:** ![FrancJP](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/francjp/32/7690_2.png) [@FrancJP](https://forum.opennebula.io/u/FrancJP)\
**Post date:** [May 20, 2025, 3:01pm UTC](https://forum.opennebula.io/t/system-datastore-id-not-created-for-new-datastore-at-var-lib-one-datastore/13839/3 "2025-05-20T15:01:50Z")

</div>

Hello @kemcfarl,

When you create a new system datastore in OpenNebula, the directory under `/var/lib/one/datastores/` (e.g., `/var/lib/one/datastores/<ID>`) is usually created automatically only after a VM is deployed that uses that datastore.

So if you’re not seeing the directory yet, it’s likely because no VMs have been scheduled to use it. Once a VM is launched and the system datastore is used during deployment, OpenNebula should automatically create that path.

My suggestion is to check the [documentation about Datastores](https://docs.opennebula.io/6.10/management_and_operations/storage_management/datastores.html), to confirm the expected behavior, and if you still thinks it should be different (or if it doesn’t behave as expected), feel free to file an issue: [GitHub · Where software is built](https://github.com/OpenNebula/one/issues)

Cheers,
