[gpfsug-discuss] wait for mount during gpfs startup

Ryan Novosielski novosirj at rutgers.edu
Tue Apr 28 17:33:34 BST 2020


Has anyone confirmed this? At one point, I mucked around with this somewhat endlessly to try to get something sane and systemd-based to work and ultimately surrendered and inserted a 30 second delay. I didn’t try the “check for the presence of a file” thing as I’m allergic to that sort of thing (at least more allergic than I am to a time-based delay). I believe everything that I tried happens before the mount is complete.

--
____
|| \\UTGERS,  	 |---------------------------*O*---------------------------
||_// the State	 |         Ryan Novosielski - novosirj at rutgers.edu
|| \\ University | Sr. Technologist - 973/972.0922 (2x0922) ~*~ RBHS Campus
||  \\    of NJ	 | Office of Advanced Research Computing - MSB C630, Newark
     `'

> On Apr 28, 2020, at 7:55 AM, Hannappel, Juergen <juergen.hannappel at desy.de> wrote:
> 
> Hi,
> a gpfs.mount target should be automatically created at boot by the
> systemd-fstab-generator from the fstab entry, so no need with hackery like
> ismountet.txt...
> 
> 
> ----- Original Message -----
>> From: "Jonathan Buzzard" <jonathan.buzzard at strath.ac.uk>
>> To: gpfsug-discuss at spectrumscale.org
>> Sent: Tuesday, 28 April, 2020 13:38:01
>> Subject: Re: [gpfsug-discuss] wait for mount during gpfs startup
> 
>> Yuck, and double yuck. There are many things you can say about systemd
>> (and I have a choice few) but one of them is that it makes this sort of
>> hackery obsolete. At least that is one of it goals.
>> 
>> A systemd way to do it would be via one or more helper units. So lets
>> assume your GPFS file system is mounted on /gpfs, then create a file
>> called ismounted.txt on it and then create a unit called say
>> gpfs_mounted.target that looks like
>> 
>> 
>> # gpfs_mounted.target
>> [Unit]
>> TimeoutStartSec=infinity
>> ConditionPathExists=/gpfs/ismounted.txt
>> ExecStart=/usr/bin/sleep 10
>> RemainAfterExit=yes
>> 
>> Then the main unit gets
>> 
>> Wants=gpfs_mounted.target
>> After=gpfs_mounted.target
>> 
>> If you are using scripts in systemd you are almost certainly doing it
>> wrong :-)
>> 
>> JAB.
>> 
>> --
>> Jonathan A. Buzzard                         Tel: +44141-5483420
>> HPC System Administrator, ARCHIE-WeSt.
>> University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
>> _______________________________________________
>> gpfsug-discuss mailing list
>> gpfsug-discuss at spectrumscale.org
>> http://gpfsug.org/mailman/listinfo/gpfsug-discuss
> _______________________________________________
> gpfsug-discuss mailing list
> gpfsug-discuss at spectrumscale.org
> http://gpfsug.org/mailman/listinfo/gpfsug-discuss



More information about the gpfsug-discuss mailing list