# How to add local disk in opennebula host to extend VM storage?

**URL:** <https://forum.opennebula.io/t/how-to-add-local-disk-in-opennebula-host-to-extend-vm-storage/10522>\
**Category:** Operations\
**Created:** [May 3, 2022, 6:31am UTC](https://forum.opennebula.io/t/how-to-add-local-disk-in-opennebula-host-to-extend-vm-storage/10522 "2022-05-03T06:31:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SAMARJAYEE](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/samarjayee/32/5165_2.png) [@SAMARJAYEE](https://forum.opennebula.io/u/SAMARJAYEE)\
**Post date:** [May 3, 2022, 6:31am UTC](https://forum.opennebula.io/t/how-to-add-local-disk-in-opennebula-host-to-extend-vm-storage/10522/1 "2022-05-03T06:31:37Z")

</div>

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

We have this Openebula host with 8 running VMS.  
At the time of setting up the host, we added only one 480GB SSD disk. All the VMs are using that local storage only.

Now as you can see, the diskspace/datastore is getting full, is there any way to add an additional SSD storage drive to expand the Host datastore?

---

<div class="post-metadata">

**Author:** ![Githopp192](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/githopp192/32/7488_2.png) [@Githopp192](https://forum.opennebula.io/u/Githopp192)\
**Post date:** [May 4, 2022, 7:27am UTC](https://forum.opennebula.io/t/how-to-add-local-disk-in-opennebula-host-to-extend-vm-storage/10522/2 "2022-05-04T07:27:40Z")

</div>

of course … based on your file system, you can increase you filesystem.

i.e. when you’re using a FS together with LVM you can increase your volume adding additional disks … same with ZFS … and same with any other FileSystem, where you use some kind of volume mgnt within

---

<div class="post-metadata">

**Author:** ![dclavijo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dclavijo/32/5265_2.png) [@dclavijo](https://forum.opennebula.io/u/dclavijo)\
**Post date:** [May 4, 2022, 1:26pm UTC](https://forum.opennebula.io/t/how-to-add-local-disk-in-opennebula-host-to-extend-vm-storage/10522/3 "2022-05-04T13:26:21Z")

</div>

You can add the next SSD as an extra system datastore by mounting it on the proper path in the host. By default it is `/var/lib/one/datastores/<ds_id>`. Then you select that system datastore for that host.

---

<div class="post-metadata">

**Author:** ![SAMARJAYEE](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/samarjayee/32/5165_2.png) [@SAMARJAYEE](https://forum.opennebula.io/u/SAMARJAYEE)\
**Post date:** [May 23, 2022, 4:01pm UTC](https://forum.opennebula.io/t/how-to-add-local-disk-in-opennebula-host-to-extend-vm-storage/10522/4 "2022-05-23T16:01:50Z")

</div>

Thanks for your response.

Are you suggesting creating another system datastore?  
Or expanding the same existing system datastore with additional SSDs mounting in the existing datastore path like /var/lib/one/datastores/\<ds\_id\> ?

---

<div class="post-metadata">

**Author:** ![dclavijo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dclavijo/32/5265_2.png) [@dclavijo](https://forum.opennebula.io/u/dclavijo)\
**Post date:** [May 24, 2022, 1:13pm UTC](https://forum.opennebula.io/t/how-to-add-local-disk-in-opennebula-host-to-extend-vm-storage/10522/5 "2022-05-24T13:13:15Z")

</div>

> Are you suggesting creating another system datastore?

This.

> Or expanding the same existing system datastore with additional SSDs mounting in the existing datastore path like /var/lib/one/datastores/\<ds\_id\> ?

For this you need a software defined storage solution like Ceph or LVM to group the physical disk devices into a logical one.

---

<div class="post-metadata">

**Author:** ![SAMARJAYEE](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/samarjayee/32/5165_2.png) [@SAMARJAYEE](https://forum.opennebula.io/u/SAMARJAYEE)\
**Post date:** [May 25, 2022, 4:44am UTC](https://forum.opennebula.io/t/how-to-add-local-disk-in-opennebula-host-to-extend-vm-storage/10522/6 "2022-05-25T04:44:21Z")

</div>

Can Opennebula host run with two systems Datastore?

Then at the time of deploying how opennebula decides which Datastore to use?

---

<div class="post-metadata">

**Author:** ![dclavijo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dclavijo/32/5265_2.png) [@dclavijo](https://forum.opennebula.io/u/dclavijo)\
**Post date:** [May 25, 2022, 2:37pm UTC](https://forum.opennebula.io/t/how-to-add-local-disk-in-opennebula-host-to-extend-vm-storage/10522/7 "2022-05-25T14:37:38Z")

</div>

> Can Opennebula host run with two systems Datastore?

Yes

> Then at the time of deploying how opennebula decides which Datastore to use?

The placement logic is decided by the Scheduler. You can also manually place VMs at the time of the instantiation or set a placement logic in the VM Template.
