* can i delete a snapshot with rm -rf ?
@ 2023-06-06 19:34 Bernd Lentes
2023-06-06 19:44 ` Goffredo Baroncelli
2023-06-06 19:44 ` Roman Mamedov
0 siblings, 2 replies; 3+ messages in thread
From: Bernd Lentes @ 2023-06-06 19:34 UTC (permalink / raw)
To: Btrfs BTRFS
Hi,
i'm pretty sure having read that this is possible. And in some scripts i do it this way.
But now i found on the net to not delete a snapshot with rm.
Cab you help me to clarify that ?
Thanks.
Bernd
--
Bernd Lentes
System Administrator
Institute for Metabolism and Cell Death (MCD)
Building 25 - office 122
HelmholtzZentrum München
bernd.lentes@helmholtz-muenchen.de
phone: +49 89 3187 1241
+49 89 3187 49123
fax: +49 89 3187 2294
https://www.helmholtz-munich.de/en/mcd
Helmholtz Zentrum München – Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
Ingolstädter Landstraße 1, D-85764 Neuherberg, https://www.helmholtz-munich.de
Geschäftsführung: Prof. Dr. med. Dr. h.c. Matthias Tschöp, Daniela Sommer (komm.) | Aufsichtsratsvorsitzende: MinDir’in Prof. Dr. Veronika von Messling
Registergericht: Amtsgericht München HRB 6466 | USt-IdNr. DE 129521671
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: can i delete a snapshot with rm -rf ?
2023-06-06 19:34 can i delete a snapshot with rm -rf ? Bernd Lentes
@ 2023-06-06 19:44 ` Goffredo Baroncelli
2023-06-06 19:44 ` Roman Mamedov
1 sibling, 0 replies; 3+ messages in thread
From: Goffredo Baroncelli @ 2023-06-06 19:44 UTC (permalink / raw)
To: Bernd Lentes, Btrfs BTRFS
On 06/06/2023 21.34, Bernd Lentes wrote:
> Hi,
>
> i'm pretty sure having read that this is possible. And in some scripts i do it this way.
> But now i found on the net to not delete a snapshot with rm.
>
> Cab you help me to clarify that ?
I think that the biggest drawback is that deleting a snapshot with 'rm' is slower because it
has to remove 1 file at time, where doing 'btrfs sub del' can cancel the 'fs tree' in 'one shot'.
Of course it is not so simple because you need to remove all the extents one at time.
But beside the performances, I don't see any drawback.
>
> Thanks.
>
> Bernd
>
>
> --
> Bernd Lentes
> System Administrator
> Institute for Metabolism and Cell Death (MCD)
> Building 25 - office 122
> HelmholtzZentrum München
> bernd.lentes@helmholtz-muenchen.de
> phone: +49 89 3187 1241
> +49 89 3187 49123
> fax: +49 89 3187 2294
> https://www.helmholtz-munich.de/en/mcd
>
>
> Helmholtz Zentrum München – Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
> Ingolstädter Landstraße 1, D-85764 Neuherberg, https://www.helmholtz-munich.de
> Geschäftsführung: Prof. Dr. med. Dr. h.c. Matthias Tschöp, Daniela Sommer (komm.) | Aufsichtsratsvorsitzende: MinDir’in Prof. Dr. Veronika von Messling
> Registergericht: Amtsgericht München HRB 6466 | USt-IdNr. DE 129521671
--
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: can i delete a snapshot with rm -rf ?
2023-06-06 19:34 can i delete a snapshot with rm -rf ? Bernd Lentes
2023-06-06 19:44 ` Goffredo Baroncelli
@ 2023-06-06 19:44 ` Roman Mamedov
1 sibling, 0 replies; 3+ messages in thread
From: Roman Mamedov @ 2023-06-06 19:44 UTC (permalink / raw)
To: Bernd Lentes; +Cc: Btrfs BTRFS
On Tue, 6 Jun 2023 19:34:36 +0000
Bernd Lentes <bernd.lentes@helmholtz-muenchen.de> wrote:
> i'm pretty sure having read that this is possible. And in some scripts i do it this way.
> But now i found on the net to not delete a snapshot with rm.
>
> Cab you help me to clarify that ?
Yes you can, but it is not the optimal way.
It would be more time-consuming, and might lead to metadata bloat and
fragmentation, since multiple states of the directory tree over time as the
deletion progresses will need to get recorded and re-recorded in the metadata.
--
With respect,
Roman
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-06-06 19:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-06 19:34 can i delete a snapshot with rm -rf ? Bernd Lentes
2023-06-06 19:44 ` Goffredo Baroncelli
2023-06-06 19:44 ` Roman Mamedov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).