Created
November 22, 2024 15:03
-
-
Save goors/409612ac78333697bebccca05a15115e 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
sudo mkdir -p /mnt/data | |
sudo mount /dev/disk/azure/scsi1/lun$1 /mnt/data | |
echo "/dev/disk/azure/scsi1/lun$1 /mnt/data ext4 defaults 0 0" | sudo tee -a /etc/fstab | |
sudo sed -i 's|path.data: /var/lib/elasticsearch|path.data: /mnt/data|g' /etc/elasticsearch/elasticsearch.yml | |
sudo systemctl restart elasticsearch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment