[mailto:gpfsug-discuss-boun...@spectrumscale.org] Im Auftrag von Justin Cantrell
Gesendet: Dienstag, 22. Februar 2022 20:24
An: gpfsug-discuss@spectrumscale.org
Betreff: Re: [gpfsug-discuss] How to do multiple mounts via GPFS
I tried a bind mount, but perhaps I'm doing it wrong. The system fails to boot
May I point out some additional systemd targets documented here:
https://www.ibm.com/docs/en/spectrum-scale/5.1.2?topic=gpfs-planning-systemd
Depending on the need the gpfs-wait-mount.service could be helpful as an
"after" clause for other units.
An example is provided in
National Center for Supercomputing Applications (NCSA)
From: gpfsug-discuss-boun...@spectrumscale.org
on behalf of Skylar Thompson
Date: Tuesday, February 22, 2022 at 2:13 PM
To: gpfsug-discuss@spectrumscale.org
Subject: Re: [gpfsug-discuss] How to do multiple mounts via GPFS
The problem might
The trick for us on AIX in the inittab I have a script fswait.ksh and
monitors for the cluster mount point to be available before allowing the
cluster dependent startup item (lower in the inittab) I'm pretty sure
Linux has a way to define a dependent service.. define a cluster ready
service and
The problem might be that the service indicates success when mmstartup
returns rather than when the mount is actually active (requires quorum
checking, arbitration, etc.). A couple tricks I can think of would be using
ConditionPathIsMountPoint from systemd.unit[1], or maybe adding a
callback[2]
Like Tina, we're doing bind mounts in autofs. I forgot that there might be
a race condition if you're doing it in fstab. If you're on system with systemd,
another option might be to do this directly with systemd.mount rather than
let the fstab generator make the systemd.mount units:
There is a sample script I believe it's called mmfsup. It's a hook that's
called at startup of GPFS cluster node. We modify that script to do things
such as configure backup ignore lists, update pagepool, and mount GPFS
filesystem nodes as appropriate. We basically have a case statement based
Bind mounts would definitely work; you can also use the automounter to
bind-mount things into place. That's how we do that.
E.g.
[ ~]$ cat /etc/auto.data
/data localhost://mnt/gpfs/bulk/data
[ ~]$ cat /etc/auto.master | grep data
# data
/- /etc/auto.data
works very well :) (That
Assuming this is on Linux, you ought to be able to use bind mounts for
that, something like this in fstab or equivalent:
/home /gpfs1/home bind defaults 0 0
On Tue, Feb 22, 2022 at 12:24:09PM -0500, Justin Cantrell wrote:
> We're trying to mount multiple mounts at boot up via gpfs.
> We can