# Adding Storage to Graylog Ubuntu VM

**URL:** <https://community.graylog.org/t/adding-storage-to-graylog-ubuntu-vm/18351>\
**Category:** Graylog Central (peer support)\
**Created:** [January 1, 2021, 7:44pm UTC](https://community.graylog.org/t/adding-storage-to-graylog-ubuntu-vm/18351 "2021-01-01T19:44:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteveFP](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@SteveFP](https://community.graylog.org/u/SteveFP)\
**Post date:** [January 1, 2021, 7:44pm UTC](https://community.graylog.org/t/adding-storage-to-graylog-ubuntu-vm/18351/1 "2021-01-01T19:44:40Z")

</div>

Hello all,

I am new here and looking forward to using Graylog for my logging needs. I have deployed the OVA with no issues but noticed only a 20 gig partition was allocated. I would like to implement a second partition of 100 gig and move the logs collected to this partition. Is there a document that decribes being able to do this?

Thanks,  
Steve

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [January 1, 2021, 11:16pm UTC](https://community.graylog.org/t/adding-storage-to-graylog-ubuntu-vm/18351/2 "2021-01-01T23:16:48Z")

</div>

@SteveFP  
Not sure if this still works, and it been a really long time since I used OVA. Have you tried this?

> [@Extend disk space on OVA 3.0](https://community.graylog.org/t/extend-disk-space-on-ova-3-0/9097/4):
>
> Yeah, all of that is bog-standard Linux. That’ll work just fine, as long as you know what you’re doing.

---

<div class="post-metadata">

**Author:** ![SteveFP](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@SteveFP](https://community.graylog.org/u/SteveFP)\
**Post date:** [January 2, 2021, 12:43am UTC](https://community.graylog.org/t/adding-storage-to-graylog-ubuntu-vm/18351/3 "2021-01-02T00:43:46Z")

</div>

Yes that document is old. The directories to copy is not correct.

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [January 2, 2021, 1:24am UTC](https://community.graylog.org/t/adding-storage-to-graylog-ubuntu-vm/18351/4 "2021-01-02T01:24:27Z")

</div>

@SteveFP  
I’m sure that you can expand the partion to your needs.

> **[How to Resize Your Ubuntu Partitions](https://www.howtogeek.com/114503/how-to-resize-your-ubuntu-partitions/)**
>
> Whether you want to shrink your Ubuntu partition, enlarge it, or split it up into several partitions, you can’t do this while it’s in use. You’ll need a Ubuntu live CD or USB drive to edit your partitions.

Other then that Im not to sure I’m sorry, maybe some one else here can help you.

---

<div class="post-metadata">

**Author:** ![aaronsachs](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/aaronsachs/32/7180_2.png) [@aaronsachs](https://community.graylog.org/u/aaronsachs)\
**Post date:** [January 4, 2021, 8:25pm UTC](https://community.graylog.org/t/adding-storage-to-graylog-ubuntu-vm/18351/5 "2021-01-04T20:25:25Z")

</div>

@SteveFP 👋 I’ll echo what @gsmith posted. Resizing the partition is going to be a standard linux operation, so that’s a bit outside of the scope of what we’d typically put in the docs. To keep things simple, I’d recommend just expanding the existing partition (it’s LVM, so expanding should be relatively straightforward), unless you’ve got a need to create a separate partition for Elasticsearch data.

---

<div class="post-metadata">

**Author:** ![SteveFP](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@SteveFP](https://community.graylog.org/u/SteveFP)\
**Post date:** [January 16, 2021, 5:07pm UTC](https://community.graylog.org/t/adding-storage-to-graylog-ubuntu-vm/18351/6 "2021-01-16T17:07:14Z")

</div>

Ok maybe I can be a little more specific. I now how to partition and add a new drive, but I would like to just set the new partition up so that message ingestion goes to this new drive. Are there instructions for moving the data directories to the new drive and then configure Graylog to use this new drive?

---

<div class="post-metadata">

**Author:** ![dickinsonzach](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@dickinsonzach](https://community.graylog.org/u/dickinsonzach)\
**Post date:** [January 16, 2021, 5:22pm UTC](https://community.graylog.org/t/adding-storage-to-graylog-ubuntu-vm/18351/7 "2021-01-16T17:22:24Z")

</div>

Good afternoon, with Graylog using Elastic Search and MongoDB I would think you would need to move where those are. Maybe? Thank you, Zach.

---

<div class="post-metadata">

**Author:** ![parag](https://avatars.discourse-cdn.com/v4/letter/p/a5b964/32.png) [@parag](https://community.graylog.org/u/parag)\
**Post date:** [January 16, 2021, 5:22pm UTC](https://community.graylog.org/t/adding-storage-to-graylog-ubuntu-vm/18351/8 "2021-01-16T17:22:57Z")

</div>

Elastic Search stores data in /var/lib/elasticsearch.

If you want to use new volume to store data . e.g /data

- stop es and graylog services. ( e.g systemctl stop elasticsearch.service, systemctl stop graylog-server.service)
- mv -rf /var/lib/elasticsearch /data
- rmdir /var/lib/elasticsearch
- ln -s /data /var/lib/elasticsearch
- chown elasticsearch:elasticsearch /var/lib/elasticsearch
- systemctl stop elasticsearch.service  
systemctl stop graylog.service

---

<div class="post-metadata">

**Author:** ![dickinsonzach](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@dickinsonzach](https://community.graylog.org/u/dickinsonzach)\
**Post date:** [January 16, 2021, 5:24pm UTC](https://community.graylog.org/t/adding-storage-to-graylog-ubuntu-vm/18351/9 "2021-01-16T17:24:20Z")

</div>

Here are a couple of links I found:

> [@Change data path](https://community.graylog.org/t/change-data-path/4045/5):
>
> Service status - elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sat 2018-02-03 21:40:11 +06; 1h 6min ago Docs: http://www.elastic.co Process: 15083 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID\_DIR}/elasticsearch.pid --quiet -Edefault.path.logs=${LOG\_DIR} -Edefault.path.data=${DATA\_DIR} -Edefault.path.conf=${CONF\_DIR} (code=exited, status…

> [@How to store the input logs in another path](https://community.graylog.org/t/how-to-store-the-input-logs-in-another-path/5458):
>
> Hello, I don’t know how to store the input logs in another directory. Is it possible to do this ? May i miss it in the documentation ? PS : I installed graylog manually In any case thanks you by advance for your answer and time.

[https://docs.graylog.org/en/4.0/pages/configuration/file\_location.html](https://docs.graylog.org/en/4.0/pages/configuration/file_location.html)

Thank you, Zach.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [January 30, 2021, 5:24pm UTC](https://community.graylog.org/t/adding-storage-to-graylog-ubuntu-vm/18351/10 "2021-01-30T17:24:22Z")

</div>

Closed on January 30, 2021, 5:24pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
