Re: How to stop a currently running snapshot?
Posted: Tue Oct 29, 2019 3:42 pm
Should I run each command you listed individually or can I run them as a block all together?
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
root@nagioslscc2:/root> curl -XDELETE 'http://localhost:9200/_snapshot/NLSREPCC/curator-curator-20191029053112'
{"error":"RemoteTransportException[[fc00210a-5231-46f3-84f2-6e3c61c7ac0e][inet[/10.128.207.112:9300]][cluster:admin/snapshot/delete]]; nested: SnapshotMissingException[[NLSREPCC:curator-curator-20191029053112] is missing]; nested: FileNotFoundException[/nlsrepcc/snapshot-curator-curator-20191029053112 (No such file or directory)]; ","status":404}Code: Select all
{
"snapshot" : "curator-20191029053112",
"version_id" : 1070699,
"version" : "1.7.6",
"indices" : [ "logstash-2019.10.08", "logstash-2019.10.09", "logstash-2019.10.10", "logstash-2019.10.11", "logstash-2019.10.12", "logstash-2019.10.13", "logstash-2019.10.14", "logstash-2019.10.15", "logstash-2019.10.16", "logstash-2019.10.17", "logstash-2019.10.18", "logstash-2019.10.19", "logstash-2019.10.20", "logstash-2019.10.21", "logstash-2019.10.22", "logstash-2019.10.23", "logstash-2019.10.24", "logstash-2019.10.25", "logstash-2019.10.26", "logstash-2019.10.27", "logstash-2019.10.28" ],
"state" : "PARTIAL",
"start_time" : "2019-10-29T05:31:12.493Z",
"start_time_in_millis" : 1572327072493,
"end_time" : "2019-10-29T21:14:22.438Z",
"end_time_in_millis" : 1572383662438,
"duration_in_millis" : 56589945,
"failures" : [ {
"node_id" : "pcqYieAcSAK7http3p3yzQ",
"index" : "logstash-2019.10.11",
"reason" : "IndexShardSnapshotFailedException[[logstash-2019.10.11][3] Failed to perform snapshot (index files)]; nested: FileSystemException[/nlsrepcc/indices/logstash-2019.10.11/3/__4c: Resource temporarily unavailable]; ",
"shard_id" : 3,
"status" : "INTERNAL_SERVER_ERROR"
}, {
"node_id" : "pcqYieAcSAK7http3p3yzQ",
"index" : "logstash-2019.10.11",
"reason" : "IndexShardSnapshotFailedException[[logstash-2019.10.11][4] Failed to perform snapshot (index files)]; nested: IOException[Input/output error]; ",
"shard_id" : 4,
"status" : "INTERNAL_SERVER_ERROR"
}, {
"node_id" : "pcqYieAcSAK7http3p3yzQ",
"index" : "logstash-2019.10.13",
"reason" : "IndexShardSnapshotFailedException[[logstash-2019.10.13][3] Failed to perform snapshot (index files)]; nested: IOException[Input/output error]; ",
"shard_id" : 3,
"status" : "INTERNAL_SERVER_ERROR"
}, {
"node_id" : "pcqYieAcSAK7http3p3yzQ",
"index" : "logstash-2019.10.10",
"reason" : "IndexShardSnapshotFailedException[[logstash-2019.10.10][3] Failed to perform snapshot (index files)]; nested: IOException[Input/output error]; ",
"shard_id" : 3,
"status" : "INTERNAL_SERVER_ERROR"
}, {
"node_id" : "pcqYieAcSAK7http3p3yzQ",
"index" : "logstash-2019.10.22",
"reason" : "IndexShardSnapshotFailedException[[logstash-2019.10.22][4] Failed to perform snapshot (index files)]; nested: IOException[Input/output error]; ",
"shard_id" : 4,
"status" : "INTERNAL_SERVER_ERROR"
} ],
"shards" : {
"total" : 105,
"failed" : 5,
"successful" : 100
}
} ]
}
Code: Select all
/usr/local/nagioslogserver/scripts/curator.sh snapshot --repository "NLSREPCC" --ignore_unavailable indices --older-than 15 --time-unit days --timestring %Y.%m.%d;/usr/local/nagioslogserver/scripts/curator.sh snapshot --repository "NLSREPCC" --ignore_unavailable indices --older-than 10 --time-unit days --timestring %Y.%m.%d;/usr/local/nagioslogserver/scripts/curator.sh snapshot --repository "NLSREPCC" --ignore_unavailable indices --older-than 5 --time-unit days --timestring %Y.%m.%d;/usr/local/nagioslogserver/scripts/curator.sh snapshot --repository "NLSREPCC" --ignore_unavailable indices --older-than 1 --time-unit days --timestring %Y.%m.%dCode: Select all
curl -XDELETE 'http://localhost:9200/_snapshot/NLSREPCC/curator-20191029053112'Code: Select all
ps aux | grep curatorCode: Select all
{
"snapshot" : "curator-20191031053043",
"version_id" : 1070699,
"version" : "1.7.6",
"indices" : [ "logstash-2019.10.10", "logstash-2019.10.11", "logstash-2019.10.12", "logstash-2019.10.13", "logstash-2019.10.14", "logstash-2019.10.15", "logstash-2019.10.16", "logstash-2019.10.17", "logstash-2019.10.18", "logstash-2019.10.19", "logstash-2019.10.20", "logstash-2019.10.21", "logstash-2019.10.22", "logstash-2019.10.23", "logstash-2019.10.24", "logstash-2019.10.25", "logstash-2019.10.26", "logstash-2019.10.27", "logstash-2019.10.28", "logstash-2019.10.29", "logstash-2019.10.30" ],
"state" : "PARTIAL",
"start_time" : "2019-10-31T05:30:44.111Z",
"start_time_in_millis" : 1572499844111,
"end_time" : "2019-10-31T15:36:03.246Z",
"end_time_in_millis" : 1572536163246,
"duration_in_millis" : 36319135,
"failures" : [ {
"node_id" : "D_ao-uEBSi62BE2caGHsHw",
"index" : "logstash-2019.10.24",
"reason" : "IndexShardSnapshotFailedException[[logstash-2019.10.24][4] Failed to perform snapshot (index files)]; nested: IOException[Input/output error]; ",
"shard_id" : 4,
"status" : "INTERNAL_SERVER_ERROR"
}, {
"node_id" : "pcqYieAcSAK7http3p3yzQ",
"index" : "logstash-2019.10.25",
"reason" : "IndexShardSnapshotFailedException[[logstash-2019.10.25][2] Failed to perform snapshot (index files)]; nested: FileNotFoundException[/nlsrepcc/indices/logstash-2019.10.25/2/__5 (Stale file handle)]; ",
"shard_id" : 2,
"status" : "INTERNAL_SERVER_ERROR"
}, {
"node_id" : "D_ao-uEBSi62BE2caGHsHw",
"index" : "logstash-2019.10.25",
"reason" : "IndexShardSnapshotFailedException[[logstash-2019.10.25][3] Failed to perform snapshot (index files)]; nested: IOException[Input/output error]; ",
"shard_id" : 3,
"status" : "INTERNAL_SERVER_ERROR"
}, {
"node_id" : "olHQlucoSmO-CIohLIKLhQ",
"index" : "logstash-2019.10.18",
"reason" : "IndexShardSnapshotFailedException[[logstash-2019.10.18][2] Failed to perform snapshot (index files)]; nested: IOException[Input/output error]; ",
"shard_id" : 2,
"status" : "INTERNAL_SERVER_ERROR"
}, {
"node_id" : "pcqYieAcSAK7http3p3yzQ",
"index" : "logstash-2019.10.21",
"reason" : "IndexShardSnapshotFailedException[[logstash-2019.10.21][0] Failed to perform snapshot (index files)]; nested: FileNotFoundException[/nlsrepcc/indices/logstash-2019.10.21/0/__1 (Stale file handle)]; ",
"shard_id" : 0,
"status" : "INTERNAL_SERVER_ERROR"
} ],
"shards" : {
"total" : 105,
"failed" : 5,
"successful" : 100
}
} ]
}