This repository was archived by the owner on Nov 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Elasticsearch disk space management and migration
Dimitar Tasev edited this page Jun 22, 2021
·
6 revisions
-
Create new volume on https://openstack.stfc.ac.uk/project/instances/
-
Mount it to
elasticsearchinstance- At this point, this is just an empty unformatted data blob
- Note the location, shown in the volume details, at which it is mounted - the steps below assume it was mounted at /dev/vdb, which should be the default for first additional volume
-
mkfs /dev/vdb- Make it into a filesystem- This will just use all defaults, which means ext2 filesystem on CentOS7
-
mkdir /mnt/external- Create the mounting point, in this case/mnt/externalis used, but any folder works -
Add entry into
/etc/fstabto mount it-
/dev/vdb /mnt/external ext2 defaults 0 0- simple mount
-
-
Refresh the mounts with
sudo mount -a
-
service elasticsearch stop- to stop the service.
If starting clean just go to N, else do the following to copy the data first:
-
mkdir /mnt/external/elasticsearch && rsync --info=progress2 -ah /var/lib/elasticsearch/ /mnt/external/elasticsearch- This will take