snapshots not deleted since the multiple snapshot bug

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
CBoekhuis
Posts: 234
Joined: Tue Aug 16, 2011 4:55 am

snapshots not deleted since the multiple snapshot bug

Post by CBoekhuis »

Hello,

Since we have had the multiple snapshot bug, the old snapshots aren't deleted. They should be deleted after 7 days. There's no error in the elastics search log file.

Using the delete button in de admin GUI, will take a very long time due to the large amount of snapshots. So I decided to run the curator command from the prompt

Code: Select all

> curator show snapshots --repository backup --older-than 16 --time-unit days                 
2018-07-03 11:10:41,166 INFO      Job starting: show snapshots
2018-07-03 11:10:41,413 INFO      Matching snapshots:
curator-20180617122557
curator-20180617122656
curator-20180617122722
curator-20180617122817
curator-20180617122840
curator-20180617122933
curator-20180617123049
curator-20180617123102
curator-20180617123145
curator-20180617123202
curator-20180617123246
curator-20180617123300
curator-20180617123337
curator-20180617123352
curator-20180617123423
curator-20180617123440
curator-20180617123509
curator-20180617123523
curator-20180617123552
curator-20180617123559
curator-20180617123620
curator-20180617123649
curator-20180617123715
curator-20180617123750
curator-20180617123803
curator-20180617123832
curator-20180617123854
curator-20180617123907
I decided to delete the snapshots in chuncks of 1 day until I'm back at 7 days, also using a long timeout value, because the default 30 seconds won't cut it. ;) . Maybe this is also the reason why the aren't deleted by the maintenance schedule

Code: Select all

> curator --timeout 1200 delete snapshots --repository backup --older-than 16 --time-unit days 
2018-07-03 11:14:21,655 INFO      Job starting: delete snapshots
2018-07-03 11:14:21,887 INFO      Deleting snapshot curator-20180617122557
2018-07-03 11:18:50,169 INFO      Deleting snapshot curator-20180617122656
2018-07-03 11:23:18,248 INFO      Deleting snapshot curator-20180617122722
2018-07-03 11:27:47,242 INFO      Deleting snapshot curator-20180617122817
2018-07-03 11:32:15,034 INFO      Deleting snapshot curator-20180617122840
2018-07-03 11:36:44,120 INFO      Deleting snapshot curator-20180617122933
2018-07-03 11:41:11,201 INFO      Deleting snapshot curator-20180617123049
..........
The reason I'm reporting this is because I noticed that some other people were affected by the multiple snapshot bug as well, so they might also run into this problem.

Greetings...Hans
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: snapshots not deleted since the multiple snapshot bug

Post by scottwilkerson »

Thanks for sharing!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
CBoekhuis
Posts: 234
Joined: Tue Aug 16, 2011 4:55 am

Re: snapshots not deleted since the multiple snapshot bug

Post by CBoekhuis »

No problem! :D
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: snapshots not deleted since the multiple snapshot bug

Post by scottwilkerson »

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked