[gpfsug-discuss] How to do multiple mounts via GPFS
Tina Friedrich
tina.friedrich at it.ox.ac.uk
Tue Feb 22 18:12:23 GMT 2022
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 automatically bind-mounts it.)
You could then also only mount user home directories if they're logged
in, instead of showing all of them under /home/. Autofs can do pretty
nice wildcarding and such.
I would call bind mounting things - regardless of how - a better
solution than symlinks, but that might just be my opinion :)
Tina
On 22/02/2022 17: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?
>
--
Tina Friedrich, Advanced Research Computing Snr HPC Systems Administrator
Research Computing and Support Services
IT Services, University of Oxford
http://www.arc.ox.ac.uk http://www.it.ox.ac.uk
More information about the gpfsug-discuss
mailing list