Comprehensive data protection for all workloads
Post Reply
JamesMcG
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

Post by JamesMcG »

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.
PetrM
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

Post by PetrM »

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!
JamesMcG
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

Post by JamesMcG » 1 person likes this post

Ok thanks, was hoping maybe another user knew how to handle this. Case opened Support ID: #01953814
mweissen13
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

Post by mweissen13 » 3 people like this post

Isn't the whole point of an "Immutable Repository" that it's not possible to do this without local root access?
PetrM
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

Post by PetrM »

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!
micoolpaul
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

Post by micoolpaul »

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
JamesMcG
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

Post by JamesMcG »

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.
micoolpaul
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

Post by micoolpaul » 1 person likes this post

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
LickABrick
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

Post by LickABrick » 1 person likes this post

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 ;)
micoolpaul
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

Post by micoolpaul »

@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
hexadecimal
Influencer
Posts: 16
Liked: 8 times
Joined: Apr 26, 2021 3:18 pm
Contact:

Re: Deleting from a full Linux Immutable Repo

Post by hexadecimal »

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.
micoolpaul
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

Post by micoolpaul »

@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
JamesMcG
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

Post by JamesMcG » 1 person likes this post

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!
hexadecimal
Influencer
Posts: 16
Liked: 8 times
Joined: Apr 26, 2021 3:18 pm
Contact:

Re: Deleting from a full Linux Immutable Repo

Post by hexadecimal » 2 people like this post

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.
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.

As had been noted, going through using root was not ideal however it was needed in this case. Thanks Micoopaul!
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot], mbrzezinski and 42 guests