I’m looking for a procedure to Extend disk space on Graylog 3.0 OVA installation, it’s he same procedure of the old version ? there is a new procedure ?
I don’t know what the old procedure was, but basically it’s a Linux system. So, basic Linux-within-VMWare procedures would apply.
This is the old procedure
•Stop all services to prevent disk access:
$ sudo graylog-ctl stop
•Check for the logical name of the new hard drive. Usually this is /dev/sdb:
$ sudo lshw -class disk
•Partition and format new disk:
$ sudo parted -a optimal /dev/sdb mklabel gpt
A reboot may be necessary at this point so that the updated GPT is being recognized by the operating system
sudo parted -a optimal -- /dev/sdb unit compact mkpart primary ext3 "1" "-1" sudo mkfs.ext4 /dev/sdb1
•Mount disk into temporary directory /mnt/tmp:
sudo mkdir /mnt/tmp sudo mount /dev/sdb1 /mnt/tmp
•Copy current data to new disk:
$ sudo cp -ax /var/opt/graylog/data/* /mnt/tmp/
•Compare both folders:
Output should be: Only in /mnt/tmp: lost+found
$ sudo diff -qr --suppress-common-lines /var/opt/graylog/data /mnt/tmp
•Delete old data:
$ sudo rm -rf /var/opt/graylog/data/*
•Mount new disk into /var/opt/graylog/data directory:
sudo umount /mnt/tmp sudo mount /dev/sdb1 /var/opt/graylog/data
•Make change permanent by adding an entry to /etc/fstab:
$ echo ‘/dev/sdb1 /var/opt/graylog/data ext4 defaults 0 0’ | sudo tee -a /etc/fstab
•Reboot virtual machine:
$ sudo shutdown -r now
I think that i need to change from /var/opt/graylog/data to /var/lib/graylog-server
This is true ?
Yeah, all of that is bog-standard Linux. That’ll work just fine, as long as you know what you’re doing.
I’m using this procedure successfully with version 2.4.6, the difference with version 3.0.0-12 results in configuration files that have different names and are in different folders
This is how I did it with the 3.0 OVA:
Stop the VM.
Extend the current disk in VMWare
Boot Gparted iso and extend the disk
Start VM @console:
sudo lvextend –l +100%FREE /dev/graylog-vg/root
expand filesystem:
sudo resize2fs /dev/graylog-vg/root
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.