I have Elasticsearch 7.4 with 1 master and 5 data nodes (Amazon ec2 instances). I have cluster.routing.allocation.disk.threshold_enabled setting = false Now one of the disk in a node became full and elasticsearch stopped due to disk full error.
ElasticsearchException[failed to load metadata]; nested: IOException[No space left on device];
/dev/nvme1n1p1 493G 468G 0 100% /disk1
After this, cluster shows only 4 data nodes, 9 shards are still unallocated and search requests are being denied, while other nodes still have enough space left on their disks.
I want to make some space by deleting old data through POST API but that won't work in this case.
Now my question is, how can I cleanup the disk on this node while it only contains elasticsearch data and is not available in the cluster.
Thank you Mark, so that means we are left with only this option. There is no other option to move/remove data from an offline node, or an option to start elasticsearch on read-only / delete-only mode on a node with full disk?
I did another thing. Went to the directory of unassigned shard, moved some files to my home directory, elasticsearch was up again with red status (1 unassigned shard). After that, I moved another shard to another node, it created space on disk, then I moved the files back to shard from home, and ran API to reallocate unassigned shard. Worked for me
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.