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

Jakobs, Julian julian.jakobs at cec.mpg.de
Wed Feb 23 13:48:10 GMT 2022


I've ran into the same problem some time ago.
What worked for me was this shell script I run as a @reboot cronjob:

#!/bin/bash
while [ ! -d /gpfs1/home ]
do
  sleep 5
done
mount --bind /gpfs1/home /home

-----Ursprüngliche Nachricht-----
Von: gpfsug-discuss-bounces at spectrumscale.org [mailto:gpfsug-discuss-bounces at spectrumscale.org] Im Auftrag von Justin Cantrell
Gesendet: Dienstag, 22. Februar 2022 20:24
An: gpfsug-discuss at 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 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6777 bytes
Desc: not available
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20220223/f0a7fc07/attachment-0002.bin>


More information about the gpfsug-discuss mailing list