# Extend disk size

**URL:** <https://community.graylog.org/t/extend-disk-size/367>\
**Category:** Graylog Central (peer support)\
**Created:** [March 7, 2017, 12:20pm UTC](https://community.graylog.org/t/extend-disk-size/367 "2017-03-07T12:20:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kbakenov](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kbakenov](https://community.graylog.org/u/kbakenov)\
**Post date:** [March 7, 2017, 12:20pm UTC](https://community.graylog.org/t/extend-disk-size/367/1 "2017-03-07T12:20:09Z")

</div>

hi! all  
please see extend disk size,

step by step  
[https://github.com/Graylog2/documentation/issues/287](https://github.com/Graylog2/documentation/issues/287)

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [March 7, 2017, 12:53pm UTC](https://community.graylog.org/t/extend-disk-size/367/2 "2017-03-07T12:53:31Z")

</div>

Hi @kbakenov,

it would help if you paid attention to the commands you’re executing and their output.

For example this is pretty obviously a copy & paste error:

```
ubuntu@graylog:~$ sudo parted -a optimal -- /dev/sdb unit \\
parted: invalid token: \

```

In this case, the double backslash (`\\`) is simply a hint that the command continues on the next line.

---

<div class="post-metadata">

**Author:** ![kbakenov](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kbakenov](https://community.graylog.org/u/kbakenov)\
**Post date:** [March 8, 2017, 10:09am UTC](https://community.graylog.org/t/extend-disk-size/367/3 "2017-03-08T10:09:26Z")

</div>

Hi, ok,  
insert 2 line command - in one line without “\”?  
Or  
2line command insert. ??  
How correct?  
If not need “\” delete this in manual. And add remark insert this 1 or 2 lines…  
I’m not user ubuntu cli…i understand operand(symbol)\.  
This normaly, i use copy/paste command

I use ctl script for setting ntp, admin pass…

Can creat this operational with graylog ctl ?! In auto mode. Steps. After shutdown. Then add disk. Then use ctl(use all avilable space, ). Rebot. Extend disk overall - one command.

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [March 8, 2017, 1:09pm UTC](https://community.graylog.org/t/extend-disk-size/367/4 "2017-03-08T13:09:40Z")

</div>

We’ve reworked the section about extending disk space in the virtual machine appliance: [http://docs.graylog.org/en/2.2/pages/configuration/graylog\_ctl.html#extend-disk-space](http://docs.graylog.org/en/2.2/pages/configuration/graylog_ctl.html#extend-disk-space)

Give it a try.

---

<div class="post-metadata">

**Author:** ![kbakenov](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kbakenov](https://community.graylog.org/u/kbakenov)\
**Post date:** [March 9, 2017, 3:41am UTC](https://community.graylog.org/t/extend-disk-size/367/5 "2017-03-09T03:41:02Z")

</div>

HI Jochen, i try! thank!

can add in Manual  
in section Add static ip/DNS settings  
paste in format

dns-namesrvers 8.8.8.8

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [March 9, 2017, 10:00am UTC](https://community.graylog.org/t/extend-disk-size/367/6 "2017-03-09T10:00:04Z")

</div>

I don’t know what you mean. Please elaborate.

---

<div class="post-metadata">

**Author:** ![kbakenov](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kbakenov](https://community.graylog.org/u/kbakenov)\
**Post date:** [March 9, 2017, 11:28am UTC](https://community.graylog.org/t/extend-disk-size/367/7 "2017-03-09T11:28:23Z")

</div>

Hi Jochen!  
1)DNS resolve settings in manual - i not find - in site graylog,  
i find from ubuntu site.  
problem with …“nameservers”…"dns-nameservers"  
change resolf.conf or change other file. after restart not save config…  
or insert after static ip address in etc/network/interfaces…

2)small error in step:

ubuntu@graylog:~ sudo diff -qr --suppress-common-lines var/opt/graylog/data /mnt/tmp diff: var/opt/graylog/data: No such file or directory ubuntu@graylog:~ sudo diff -qr --suppress-common-lines var/opt/graylog/data /mnt/tmp  
diff: var/opt/graylog/data: No such file or directory  
ubuntu@graylog:~$ sudo su  
root@graylog:/home/ubuntu# cd /var/opt/graylog/data  
root@graylog:/var/opt/graylog/data# ls  
elasticsearch etcd journal mongodb  
root@graylog:/var/opt/graylog/data# sudo diff -qr --suppress-common-lines /var/opt/graylog/data /mnt/tmp  
Only in /mnt/tmp: lost+found  
root@graylog:/var/opt/graylog/data#

var/log/… …begin from /var

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [March 9, 2017, 11:48am UTC](https://community.graylog.org/t/extend-disk-size/367/8 "2017-03-09T11:48:05Z")

</div>

> [@kbakenov](#):
>
> 1)DNS resolve settings

You’ll have to add the respective directive to the `/etc/network/interfaces` file.

> [@kbakenov](#):
>
> 2)small error in step:

Thanks, I’ve fixed that.
