Automating Snapshots : cron jobs or use the GUI ?
Hi all, Since the subject of snapshots has come up, I also have a question ... Snapshots can be created from the command line with mmcrsnapshot, and hence can be automated via con jobs etc. Snapshots can also be created from the Scale GUI. The GUI also provides its own automation for the creation, retention, and deletion of snapshots. My question is: do most customers use the former or the latter for automation? (I also note that /usr/lpp/mmfs/gui/cli/mksnaprule exists and appears to do exactly the same as what the GUI does it terms of creating automated snapshots. It is a relic of V7000 Unified but still works fine in Spectrum Scale 5.1.2.2. How many customers also use the commands found in /usr/lpp/mmfs/gui/cli/ ? ) Daniel Daniel Kidger HPC Storage Solutions Architect, EMEA daniel.kidger@hpe.com<mailto:daniel.kidger@hpe.com> +44 (0)7818 522266 hpe.com<http://www.hpe.com/> [cid:548be828-dcc2-4a88-ac2e-ff5106b3f802]
I always used the GUI for automating snapshots that were tagged with the YYMMDD format so that they were accessible via the previous versions tab from CES access. This requires no locking if you have multiple GUI servers running, so in theory the snapshots creation is "HA". BUT if you shutdown the GUI servers (say you are waiting for a log4j patch ...) then you have no snapshot automation. Due to the way we structured independent filesets, this could be 50 or so to automate and we wanted to set a say 4 day retention policy. So clicking in the GUI was pretty simple to do this for. What we did found is it a snapshot failed to delete for some reason (quiesce etc), then the GUI never tried again to clean it up so we have monitoring to look for unexpected snapshots that needed cleaning up. Simon ________________________________ Simon Thompson He/Him/His Senior Storage Performance WW HPC Customer Solutions Lenovo UK [Phone]+44 7788 320635 [Email]sthompson2@lenovo.com<mailto:sthompson2@lenovo.com> Lenovo.com<http://www.lenovo.com/> Twitter<http://twitter.com/lenovo> | Instagram<https://instagram.com/lenovo> | Facebook<http://www.facebook.com/lenovo> | Linkedin<http://www.linkedin.com/company/lenovo> | YouTube<http://www.youtube.com/lenovovision> | Privacy<https://www.lenovo.com/gb/en/privacy-selector/> [cid:image003.png@01D81822.F63BAB90] From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Kidger, Daniel Sent: 02 February 2022 10:07 To: gpfsug-discuss@spectrumscale.org Subject: [External] [gpfsug-discuss] Automating Snapshots : cron jobs or use the GUI ? Hi all, Since the subject of snapshots has come up, I also have a question ... Snapshots can be created from the command line with mmcrsnapshot, and hence can be automated via con jobs etc. Snapshots can also be created from the Scale GUI. The GUI also provides its own automation for the creation, retention, and deletion of snapshots. My question is: do most customers use the former or the latter for automation? (I also note that /usr/lpp/mmfs/gui/cli/mksnaprule exists and appears to do exactly the same as what the GUI does it terms of creating automated snapshots. It is a relic of V7000 Unified but still works fine in Spectrum Scale 5.1.2.2. How many customers also use the commands found in /usr/lpp/mmfs/gui/cli/ ? ) Daniel Daniel Kidger HPC Storage Solutions Architect, EMEA daniel.kidger@hpe.com<mailto:daniel.kidger@hpe.com> +44 (0)7818 522266 hpe.com<https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.hpe.com...> [cid:image004.png@01D81822.F63BAB90]
Simon, Thanks - that is a good insight. The HA 'feature' of the snapshot automation is perhaps a key feature as Linux still lacks a decent 'cluster cron' Also, If "HA" do we know where the state is centrally kept? On the point of snapshots being left undeleted, do you ever use /usr/lpp/mmfs/gui/cli/lssnapops to see what the queue of outstanding actions is like? (There is also a notification tool: lssnapnotify in that directory that is supposed to alert on failed snapshot actions, although personally I have never used it) Daniel Kidger HPC Storage Solutions Architect, EMEA daniel.kidger@hpe.com<mailto:daniel.kidger@hpe.com> +44 (0)7818 522266 hpe.com<http://www.hpe.com/> [cid:fce0ce85-6ae4-44ce-aa94-d7d099e68acb] ________________________________ From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Simon Thompson2 <sthompson2@lenovo.com> Sent: 02 February 2022 10:52 To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] [External] Automating Snapshots : cron jobs or use the GUI ? I always used the GUI for automating snapshots that were tagged with the YYMMDD format so that they were accessible via the previous versions tab from CES access. This requires no locking if you have multiple GUI servers running, so in theory the snapshots creation is “HA”. BUT if you shutdown the GUI servers (say you are waiting for a log4j patch …) then you have no snapshot automation. Due to the way we structured independent filesets, this could be 50 or so to automate and we wanted to set a say 4 day retention policy. So clicking in the GUI was pretty simple to do this for. What we did found is it a snapshot failed to delete for some reason (quiesce etc), then the GUI never tried again to clean it up so we have monitoring to look for unexpected snapshots that needed cleaning up. Simon ________________________________ Simon Thompson He/Him/His Senior Storage Performance WW HPC Customer Solutions Lenovo UK [Phone]+44 7788 320635 [Email]sthompson2@lenovo.com<mailto:sthompson2@lenovo.com> Lenovo.com<http://www.lenovo.com/> Twitter<http://twitter.com/lenovo> | Instagram<https://instagram.com/lenovo> | Facebook<http://www.facebook.com/lenovo> | Linkedin<http://www.linkedin.com/company/lenovo> | YouTube<http://www.youtube.com/lenovovision> | Privacy<https://www.lenovo.com/gb/en/privacy-selector/> [cid:image003.png@01D81822.F63BAB90] From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Kidger, Daniel Sent: 02 February 2022 10:07 To: gpfsug-discuss@spectrumscale.org Subject: [External] [gpfsug-discuss] Automating Snapshots : cron jobs or use the GUI ? Hi all, Since the subject of snapshots has come up, I also have a question ... Snapshots can be created from the command line with mmcrsnapshot, and hence can be automated via con jobs etc. Snapshots can also be created from the Scale GUI. The GUI also provides its own automation for the creation, retention, and deletion of snapshots. My question is: do most customers use the former or the latter for automation? (I also note that /usr/lpp/mmfs/gui/cli/mksnaprule exists and appears to do exactly the same as what the GUI does it terms of creating automated snapshots. It is a relic of V7000 Unified but still works fine in Spectrum Scale 5.1.2.2. How many customers also use the commands found in /usr/lpp/mmfs/gui/cli/ ? ) Daniel Daniel Kidger HPC Storage Solutions Architect, EMEA daniel.kidger@hpe.com<mailto:daniel.kidger@hpe.com> +44 (0)7818 522266 hpe.com<https://apc01.safelinks.protection.outlook.com/?url=http://www.hpe.com/&data=04|01|sthompson2@lenovo.com|51f07ae3d10e4b72b3f508d9e6376ade|5c7d0b28bdf8410caa934df372b16203|1|0|637793948599274589|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0=|2000&sdata=POLEOGqPow4lBYq4jkLfTwDY5xpIJGe0FzOBoRMiVmo=&reserved=0> [cid:image004.png@01D81822.F63BAB90]
Hi, I use a python script via cron job, it checks how many snapshots exist and removes those that exceed a configurable limit, then creates a new one. Deployed via puppet it's much less hassle than click around in a GUI/
From: "Kidger, Daniel" <daniel.kidger@hpe.com> To: "gpfsug main discussion list" <gpfsug-discuss@spectrumscale.org> Sent: Wednesday, 2 February, 2022 11:07:25 Subject: [gpfsug-discuss] Automating Snapshots : cron jobs or use the GUI ?
Hi all,
Since the subject of snapshots has come up, I also have a question ...
Snapshots can be created from the command line with mmcrsnapshot, and hence can be automated via con jobs etc. Snapshots can also be created from the Scale GUI. The GUI also provides its own automation for the creation, retention, and deletion of snapshots.
My question is: do most customers use the former or the latter for automation?
(I also note that /usr/lpp/mmfs/gui/cli/mksnaprule exists and appears to do exactly the same as what the GUI does it terms of creating automated snapshots. It is a relic of V7000 Unified but still works fine in Spectrum Scale 5.1.2.2. How many customers also use the commands found in /usr/lpp/mmfs/gui/cli / ? )
Daniel
Daniel Kidger HPC Storage Solutions Architect, EMEA [ mailto:daniel.kidger@hpe.com | daniel.kidger@hpe.com ]
+44 (0)7818 522266
[ http://www.hpe.com/ | hpe.com ]
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi, I also used a custom script (database driven) via cron which creates many fileset snapshots during the day via the "default helper nodes". Because of the iops, the oldest snapshots are deleted at night. Perhaps it's a good idea to take one global filesystem snapshot and make it available to the filesets with mmsnapdir. Kind regards, Jaap Jan Ouwehand "Hannappel, Juergen" <juergen.hannappel@desy.de> schreef op 2 februari 2022 16:04:24 CET:
Hi, I use a python script via cron job, it checks how many snapshots exist and removes those that exceed a configurable limit, then creates a new one. Deployed via puppet it's much less hassle than click around in a GUI/
From: "Kidger, Daniel" <daniel.kidger@hpe.com> To: "gpfsug main discussion list" <gpfsug-discuss@spectrumscale.org> Sent: Wednesday, 2 February, 2022 11:07:25 Subject: [gpfsug-discuss] Automating Snapshots : cron jobs or use the GUI ?
Hi all,
Since the subject of snapshots has come up, I also have a question ...
Snapshots can be created from the command line with mmcrsnapshot, and hence can be automated via con jobs etc. Snapshots can also be created from the Scale GUI. The GUI also provides its own automation for the creation, retention, and deletion of snapshots.
My question is: do most customers use the former or the latter for automation?
(I also note that /usr/lpp/mmfs/gui/cli/mksnaprule exists and appears to do exactly the same as what the GUI does it terms of creating automated snapshots. It is a relic of V7000 Unified but still works fine in Spectrum Scale 5.1.2.2. How many customers also use the commands found in /usr/lpp/mmfs/gui/cli / ? )
Daniel
Daniel Kidger HPC Storage Solutions Architect, EMEA [ mailto:daniel.kidger@hpe.com | daniel.kidger@hpe.com ]
+44 (0)7818 522266
[ http://www.hpe.com/ | hpe.com ]
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Big vote for cron jobs. Our snapshot are created by a script, installed on each GPFS node. The script handles naming, removing old snapshots, checking that sufficient disk space exists before creating a snapshot, etc. We do snapshots every 15 minutes, keeping them with lower frequency over longer intervals. For example: current hour: keep 4 snapshots hours -2 .. -8 keep 3 snapshots per hour hours -8 .. -24 keep 2 snapshots per hour days -1 .. -5 keep 1 snapshot per hour days -5 .. -15 keep 4 snapshots per day days -15 .. -30 keep 1 snapshot per day the duration & frequency & minimum disk space can be adjusted per-filesystem. The automation is done through a cronjob that runs on each GPFS (DSS-G) server to create the snapshot only if the node is currently the cluster master, as in: */15 * * * * root mmlsmgr -Y | grep -q "clusterManager.*:$(hostname --long):" && /path/to/snapshotter This requires no locking and ensures that only a single instance of snapshots is created at each time interval. We use the same trick to gather GPFS health stats, etc., ensuring that the data collection only runs on a single node (the cluster manager). -- Mark Bergman voice: 215-746-4061 mark.bergman@pennmedicine.upenn.edu fax: 215-614-0266 http://www.med.upenn.edu/cbica/ IT Technical Director, Center for Biomedical Image Computing and Analytics Department of Radiology University of Pennsylvania
participants (5)
-
Hannappel, Juergen -
Jaap Jan Ouwehand -
Kidger, Daniel -
mark.bergman@uphs.upenn.edu -
Simon Thompson2
