Rolling upgrades are only supported from Elasticsearch version 7.17 to Elasticsearch version 8.x. To upgrade from earlier versions (7.1, 7.2, etc.) to version 8, you need a full cluster restart or you must upgrade first to version 7.17 before upgrading to version 8.
It is strongly recommended to take snapshots before upgrading to prevent potential data loss. This is essential for a production environment.
1. Add path.repo in elasticsearch.yml.
2. Create a repository and snapshots in Kibana using this repo path.
3. Click Here To Register Snapshots
1. Download the new RPM package:
curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.22-x86_64.rpm
2. Stop Elasticsearch services:
sudo systemctl stop elasticsearch
3. Install the new RPM package:
sudo rpm -Uvh elasticsearch-7.17.22-x86_64.rpm
(u = upgrade, v = verbose, h = hash (progress index))
4. Start the Elasticsearch service.
sudo systemctl start elasticsearch
5. If index or data is missing, restore the snapshot:
· Choose either all or particular index.
· Start the Elasticsearch service.
1. Download the new RPM package.
curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.12.2-x86_64.rpm
2. Stop Elasticsearch services.
sudo systemctl stop elasticsearch
3. Install the new RPM package:
sudo rpm -Uvh elasticsearch-8.12.2-x86_64.rpm
4. Disable xpack in elasticsearch.yml.
5. Start the Elasticsearch service.
sudo systemctl start elasticsearch
· Choose either all or a particular index for restoration.
· By default, all data is stored automatically. If any problem arises, restore data by snapshot.
· Click Here To Restore Snapshots