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?
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?
-- -- Skylar Thompson (skylar2@u.washington.edu) -- Genome Sciences Department (UW Medicine), System Administrator -- Foege Building S046, (206)-685-7354 -- Pronouns: He/Him/His
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
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 on class of the node, ie master, client, or primary backup node. Advantage of this is if you do an gpfs stop/start on an already running node things work right... Great in a fire situation... Or if you modify mounts or filesystems... You can call mmfsup say with mmdsh, send verify startup would be right. We started on this path because our backup software default policy would backup GPFS mounts from each node.. so simply adding the ignores at startup from the non backup primary was our solution. We also have mounts that should not be mounted on some nodes, and this handles that very elegantly. Alec On Tue, Feb 22, 2022, 9:37 AM Skylar Thompson <skylar2@uw.edu> 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?
-- -- Skylar Thompson (skylar2@u.washington.edu) -- Genome Sciences Department (UW Medicine), System Administrator -- Foege Building S046, (206)-685-7354 -- Pronouns: He/Him/His _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
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?
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@u.washington.edu) -- Genome Sciences Department (UW Medicine), System Administrator -- Foege Building S046, (206)-685-7354 -- Pronouns: He/Him/His
This is how we're currently solving this problem, with systemd timer and mount. None of the requires seem to work with gpfs since it starts so late. I would like a better solution. Is it normal for gpfs to start so late? I think it doesn't mount until after the gpfs.service starts, and even then it's 20-30 seconds. On 2/22/22 14:42, Skylar Thompson wrote:
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:
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 https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&data=04%7C01%7Cjcantrell1%40gsu.edu%7C2a65cd0ddefd48cb81a308d9f63bb840%7C515ad73d8d5e4169895c9789dc742a70%7C0%7C0%7C637811559082622923%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=F4oXAT0zdY%2BS1mR784ZGghUt0G%2F6Ofu36MfJ9WnPsPM%3D&reserved=0
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] that triggers on the mount condition for your filesystem that makes the bind mount rather than systemd. [1] https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Condition... [2] https://www.ibm.com/docs/en/spectrum-scale/5.1.2?topic=reference-mmaddcallba... These are both on our todo list for improving our own GPFS mounting as we have problems with our job scheduler not starting reliably on reboot, but for us we can have Puppet start it on the next run so it just means nodes might not return to service for 30 minutes or so. On Tue, Feb 22, 2022 at 03:05:58PM -0500, Justin Cantrell wrote:
This is how we're currently solving this problem, with systemd timer and mount. None of the requires seem to work with gpfs since it starts so late. I would like a better solution.
Is it normal for gpfs to start so late?? I think it doesn't mount until after the gpfs.service starts, and even then it's 20-30 seconds.
On 2/22/22 14:42, Skylar Thompson wrote:
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:
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 https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&data=04%7C01%7Cjcantrell1%40gsu.edu%7C2a65cd0ddefd48cb81a308d9f63bb840%7C515ad73d8d5e4169895c9789dc742a70%7C0%7C0%7C637811559082622923%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=F4oXAT0zdY%2BS1mR784ZGghUt0G%2F6Ofu36MfJ9WnPsPM%3D&reserved=0
gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Skylar Thompson (skylar2@u.washington.edu) -- Genome Sciences Department (UW Medicine), System Administrator -- Foege Building S046, (206)-685-7354 -- Pronouns: He/Him/His
Our Puppet/Ansible GPFS modules/playbooks handle this sequencing for us (we use bind mounts for things like u, projects, and scratch also). Like Skylar mentioned page pool allocation, quorum checking, and cluster arbitration have to come before a mount of the FS so that time you mentioned doesn’t seem totally off to me. We just make the creation of the bind mounts dependent on the actual GPFS mount occurring in the configuration management tooling which has worked out well for us in that regard. Best, J.D. Maloney Sr. HPC Storage Engineer | Storage Enabling Technologies Group National Center for Supercomputing Applications (NCSA) From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Skylar Thompson <skylar2@uw.edu> Date: Tuesday, February 22, 2022 at 2:13 PM To: gpfsug-discuss@spectrumscale.org <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] How to do multiple mounts via GPFS 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] that triggers on the mount condition for your filesystem that makes the bind mount rather than systemd. [1] https://urldefense.com/v3/__https://www.freedesktop.org/software/systemd/man/systemd.unit.html*ConditionPathIsMountPoint=__;Iw!!DZ3fjg!vTT86FG0CVqF6KsdQdq6n66YOYiOPr6K2MrdTnqc2vnVduE1uhiO8VJcWTqzv4xJQwzZ$<https://urldefense.com/v3/__https:/www.freedesktop.org/software/systemd/man/systemd.unit.html*ConditionPathIsMountPoint=__;Iw!!DZ3fjg!vTT86FG0CVqF6KsdQdq6n66YOYiOPr6K2MrdTnqc2vnVduE1uhiO8VJcWTqzv4xJQwzZ$> [2] https://urldefense.com/v3/__https://www.ibm.com/docs/en/spectrum-scale/5.1.2?topic=reference-mmaddcallback-command__;!!DZ3fjg!vTT86FG0CVqF6KsdQdq6n66YOYiOPr6K2MrdTnqc2vnVduE1uhiO8VJcWTqzv3f90Gia$<https://urldefense.com/v3/__https:/www.ibm.com/docs/en/spectrum-scale/5.1.2?topic=reference-mmaddcallback-command__;!!DZ3fjg!vTT86FG0CVqF6KsdQdq6n66YOYiOPr6K2MrdTnqc2vnVduE1uhiO8VJcWTqzv3f90Gia$> These are both on our todo list for improving our own GPFS mounting as we have problems with our job scheduler not starting reliably on reboot, but for us we can have Puppet start it on the next run so it just means nodes might not return to service for 30 minutes or so. On Tue, Feb 22, 2022 at 03:05:58PM -0500, Justin Cantrell wrote:
This is how we're currently solving this problem, with systemd timer and mount. None of the requires seem to work with gpfs since it starts so late. I would like a better solution.
Is it normal for gpfs to start so late?? I think it doesn't mount until after the gpfs.service starts, and even then it's 20-30 seconds.
On 2/22/22 14:42, Skylar Thompson wrote:
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:
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 https://urldefense.com/v3/__http://gpfsug.org/mailman/listinfo/gpfsug-discuss__;!!DZ3fjg!vTT86FG0CVqF6KsdQdq6n66YOYiOPr6K2MrdTnqc2vnVduE1uhiO8VJcWTqzv34vkiw2$<https://urldefense.com/v3/__http:/gpfsug.org/mailman/listinfo/gpfsug-discuss__;!!DZ3fjg!vTT86FG0CVqF6KsdQdq6n66YOYiOPr6K2MrdTnqc2vnVduE1uhiO8VJcWTqzv34vkiw2$>
-- -- Skylar Thompson (skylar2@u.washington.edu) -- Genome Sciences Department (UW Medicine), System Administrator -- Foege Building S046, (206)-685-7354 -- Pronouns: He/Him/His _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.com/v3/__http://gpfsug.org/mailman/listinfo/gpfsug-discuss__;!!DZ3fjg!vTT86FG0CVqF6KsdQdq6n66YOYiOPr6K2MrdTnqc2vnVduE1uhiO8VJcWTqzv34vkiw2$<https://urldefense.com/v3/__http:/gpfsug.org/mailman/listinfo/gpfsug-discuss__;!!DZ3fjg!vTT86FG0CVqF6KsdQdq6n66YOYiOPr6K2MrdTnqc2vnVduE1uhiO8VJcWTqzv34vkiw2$>
I'd love to see your fstab to see how you're doing that bind mount. Do you use systemd? What cluster manager are you using? On 2/22/22 15:21, Maloney, J.D. wrote:
Our Puppet/Ansible GPFS modules/playbooks handle this sequencing for us (we use bind mounts for things like u, projects, and scratch also). Like Skylar mentioned page pool allocation, quorum checking, and cluster arbitration have to come before a mount of the FS so that time you mentioned doesn’t seem totally off to me. We just make the creation of the bind mounts dependent on the actual GPFS mount occurring in the configuration management tooling which has worked out well for us in that regard.
Best,
J.D. Maloney
Sr. HPC Storage Engineer | Storage Enabling Technologies Group
National Center for Supercomputing Applications (NCSA)
*From: *gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Skylar Thompson <skylar2@uw.edu> *Date: *Tuesday, February 22, 2022 at 2:13 PM *To: *gpfsug-discuss@spectrumscale.org <gpfsug-discuss@spectrumscale.org> *Subject: *Re: [gpfsug-discuss] How to do multiple mounts via GPFS
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] that triggers on the mount condition for your filesystem that makes the bind mount rather than systemd.
[1] https://urldefense.com/v3/__https://www.freedesktop.org/software/systemd/man... <https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense...>
[2] https://urldefense.com/v3/__https://www.ibm.com/docs/en/spectrum-scale/5.1.2... <https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense...>
These are both on our todo list for improving our own GPFS mounting as we have problems with our job scheduler not starting reliably on reboot, but for us we can have Puppet start it on the next run so it just means nodes might not return to service for 30 minutes or so.
On Tue, Feb 22, 2022 at 03:05:58PM -0500, Justin Cantrell wrote:
This is how we're currently solving this problem, with systemd timer and mount. None of the requires seem to work with gpfs since it starts so late. I would like a better solution.
Is it normal for gpfs to start so late?? I think it doesn't mount until after the gpfs.service starts, and even then it's 20-30 seconds.
On 2/22/22 14:42, Skylar Thompson wrote:
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://urldefense.com/v3/__https://nam11.safelinks.protection.outlook.com/?url=https*3A*2F*2Fwww.freedesktop.org*2Fsoftware*2Fsystemd*2Fman*2Fsystemd.mount.html&data=04*7C01*7Cjcantrell1*40gsu.edu*7C2a65cd0ddefd48cb81a308d9f63bb840*7C515ad73d8d5e4169895c9789dc742a70*7C0*7C0*7C637811559082622923*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000&sdata=*2BWWD7cCNSMeJEYwELldYT3pLdXVX3AxJj7gqZQCqUv4*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUl!!DZ3fjg!vTT86FG0CVqF6KsdQdq6n66YOYiOPr6K2MrdTnqc2vnVduE1uhiO8VJcWTqzv0tqF9rU$ <https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense...>
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
https://urldefense.com/v3/__https://nam11.safelinks.protection.outlook.com/?url=http*3A*2F*2Fgpfsug.org*2Fmailman*2Flistinfo*2Fgpfsug-discuss&data=04*7C01*7Cjcantrell1*40gsu.edu*7C2a65cd0ddefd48cb81a308d9f63bb840*7C515ad73d8d5e4169895c9789dc742a70*7C0*7C0*7C637811559082622923*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000&sdata=F4oXAT0zdY*2BS1mR784ZGghUt0G*2F6Ofu36MfJ9WnPsPM*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUl!!DZ3fjg!vTT86FG0CVqF6KsdQdq6n66YOYiOPr6K2MrdTnqc2vnVduE1uhiO8VJcWTqzv5uX7C9S$ <https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense...>
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org
https://urldefense.com/v3/__http://gpfsug.org/mailman/listinfo/gpfsug-discus... <https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense...>
-- -- Skylar Thompson (skylar2@u.washington.edu) -- Genome Sciences Department (UW Medicine), System Administrator -- Foege Building S046, (206)-685-7354 -- Pronouns: He/Him/His _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.com/v3/__http://gpfsug.org/mailman/listinfo/gpfsug-discus... <https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense...>
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
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 mark everything else as dependent on that or one of it's descendents. You could simply put the wait on FS in your dependent services start script as an option as well. Lookup systemd and then After= or Part of= if memory serves me right on Linux. For the mmfsup script it goes into /var/mmfs/etc/mmfsup The cluster will call it if present when the node is ready. On Tue, Feb 22, 2022, 12:13 PM Skylar Thompson <skylar2@uw.edu> wrote:
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] that triggers on the mount condition for your filesystem that makes the bind mount rather than systemd.
[1] https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Condition... [2] https://www.ibm.com/docs/en/spectrum-scale/5.1.2?topic=reference-mmaddcallba...
These are both on our todo list for improving our own GPFS mounting as we have problems with our job scheduler not starting reliably on reboot, but for us we can have Puppet start it on the next run so it just means nodes might not return to service for 30 minutes or so.
On Tue, Feb 22, 2022 at 03:05:58PM -0500, Justin Cantrell wrote:
This is how we're currently solving this problem, with systemd timer and mount. None of the requires seem to work with gpfs since it starts so late. I would like a better solution.
Is it normal for gpfs to start so late?? I think it doesn't mount until after the gpfs.service starts, and even then it's 20-30 seconds.
On 2/22/22 14:42, Skylar Thompson wrote:
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:
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
gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Skylar Thompson (skylar2@u.washington.edu) -- Genome Sciences Department (UW Medicine), System Administrator -- Foege Building S046, (206)-685-7354 -- Pronouns: He/Him/His _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
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 /usr/lpp/mmfs/samples/systemd.service.sample Kind regards Norbert Schuld IBM Spectrum Scale Software Development
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@spectrumscale.org [mailto:gpfsug-discuss-bounces@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 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
On Feb 22, 2022, at 12:24 PM, Justin Cantrell <cantrell@astro.gsu.edu> 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?
What are you really trying to accomplish? Backward compatibility with an older user experience? Making it shorter to type? Matching the path on non-GPFS nodes? -- Stephen
participants (8)
-
Alec -
Jakobs, Julian -
Justin Cantrell -
Maloney, J.D. -
Norbert Schuld -
Skylar Thompson -
Stephen Ulmer -
Tina Friedrich
