[gpfsug-discuss] How to do multiple mounts via GPFS

Skylar Thompson skylar2 at uw.edu
Tue Feb 22 19:42:45 GMT 2022


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:

https://www.freedesktop.org/software/systemd/man/systemd.mount.html

You could then set RequiresMountFor=gpfs1.mount in the bind mount unit.

On Tue, Feb 22, 2022 at 02:23:53PM -0500, Justin Cantrell wrote:
> I tried a bind mount, but perhaps I'm doing it wrong. The system fails
> to boot because gpfs doesn't start until too late in the boot process.
> In fact, the system boots and the gpfs1 partition isn't available for a
> good 20-30 seconds.
> 
> /gfs1/home??? /home??? none???? bind
> I've tried adding mount options of x-systemd-requires=gpfs1, noauto.
> The noauto lets it boot, but the mount is never mounted properly. Doing
> a manual mount -a mounts it.
> 
> On 2/22/22 12:37, Skylar Thompson wrote:
> > 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 mount the main gpfs mount /gpfs1, but would like to mount things
> > > like:
> > > /home /gpfs1/home
> > > /other /gpfs1/other
> > > /stuff /gpfs1/stuff
> > > 
> > > But adding that to fstab doesn't work, because from what I understand,
> > > that's not how gpfs works with mounts.
> > > What's the standard way to accomplish something like this?
> > > We've used systemd timers/mounts to accomplish it, but that's not ideal.
> > > Is there a way to do this natively with gpfs or does this have to be done
> > > through symlinks or gpfs over nfs?
> _______________________________________________
> gpfsug-discuss mailing list
> gpfsug-discuss at spectrumscale.org
> http://gpfsug.org/mailman/listinfo/gpfsug-discuss

-- 
-- Skylar Thompson (skylar2 at u.washington.edu)
-- Genome Sciences Department (UW Medicine), System Administrator
-- Foege Building S046, (206)-685-7354
-- Pronouns: He/Him/His



More information about the gpfsug-discuss mailing list