While you could query the BACKUPS or CONTENTS tables via SQL on the SP server-side, my experience is that this is no faster than QUERY BACKUP on the client-side, and a lot more resource-intensive for the SP server. An alternative would be to set these variables in your mmbackup shell environment:
export MMBACKUP_DSMC_BACKUP="-auditlogging=full -auditlogname=/var/log/dsm-audit-_node-name_-_fs-name_-backup.log" export MMBACKUP_DSMC_EXPIRE="-auditlogging=full -auditlogname=/var/log/dsm-audit-_node-name_-_fs-name_-expire.log" You'll get messages like this in those files: 09/09/22 05:26:51 ANS1651I Backed Up: /gpfs/foo/bar 09/09/22 05:26:51 ANS1651I Failed: /gpfs/foo/invalid_name 09/07/22 20:50:48 ANS1657I Expired: /gpfs/foo/deleted_file With a bit of work you can parse together what happened when as mmbackup runs. On Fri, Sep 09, 2022 at 02:01:15PM +0200, Martin Lischewski wrote: > Hello everyone, > > it is my first time posting to this group, so I am sorry if this > question is to trivial. > > We are using mmbackup to backup our Spectrum Scale filesystems. Because > of some bad experience in the past we do not trust the output of mmbackup. > > Therefore we wrote our own scripts validating the backup state of our > filesystems. Basically this is what we are doing: > > We compare the output of a policy run by gpfs policy engine on the > filesystem with the output of: `dsmc query backup -subdir=yes -quiet > <filesystem_mountpoint>` > > The policy engine listing all files is relatively fast. The `dsmc q ba` > takes way longer. (3 hours for roughly 36_000_000 entries.) > > Can you recommend me a faster way to list all files which are in backup? > > Regards, > > Martin > > > > > > ------------------------------------------------------------------------------------------------ > ------------------------------------------------------------------------------------------------ > Forschungszentrum Juelich GmbH > 52425 Juelich > Sitz der Gesellschaft: Juelich > Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 > Vorsitzender des Aufsichtsrats: MinDir Volker Rieke > Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), > Karsten Beneke (stellv. Vorsitzender), Prof. Dr. Astrid Lambrecht, > Prof. Dr. Frauke Melchior > ------------------------------------------------------------------------------------------------ > ------------------------------------------------------------------------------------------------ -- -- Skylar Thompson (skyl...@u.washington.edu) -- Genome Sciences Department (UW Medicine), System Administrator -- Foege Building S046, (206)-685-7354 -- Pronouns: He/Him/His