- partition recreated :
# sfdisk -d /dev/sda | sfdisk -f /dev/sdb
- zfs pool recreated with the wwn ids :
root@esnode1:/etc/zfs# zpool create -f elasticsearch-data -m /srv/elasticsearch/nodes -O atime=off -O relatime=on $(ls /dev/disk/by-id/wwn-*part4) root@esnode1:/etc/zfs# zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT elasticsearch-data 7T 152K 7.00T - - 0% 0% 1.00x ONLINE -
- server restarted to check everything is ok
- allocation reactivated :
❯ export ES_NODE=192.168.100.61:9200 ❯ curl -H "Content-Type: application/json" -XPUT http://${ES_NODE}/_cluster/settings\?pretty -d '{ 18:11:28 "transient" : { "cluster.routing.allocation.exclude._ip" : null } }' { "acknowledged" : true, "persistent" : { }, "transient" : { } }
- and in progress :
❯ curl -s http://$ES_NODE/_cat/health\?v; echo; curl -s http://$ES_NODE/_cat/allocation\?v\&s=node 18:12:47 epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent 1612285969 17:12:49 swh-logging-prod green 3 3 8974 4487 2 0 0 0 - 100.0%