Created
June 20, 2017 12:53
-
-
Save joshuaob/eb30b03aabd63681b564baf7c893c7fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # format and mount volume according to Digital Ocean instructions | |
| # I followed the instructions found by clicking the "config instructions" link on the volume | |
| # | |
| $ sudo mkfs.ext4 -F /dev/disk/by-id/scsi-0DO_Volume_volume-fra1-01 | |
| $ sudo mkdir -p /mnt/volume-fra1-01; | |
| $ sudo mount -o discard,defaults /dev/disk/by-id/scsi-0DO_Volume_volume-fra1-01 /mnt/volume-fra1-01; | |
| $ echo /dev/disk/by-id/scsi-0DO_Volume_volume-fra1-01 /mnt/volume-fra1-01 ext4 defaults,nofail,discard 0 0 | sudo tee -a /etc/fstab | |
| $ sudo reboot | |
| $ ls /mnt/ | |
| # | |
| # the volume existed at this point | |
| # | |
| $ ls /mnt/volume-fra1-01/ | |
| $ cd /mnt | |
| $ cd volume-fra1-01/ | |
| $ sudo mkdir var | |
| $ cd var/ | |
| $ sudo mkdir lib | |
| $ cd lib/ | |
| $ sudo mkdir elasticsearch | |
| $ cd elasticsearch/ | |
| $ cd | |
| $ sudo chown -R elasticsearch:elasticsearch /mnt/volume-fra1-01/var/lib/elasticsearch/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment