-
- Enthusiast
- Posts: 39
- Liked: 8 times
- Joined: Jul 11, 2012 3:39 pm
- Full Name: James McGuinness
- Contact:
Deleting from a full Linux Immutable Repo
I have an immutable linux repo that's full. I'm going to tune retention etc to fix it up, however how do I clean up the now expired immutable backups and increments? The jobs are just failing rather than rotating, and attempt at manual deletion from the Veeam console is giving "Failed to delete backup Error: No space left on device POSIX: Failed to create or open file [/mnt/md0/backups/ Failed to invoke rpc command".
Naturally SSH is disabled on the repo, so I'd rather not travel 1hr into the office to the console just for a simple clean up.
Naturally SSH is disabled on the repo, so I'd rather not travel 1hr into the office to the console just for a simple clean up.
-
- Veeam Software
- Posts: 3626
- Liked: 608 times
- Joined: Aug 28, 2013 8:23 am
- Full Name: Petr Makarov
- Location: Prague, Czech Republic
- Contact:
Re: Deleting from a full Linux Immutable Repo
Hi James,
Unfortunately, we cannot effectively troubleshoot technical issues over the forum posts so please open a support case, upload debug logs as per this instruction to let our support engineers to investigate this issue. Also, please share a support case ID with us, posts about technical issues without case ID will be eventually deleted by forum moderator.
Thanks!
Unfortunately, we cannot effectively troubleshoot technical issues over the forum posts so please open a support case, upload debug logs as per this instruction to let our support engineers to investigate this issue. Also, please share a support case ID with us, posts about technical issues without case ID will be eventually deleted by forum moderator.
Thanks!
-
- Enthusiast
- Posts: 39
- Liked: 8 times
- Joined: Jul 11, 2012 3:39 pm
- Full Name: James McGuinness
- Contact:
Re: Deleting from a full Linux Immutable Repo
Ok thanks, was hoping maybe another user knew how to handle this. Case opened Support ID: #01953814
-
- Enthusiast
- Posts: 93
- Liked: 54 times
- Joined: Dec 28, 2017 3:22 pm
- Full Name: Michael Weissenbacher
- Contact:
Re: Deleting from a full Linux Immutable Repo
Isn't the whole point of an "Immutable Repository" that it's not possible to do this without local root access?
-
- Veeam Software
- Posts: 3626
- Liked: 608 times
- Joined: Aug 28, 2013 8:23 am
- Full Name: Petr Makarov
- Location: Prague, Czech Republic
- Contact:
Re: Deleting from a full Linux Immutable Repo
Hi Michael,
It's a very good observation! For sure, the main idea is to prevent deletion and modification of immutable backup files without having root access. However, it does not look like that the provided error message is related to Immutability itself but most probably appears due to the lack of space. Also, if I'm getting right James's message, the immutability period has already been expired for some backups. Let's wait for a workaround from the support team.
Thanks!
It's a very good observation! For sure, the main idea is to prevent deletion and modification of immutable backup files without having root access. However, it does not look like that the provided error message is related to Immutability itself but most probably appears due to the lack of space. Also, if I'm getting right James's message, the immutability period has already been expired for some backups. Let's wait for a workaround from the support team.
Thanks!
-
- Veeam Software
- Posts: 219
- Liked: 111 times
- Joined: Jun 29, 2015 9:21 am
- Full Name: Michael Paul
- Contact:
Re: Deleting from a full Linux Immutable Repo
I take it you don’t have any form of IPMI/out of band console access?
-------------
Michael Paul
Veeam Data Cloud: Microsoft 365 Solution Engineer
Michael Paul
Veeam Data Cloud: Microsoft 365 Solution Engineer
-
- Enthusiast
- Posts: 39
- Liked: 8 times
- Joined: Jul 11, 2012 3:39 pm
- Full Name: James McGuinness
- Contact:
Re: Deleting from a full Linux Immutable Repo
No, there's no out of band on this setup as that would just be another vector for attack. As for the point being not possible to delete, sure but these are 'expired' files.
-
- Veeam Software
- Posts: 219
- Liked: 111 times
- Joined: Jun 29, 2015 9:21 am
- Full Name: Michael Paul
- Contact:
Re: Deleting from a full Linux Immutable Repo
Thought that’d be your answer (and I’m glad it is from a security perspective) but was just a straw clutch to avoid the travel!
-------------
Michael Paul
Veeam Data Cloud: Microsoft 365 Solution Engineer
Michael Paul
Veeam Data Cloud: Microsoft 365 Solution Engineer
-
- Enthusiast
- Posts: 67
- Liked: 31 times
- Joined: Dec 23, 2019 7:26 pm
- Full Name: Lick A Brick
- Contact:
Re: Deleting from a full Linux Immutable Repo
Correct me if I'm wrong, but if the repo gets its time from a NTP server and DNS from a DNS server you control you can setup your own NTP server and temporarily change the DNS record for the NTP server configured on your repo.
Then on the NTP server change the current time to sometime in the future where the immutability has expired. I believe you would be able to delete the restore points.
But if this works you should also consider changing the DNS and NTP server on the repo
Then on the NTP server change the current time to sometime in the future where the immutability has expired. I believe you would be able to delete the restore points.
But if this works you should also consider changing the DNS and NTP server on the repo
-
- Veeam Software
- Posts: 219
- Liked: 111 times
- Joined: Jun 29, 2015 9:21 am
- Full Name: Michael Paul
- Contact:
Re: Deleting from a full Linux Immutable Repo
@LickABrick yep that would work if that’s the case, but that’s also why it’s recommended to not use NTP and rely on a hardware clock instead!
-------------
Michael Paul
Veeam Data Cloud: Microsoft 365 Solution Engineer
Michael Paul
Veeam Data Cloud: Microsoft 365 Solution Engineer
-
- Influencer
- Posts: 16
- Liked: 8 times
- Joined: Apr 26, 2021 3:18 pm
- Contact:
Re: Deleting from a full Linux Immutable Repo
I’m in the same boat as the OP. I was going to delete the expired files manually and then rescan the repo. The challenge will be if I have synthetic backup enabled. Might need a whole new active full.
-
- Veeam Software
- Posts: 219
- Liked: 111 times
- Joined: Jun 29, 2015 9:21 am
- Full Name: Michael Paul
- Contact:
Re: Deleting from a full Linux Immutable Repo
@hexadecimal, provided it’s not your active backup chain you will be fine to continue as normal once your expired backups are purged.
-------------
Michael Paul
Veeam Data Cloud: Microsoft 365 Solution Engineer
Michael Paul
Veeam Data Cloud: Microsoft 365 Solution Engineer
-
- Enthusiast
- Posts: 39
- Liked: 8 times
- Joined: Jul 11, 2012 3:39 pm
- Full Name: James McGuinness
- Contact:
Re: Deleting from a full Linux Immutable Repo
Figured I'd pop back in to explain my resolution. One thing I didn't mention was that this was a new setup, with 3 sites copying to this repo. I set my retention too long to fit it all in it seems! So I reduce the retention on all jobs, then waited for the existing sets to expire. I re-enable my jobs slowly and let them clean themselves up. I'm not sure why cleanup wasn't possible till the entire set was expired, however all is running well now!
-
- Influencer
- Posts: 16
- Liked: 8 times
- Joined: Apr 26, 2021 3:18 pm
- Contact:
Re: Deleting from a full Linux Immutable Repo
Thank you and this was indeed the case. In the properties of the backup set, while the backup was ongoing the items I'd deleted were greyed and showed a red "x". At the end of the backup job, they were gone and the remaining were fine. The set that had expired was from a chain almost 5 weeks ago. I'll ultimately be expanding the repo however I'm not terribly concerned as it's just one part of our rather elaborate backup architecture.micoolpaul wrote: ↑Apr 25, 2022 7:01 am @hexadecimal, provided it’s not your active backup chain you will be fine to continue as normal once your expired backups are purged.
As had been noted, going through using root was not ideal however it was needed in this case. Thanks Micoopaul!
Who is online
Users browsing this forum: Bing [Bot], Semrush [Bot] and 60 guests