Hi, Is there a way to track files which have been deleted easily? I'm assuming that we can't easily use a policy scan as they files are no longer in the file-system unless we do some sort of diff? I'm assuming there must be a way of doing this as mmbackup must track deleted files to notify TSM of expired objects. Basically I want a list of new files, changed files and deleted files since a certain time. I'm assuming the first two will be relatively simple with a policyscan, but the latter I'm not sure about. Thanks Simon
Hi Simon I presented exactly this (albeit briefly) at the 2016 UG. See the snapdiff section of the presentation at: http://files.gpfsug.org/presentations/2016/south-bank/ArcaPix_GPFS_Spectrum_... We can track creations, modifications, deletions and moves (from, to) for files and directories between one point in time and another. The selections can be returned via a manner of your choice. If anyone wants to know more, hit me up directly. Incidentally - I will be at BVE this week (http://www.bvexpo.com/) showing new things driven by the Python API and GPFS - so if anyone is in the area and wants to chat about technicals in person rather than on mail, drop me a line and we can sort that out. Best, Jez On Mon, 27 Feb 2017 at 11:30, Simon Thompson (Research Computing - IT Services) <S.J.Thompson@bham.ac.uk> wrote:
Hi,
Is there a way to track files which have been deleted easily? I'm assuming that we can't easily use a policy scan as they files are no longer in the file-system unless we do some sort of diff?
I'm assuming there must be a way of doing this as mmbackup must track deleted files to notify TSM of expired objects.
Basically I want a list of new files, changed files and deleted files since a certain time. I'm assuming the first two will be relatively simple with a policyscan, but the latter I'm not sure about.
Thanks
Simon
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- <http://pixitmedia.com> This email is confidential in that it is intended for the exclusive attention of the addressee(s) indicated. If you are not the intended recipient, this email should not be read or disclosed to any other person. Please notify the sender immediately and delete this email from your computer system. Any opinions expressed are not necessarily those of the company from which this email was sent and, whilst to the best of our knowledge no viruses or defects exist, no responsibility can be accepted for any loss or damage arising from its receipt or subsequent use of this email.
Yeah but that uses snapshots, which is pretty heavy-weight for what I want to do, particularly given mmbackup seems to have a way of tracking deletes... Simon From: <gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org>> on behalf of Jez Tucker <jtucker@pixitmedia.com<mailto:jtucker@pixitmedia.com>> Reply-To: "gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>" <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: Monday, 27 February 2017 at 11:59 To: "gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>" <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Subject: Re: [gpfsug-discuss] Tracking deleted files Hi Simon I presented exactly this (albeit briefly) at the 2016 UG. See the snapdiff section of the presentation at: http://files.gpfsug.org/presentations/2016/south-bank/ArcaPix_GPFS_Spectrum_... We can track creations, modifications, deletions and moves (from, to) for files and directories between one point in time and another. The selections can be returned via a manner of your choice. If anyone wants to know more, hit me up directly. Incidentally - I will be at BVE this week (http://www.bvexpo.com/) showing new things driven by the Python API and GPFS - so if anyone is in the area and wants to chat about technicals in person rather than on mail, drop me a line and we can sort that out. Best, Jez On Mon, 27 Feb 2017 at 11:30, Simon Thompson (Research Computing - IT Services) <S.J.Thompson@bham.ac.uk<mailto:S.J.Thompson@bham.ac.uk>> wrote: Hi, Is there a way to track files which have been deleted easily? I'm assuming that we can't easily use a policy scan as they files are no longer in the file-system unless we do some sort of diff? I'm assuming there must be a way of doing this as mmbackup must track deleted files to notify TSM of expired objects. Basically I want a list of new files, changed files and deleted files since a certain time. I'm assuming the first two will be relatively simple with a policyscan, but the latter I'm not sure about. Thanks Simon _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss -- [http://www.pixitmedia.com/sig/pxone_pt1.png][http://www.pixitmedia.com/sig/pxone_pt2.png][http://www.pixitmedia.com/sig/pxone_pt3.png][http://www.pixitmedia.com/sig/pxone_pt4.png] [http://pixitmedia.com/sig/BVE-Banner4.png]<http://pixitmedia.com> This email is confidential in that it is intended for the exclusive attention of the addressee(s) indicated. If you are not the intended recipient, this email should not be read or disclosed to any other person. Please notify the sender immediately and delete this email from your computer system. Any opinions expressed are not necessarily those of the company from which this email was sent and, whilst to the best of our knowledge no viruses or defects exist, no responsibility can be accepted for any loss or damage arising from its receipt or subsequent use of this email.
Hi Whilst it does use snapshots, I'd argue that snapshot creation is pretty lightweight - and always consistent. Your alternative via the mmbackup 'tracking' route is to parse out the mmbackup shadow file. AFAIK to do this /properly in a timely fashion/ you'd need to do this as an inline post process after the scan phase of mmbackup has run, else you're instead looking at the outdated view of the shadow file post previous mmbackup run. mmbackup does not 'track' file changes, it performs a comparison pass between the filesystem contents and what TSM _believes_ is the known state of the file system during each run. If a change is made oob of TSM then you need to re-generate the show file to regain total consistency. Sensibly you should be running any mmbackup process from a snapshot to perform consistent backups without dsmc errors. So all things being equal, using snapshots for exact consistency and not having to regenerate (very heavyweight) or parse out a shadow file periodically is a lighter weight, smoother and reliably consistent workflow. YMMV with either approach depending on your management of TSM and your interpretation of 'consistent view' vs 'good enough'. Jez On Mon, 27 Feb 2017 at 12:39, Simon Thompson (Research Computing - IT Services) <S.J.Thompson@bham.ac.uk> wrote:
Yeah but that uses snapshots, which is pretty heavy-weight for what I want to do, particularly given mmbackup seems to have a way of tracking deletes...
Simon
From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Jez Tucker < jtucker@pixitmedia.com> Reply-To: "gpfsug-discuss@spectrumscale.org" < gpfsug-discuss@spectrumscale.org> Date: Monday, 27 February 2017 at 11:59 To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Tracking deleted files
Hi Simon
I presented exactly this (albeit briefly) at the 2016 UG.
See the snapdiff section of the presentation at:
http://files.gpfsug.org/presentations/2016/south-bank/ArcaPix_GPFS_Spectrum_...
We can track creations, modifications, deletions and moves (from, to) for files and directories between one point in time and another.
The selections can be returned via a manner of your choice.
If anyone wants to know more, hit me up directly.
Incidentally - I will be at BVE this week (http://www.bvexpo.com/) showing new things driven by the Python API and GPFS - so if anyone is in the area and wants to chat about technicals in person rather than on mail, drop me a line and we can sort that out.
Best,
Jez
On Mon, 27 Feb 2017 at 11:30, Simon Thompson (Research Computing - IT Services) <S.J.Thompson@bham.ac.uk> wrote:
Hi,
Is there a way to track files which have been deleted easily? I'm assuming that we can't easily use a policy scan as they files are no longer in the file-system unless we do some sort of diff?
I'm assuming there must be a way of doing this as mmbackup must track deleted files to notify TSM of expired objects.
Basically I want a list of new files, changed files and deleted files since a certain time. I'm assuming the first two will be relatively simple with a policyscan, but the latter I'm not sure about.
Thanks
Simon
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
--
<http://pixitmedia.com> This email is confidential in that it is intended for the exclusive attention of the addressee(s) indicated. If you are not the intended recipient, this email should not be read or disclosed to any other person. Please notify the sender immediately and delete this email from your computer system. Any opinions expressed are not necessarily those of the company from which this email was sent and, whilst to the best of our knowledge no viruses or defects exist, no responsibility can be accepted for any loss or damage arising from its receipt or subsequent use of this email. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- <http://pixitmedia.com> This email is confidential in that it is intended for the exclusive attention of the addressee(s) indicated. If you are not the intended recipient, this email should not be read or disclosed to any other person. Please notify the sender immediately and delete this email from your computer system. Any opinions expressed are not necessarily those of the company from which this email was sent and, whilst to the best of our knowledge no viruses or defects exist, no responsibility can be accepted for any loss or damage arising from its receipt or subsequent use of this email.
On Mon, 2017-02-27 at 12:39 +0000, Simon Thompson (Research Computing - IT Services) wrote:
Yeah but that uses snapshots, which is pretty heavy-weight for what I want to do, particularly given mmbackup seems to have a way of tracking deletes...
It has been discussed in the past, but the way to track stuff is to enable HSM and then hook into the DSMAPI. That way you can see all the file creates and deletes "live". I can't however find a reference to it now. I have a feeling it was in the IBM GPFS forum however. It would however require you to get your hands dirty writing code. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
It has been discussed in the past, but the way to track stuff is to enable HSM and then hook into the DSMAPI. That way you can see all the file creates and deletes "live".
Won't work, I already have a "real" HSM client attached to DMAPI (dsmrecalld). I'm not actually wanting to backup for this use case, we already have mmbackup running to do those things, but it was a list of deleted files that I was after (I just thought it might be easy given mmbackup is tracking it already). Simon
I can think of a couple of ways to do this. But using snapshots seems heavy, but so does using mmbackup unless you are already running it every day. Diff the shadow files? Haha could be a _terrible_ idea if you have a couple hundred million files. But it IS possible. Next, I'm NOT a tsm expert, but I know a bit about it: (and I probably stayed at a Holiday Inn express at least once in my heavy travel days) -query objects using '-ina=yes' and yesterdays date? Might be a touch slow. But it probably uses the next one as it's backend: -db2 query inside TSM to see a similar thing. This ought to be the fastest, and I'm sure with a little google'ing you can work this out. Tivoli MUST know exact dates of deletion as it uses that and the retention time to know when to purge/reclaim deleted objects from it's storage pools. (retain extra version or RETEXTRA or retain only version) Ed On Mon, 27 Feb 2017 13:32:42 +0000 "Simon Thompson (Research Computing - IT Services)" <S.J.Thompson@bham.ac.uk> wrote:
It has been discussed in the past, but the way to track stuff is to enable HSM and then hook into the DSMAPI. That way you can see all the file creates and deletes "live".
Won't work, I already have a "real" HSM client attached to DMAPI (dsmrecalld).
I'm not actually wanting to backup for this use case, we already have mmbackup running to do those things, but it was a list of deleted files that I was after (I just thought it might be easy given mmbackup is tracking it already).
Simon
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Ed Wahl Ohio Supercomputer Center 614-292-9302
Diffing file lists can be fast - IF you keep the file lists sorted by a unique key, e.g. the inode number. I believe that's how mmbackup does it. Use the classic set difference algorithm. Standard diff is designed to do something else and is terribly slow on large file lists. From: Edward Wahl <ewahl@osc.edu> To: "Simon Thompson (Research Computing - IT Services)" <S.J.Thompson@bham.ac.uk> Cc: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 02/27/2017 03:51 PM Subject: Re: [gpfsug-discuss] Tracking deleted files Sent by: gpfsug-discuss-bounces@spectrumscale.org I can think of a couple of ways to do this. But using snapshots seems heavy, but so does using mmbackup unless you are already running it every day. Diff the shadow files? Haha could be a _terrible_ idea if you have a couple hundred million files. But it IS possible. Next, I'm NOT a tsm expert, but I know a bit about it: (and I probably stayed at a Holiday Inn express at least once in my heavy travel days) -query objects using '-ina=yes' and yesterdays date? Might be a touch slow. But it probably uses the next one as it's backend: -db2 query inside TSM to see a similar thing. This ought to be the fastest, and I'm sure with a little google'ing you can work this out. Tivoli MUST know exact dates of deletion as it uses that and the retention time to know when to purge/reclaim deleted objects from it's storage pools. (retain extra version or RETEXTRA or retain only version) Ed On Mon, 27 Feb 2017 13:32:42 +0000 "Simon Thompson (Research Computing - IT Services)" <S.J.Thompson@bham.ac.uk> wrote:
It has been discussed in the past, but the way to track stuff is to enable HSM and then hook into the DSMAPI. That way you can see all the file creates and deletes "live".
Won't work, I already have a "real" HSM client attached to DMAPI (dsmrecalld).
I'm not actually wanting to backup for this use case, we already have mmbackup running to do those things, but it was a list of deleted files that I was after (I just thought it might be easy given mmbackup is tracking it already).
Simon
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Ed Wahl Ohio Supercomputer Center 614-292-9302 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
AFM apparently keeps track og this, so maybe it would be possible to run AFM-SW with disconnected home and query the queue of changes? But would require some way of clearing the queue as well.. -jf On Monday, February 27, 2017, Marc A Kaplan <makaplan@us.ibm.com> wrote:
Diffing file lists can be fast - IF you keep the file lists sorted by a unique key, e.g. the inode number. I believe that's how mmbackup does it. Use the classic set difference algorithm.
Standard diff is designed to do something else and is terribly slow on large file lists.
From: Edward Wahl <ewahl@osc.edu <javascript:_e(%7B%7D,'cvml','ewahl@osc.edu');>> To: "Simon Thompson (Research Computing - IT Services)" < S.J.Thompson@bham.ac.uk <javascript:_e(%7B%7D,'cvml','S.J.Thompson@bham.ac.uk');>> Cc: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org <javascript:_e(%7B%7D,'cvml','gpfsug-discuss@spectrumscale.org');>> Date: 02/27/2017 03:51 PM Subject: Re: [gpfsug-discuss] Tracking deleted files Sent by: gpfsug-discuss-bounces@spectrumscale.org <javascript:_e(%7B%7D,'cvml','gpfsug-discuss-bounces@spectrumscale.org');> ------------------------------
I can think of a couple of ways to do this. But using snapshots seems heavy, but so does using mmbackup unless you are already running it every day.
Diff the shadow files? Haha could be a _terrible_ idea if you have a couple hundred million files. But it IS possible.
Next, I'm NOT a tsm expert, but I know a bit about it: (and I probably stayed at a Holiday Inn express at least once in my heavy travel days)
-query objects using '-ina=yes' and yesterdays date? Might be a touch slow. But it probably uses the next one as it's backend:
-db2 query inside TSM to see a similar thing. This ought to be the fastest, and I'm sure with a little google'ing you can work this out. Tivoli MUST know exact dates of deletion as it uses that and the retention time to know when to purge/reclaim deleted objects from it's storage pools. (retain extra version or RETEXTRA or retain only version)
Ed
On Mon, 27 Feb 2017 13:32:42 +0000 "Simon Thompson (Research Computing - IT Services)" < S.J.Thompson@bham.ac.uk <javascript:_e(%7B%7D,'cvml','S.J.Thompson@bham.ac.uk');>> wrote:
It has been discussed in the past, but the way to track stuff is to enable HSM and then hook into the DSMAPI. That way you can see all the file creates and deletes "live".
Won't work, I already have a "real" HSM client attached to DMAPI (dsmrecalld).
I'm not actually wanting to backup for this use case, we already have mmbackup running to do those things, but it was a list of deleted files that I was after (I just thought it might be easy given mmbackup is tracking it already).
Simon
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
--
Ed Wahl Ohio Supercomputer Center 614-292-9302 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
a couple of years ago tridge demonstrated things you can do with DMAPI interface and even delivered some non supported example code to demonstrate it : https://www.samba.org/~tridge/hacksm/ keep in mind that the DMAPI interface has some severe limitations in terms of scaling, it can only run on one node and can have only one subscriber. we are working on a more scalable and supported solution to accomplish what is asks for (track operations, not just delete) , stay tuned in one of the next user group meetings where i will present (Germany and/or London). Sven On Mon, Feb 27, 2017 at 5:25 AM Jonathan Buzzard <jonathan@buzzard.me.uk> wrote:
On Mon, 2017-02-27 at 12:39 +0000, Simon Thompson (Research Computing - IT Services) wrote:
Yeah but that uses snapshots, which is pretty heavy-weight for what I want to do, particularly given mmbackup seems to have a way of tracking deletes...
It has been discussed in the past, but the way to track stuff is to enable HSM and then hook into the DSMAPI. That way you can see all the file creates and deletes "live".
I can't however find a reference to it now. I have a feeling it was in the IBM GPFS forum however.
It would however require you to get your hands dirty writing code.
JAB.
-- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Manchester ... The UK meeting is most likely going to be in Manchester ... 9th/10th May if you wanted to pencil something in (we're just waiting for final confirmation of the venue being booked). Simon From: <gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org>> on behalf of Sven Oehme <oehmes@gmail.com<mailto:oehmes@gmail.com>> Reply-To: "gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>" <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: Monday, 27 February 2017 at 13:37 To: "gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>" <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Subject: Re: [gpfsug-discuss] Tracking deleted files we are working on a more scalable and supported solution to accomplish what is asks for (track operations, not just delete) , stay tuned in one of the next user group meetings where i will present (Germany and/or London).
participants (9)
-
Edward Wahl -
Hans-Joachim Ehlers -
Jan-Frode Myklebust -
Jez Tucker -
Jonathan Buzzard -
Luis Bolinches -
Marc A Kaplan -
Simon Thompson (Research Computing - IT Services) -
Sven Oehme
