[gpfsug-discuss] wait for mount during gpfs startup

IBM Spectrum Scale scale at us.ibm.com
Thu Apr 30 12:40:57 BST 2020


I now better understand the functionality you were aiming to achieve.  You 
want anything in systemd that is dependent on GPFS file systems being 
mounted to block until they are mounted.  Currently we do not offer any 
such feature though as Carl Zetie noted there is an RFE for such 
functionality, RFE 125955 (
https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=125955
).

For the mmaddcallback what I was thinking could resolve your problem was 
for you to create a either a "startup" callback or "mount" callbacks for 
your file systems.  I thought you could use those callbacks to track the 
file systems of interest and then use the appropriate means to integrate 
that information into the flow of systemd.  I have never done this so 
perhaps it is not possible.

Regards, The Spectrum Scale (GPFS) team

------------------------------------------------------------------------------------------------------------------
If you feel that your question can benefit other users of  Spectrum Scale 
(GPFS), then please post it to the public IBM developerWroks Forum at 
https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000479
. 

If your query concerns a potential software error in Spectrum Scale (GPFS) 
and you have an IBM software maintenance contract please contact 
1-800-237-5511 in the United States or your local IBM Service Center in 
other countries. 

The forum is informally monitored as time permits and should not be used 
for priority messages to the Spectrum Scale (GPFS) team.



From:   Ulrich Sibiller <u.sibiller at science-computing.de>
To:     gpfsug-discuss at spectrumscale.org
Date:   04/30/2020 06:57 AM
Subject:        [EXTERNAL] Re: [gpfsug-discuss] wait for mount during gpfs 
startup
Sent by:        gpfsug-discuss-bounces at spectrumscale.org



Am 28.04.20 um 15:57 schrieb Skylar Thompson:
  >> Have you looked a the mmaddcallback command and specifically the file 
system mount callbacks?

  > We use callbacks successfully to ensure Linux auditd rules are only 
loaded
  > after GPFS is mounted. It was easy to setup, and there's very 
fine-grained
  > events that you can trigger on:

Thanks. But how do set this up for a systemd service? Disable the 
dependent service and start it
from the callback? Create some kind of state file in the callback and let 
the dependent systemd
service check that flag file in a busy loop? Use inotify for the flag 
file?

Uli
-- 
Science + Computing AG
Vorstandsvorsitzender/Chairman of the board of management:
Dr. Martin Matzke
Vorstand/Board of Management:
Matthias Schempp, Sabine Hohenstein
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Aufsichtsrat/Supervisory Board:
Martin Wibbe, Ursula Morgenstern
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196
_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=IbxtjdkPAM2Sbon4Lbbi4w&m=KmkFZ30Ey3pB4QnhsP2vS2mmojVLAWGrIiStGaE0320&s=VHWoLbiq119iFhL724WAQwg4dSJ3KRNVSXnfrFBv9RQ&e= 






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20200430/6520eac3/attachment-0002.htm>


More information about the gpfsug-discuss mailing list