List of deleted files via policies
Hello everyone, I am currently looking for the most efficient way to get a list of all deleted files since time T. So far the best I could come to is to create a snapshot at time T, generate two lists via policies, one for the files inside the .snapshots dir, one for the current filesystem, and compare the two with standard diff command. But I was wondering if is there any smarter way with policies only. Thanks, Ivano __________________________________________ Paul Scherrer Institut Ivano Talamo WHGA/038 Forschungsstrasse 111 5232 Villigen PSI Schweiz Phone: +41 56 310 47 11 E-Mail: ivano.talamo@psi.ch
Hi What you are doing is not wrong, of course create and delete snaps is not free. If you are using mmbackup you could leverage the shadow DB but running the command before the next mmbackup with –preview candidates and see the expires there. Never tried but in my head works … as so many other things that end up not, but worth the try as you then get free of jail from snaps. If you are doing snaps anyway due some other reasons then maybe is not worth the try to go mmbackup. -- Ystävällisin terveisin/Regards/Saludos/Salutations/Salutacions Luis Bolinches Executive IT Specialist IBM Storage Scale development Phone: +358503112585 Ab IBM Finland Oy Toinen linja 7 00530 Helsinki Uusimaa - Finland Visitors entrance: Siltasaarenkatu 22 "If you always give you will always have" -- Anonymous https://www.credly.com/users/luis-bolinches/badges From: gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> On Behalf Of Talamo Ivano Giuseppe Sent: Tuesday, 30 May 2023 16.55 To: gpfsug-discuss@gpfsug.org Subject: [EXTERNAL] [gpfsug-discuss] List of deleted files via policies Hello everyone, I am currently looking for the most efficient way to get a list of all deleted files since time T. So far the best I could come to is to create a snapshot at time T, generate two lists via policies, one for the files inside ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd Hello everyone, I am currently looking for the most efficient way to get a list of all deleted files since time T. So far the best I could come to is to create a snapshot at time T, generate two lists via policies, one for the files inside the .snapshots dir, one for the current filesystem, and compare the two with standard diff command. But I was wondering if is there any smarter way with policies only. Thanks, Ivano __________________________________________ Paul Scherrer Institut Ivano Talamo WHGA/038 Forschungsstrasse 111 5232 Villigen PSI Schweiz Phone: +41 56 310 47 11 E-Mail: ivano.talamo@psi.ch<mailto:ivano.talamo@psi.ch> Unless otherwise stated above: Oy IBM Finland Ab PL 265, 00101 Helsinki, Finland Business ID, Y-tunnus: 0195876-3 Registered in Finland
I am not sure this will work, since I have never tried it, but perhaps you could enable file audit logging (FAL) and track only file deletions. Presumably you could then search through the FAL log for deletions after time T. This does of course require that you use the DME or Advanced version of Scale, and that you setup FAL. Fred Fred Stock, Spectrum Scale Development Advocacy stockf@us.ibm.com<mailto:stockf@us.ibm.com> | 720-430-8821 From: gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> on behalf of Luis Bolinches <luis.bolinches@fi.ibm.com> Date: Tuesday, May 30, 2023 at 10:32 AM To: gpfsug main discussion list <gpfsug-discuss@gpfsug.org> Subject: [EXTERNAL] Re: [gpfsug-discuss] List of deleted files via policies Hi What you are doing is not wrong, of course create and delete snaps is not free. If you are using mmbackup you could leverage the shadow DB but running the command before the next mmbackup with –preview candidates and see the expires there. ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd Hi What you are doing is not wrong, of course create and delete snaps is not free. If you are using mmbackup you could leverage the shadow DB but running the command before the next mmbackup with –preview candidates and see the expires there. Never tried but in my head works … as so many other things that end up not, but worth the try as you then get free of jail from snaps. If you are doing snaps anyway due some other reasons then maybe is not worth the try to go mmbackup. -- Ystävällisin terveisin/Regards/Saludos/Salutations/Salutacions Luis Bolinches Executive IT Specialist IBM Storage Scale development Phone: +358503112585 Ab IBM Finland Oy Toinen linja 7 00530 Helsinki Uusimaa - Finland Visitors entrance: Siltasaarenkatu 22 "If you always give you will always have" -- Anonymous https://www.credly.com/users/luis-bolinches/badges<https://www.credly.com/users/luis-bolinches/badges> From: gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> On Behalf Of Talamo Ivano Giuseppe Sent: Tuesday, 30 May 2023 16.55 To: gpfsug-discuss@gpfsug.org Subject: [EXTERNAL] [gpfsug-discuss] List of deleted files via policies Hello everyone, I am currently looking for the most efficient way to get a list of all deleted files since time T. So far the best I could come to is to create a snapshot at time T, generate two lists via policies, one for the files inside ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd Hello everyone, I am currently looking for the most efficient way to get a list of all deleted files since time T. So far the best I could come to is to create a snapshot at time T, generate two lists via policies, one for the files inside the .snapshots dir, one for the current filesystem, and compare the two with standard diff command. But I was wondering if is there any smarter way with policies only. Thanks, Ivano __________________________________________ Paul Scherrer Institut Ivano Talamo WHGA/038 Forschungsstrasse 111 5232 Villigen PSI Schweiz Phone: +41 56 310 47 11 E-Mail: ivano.talamo@psi.ch<mailto:ivano.talamo@psi.ch> Unless otherwise stated above: Oy IBM Finland Ab PL 265, 00101 Helsinki, Finland Business ID, Y-tunnus: 0195876-3 Registered in Finland
I do something where I make sure all my files are in my backup server... So I will pull the full index from the backup server... And I will use a generated list of files on the file system... Using a GPFS policy... And pulling indexes and comparing about 1.3 million files on both sides of the diff takes about 3 minutes. The sorts takes a bit of time but the whole thing runs in 6 minutes as I run both sorts and pulls in parallel. So I would recommend just generating the file listing using a mmfind or an apply policy at time of snapshot and doing it again at a different time and just running a diff command to find missing entries. Depending on the amount of data you could probably combine the date and inode into a single field and only sort those and compare then join the filename using the inode.. depends on how big your filesystem index would be. Good luck on this one. But it is very nice to know every morning which 16 files out of millions aren't in the backup because their filenames are too crazy.. lol Alec On Tue, May 30, 2023, 9:57 AM Talamo Ivano Giuseppe <ivano.talamo@psi.ch> wrote:
Hello everyone,
I am currently looking for the most efficient way to get a list of all deleted files since time T. So far the best I could come to is to create a snapshot at time T, generate two lists via policies, one for the files inside the .snapshots dir, one for the current filesystem, and compare the two with standard diff command. But I was wondering if is there any smarter way with policies only.
Thanks, Ivano
__________________________________________ Paul Scherrer Institut Ivano Talamo WHGA/038 Forschungsstrasse 111 5232 Villigen PSI Schweiz
Phone: +41 56 310 47 11 E-Mail: ivano.talamo@psi.ch
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org
participants (4)
-
Alec -
Frederick Stock -
Luis Bolinches -
Talamo Ivano Giuseppe
