kernel updates and GPFS modules: manual, DKMS, cron, other?
Hello, I am a new user of GPFS (Spectrum Scale) and would like to know if there is a ‘best practice’ on handling kernel updates on HPC clients. We are running Ubuntu 18.04 and 20.04 clients with 5.1.x, talking to RHEL storage servers, and would like to know how to handle re-compiling the client-side kernel modules. There is of course the “mmbuildgpl” utility: https://www.ibm.com/docs/en/spectrum-scale/5.1.3?topic=reference-mmbuildgpl-... but how do folks invoke it? Manually, via cron at night on or reboot, via some kind of apt (dpkg-trigger(1)) / RPM hook? We have the “unattended-upgrades” package enabled, which only installs security-tagged updates by default, but sometimes this does include kernel updates, which may become active on the next reboot: https://packages.ubuntu.com/search?keywords=unattended-upgrades So is there a best practice? Has someone invented this wheel that I could leverage, or will I have to invent it myself? Thanks for any info. -- David Magda
On Fri, 2023-03-03 at 14:29 -0500, David Magda wrote:
Hello,
I am a new user of GPFS (Spectrum Scale) and would like to know if there is a ‘best practice’ on handling kernel updates on HPC clients. We are running Ubuntu 18.04 and 20.04 clients with 5.1.x, talking to RHEL storage servers, and would like to know how to handle re- compiling the client-side kernel modules.
There is of course the “mmbuildgpl” utility:
https://www.ibm.com/docs/en/spectrum-scale/5.1.3?topic=reference-mmbuildgpl-...
but how do folks invoke it? Manually, via cron at night on or reboot, via some kind of apt (dpkg-trigger(1)) / RPM hook?
There is the Scale option: mmchconfig autoBuildGPL=yes When Scale starts, it checks whether the kernel modules are available for the current kernel; and if not, mmbuildgpl is run before acctually starting the daemon. That should be one way to solve this. See https://www.ibm.com/docs/en/spectrum-scale/5.1.7?topic=reference-mmchconfig-... Regards, Christof
On 03/03/2023 19:29, David Magda wrote:
Hello,
I am a new user of GPFS (Spectrum Scale) and would like to know if there is a ‘best practice’ on handling kernel updates on HPC clients. We are running Ubuntu 18.04 and 20.04 clients with 5.1.x, talking to RHEL storage servers, and would like to know how to handle re-compiling the client-side kernel modules.
There is of course the “mmbuildgpl” utility:
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ibm.co...
but how do folks invoke it? Manually, via cron at night on or reboot, via some kind of apt (dpkg-trigger(1)) / RPM hook?
We have the “unattended-upgrades” package enabled, which only installs security-tagged updates by default, but sometimes this does include kernel updates, which may become active on the next reboot:
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpackages.u...
I would suggest that you disable any automatic upgrading of the kernel. Kernel upgrades should *only* be done *after* you have verified that it will work. If you don't it is only a matter of time before a security update breaks GPFS. There was at least one instance of that happing in the last five years.
So is there a best practice? Has someone invented this wheel that I could leverage, or will I have to invent it myself?
I use a RPM package called gpfs-helper that I created. It installs a local "helper" to the systemd gpfs unit file /etc/systemd/system/gpfs.service.d/install-module.conf [Service] ExecStartPre=-/usr/bin/dnf --assumeyes --enablerepo dssg install gpfs.gplbin-%v This causes the correct gpfs.gplbin RPM to be installed when starting GPFS. If the correct one is already installed it does nothing, otherwise it downloads the correct RPM and installs it before attempting to start GPFS. I am pretty sure you could do the same with apt. The %v is the magic bit which basically matches the running kernel. So after testing that GPFS works on the new kernel, I build the RPM, put it in the local repo and winner winner chicken dinner. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
On Mar 3, 2023, at 15:05, Jonathan Buzzard <jonathan.buzzard@strath.ac.uk> wrote: I would suggest that you disable any automatic upgrading of the kernel. Kernel upgrades should *only* be done *after* you have verified that it will work. If you don't it is only a matter of time before a security update breaks GPFS. There was at least one instance of that happing in the last five years. Definitely more than once, and technically you should not upgrade at all unless the kernel is specifically listed as supported on this page, otherwise you may get to be the one that finds the non-obvious compatibility bug: https://www.ibm.com/docs/en/spectrum-scale?topic=STXKQY/gpfsclustersfaq.html As a result, we typically don’t bother with any automatic updating of GPFS, because if we’re going to upgrade either GPFS or the kernel, we already know about it and do it on purpose. We also build the RPMs on one system, since the vast majority of our equipment does not have the full compiler set installed. -- #BlackLivesMatter ____ || \\UTGERS, |---------------------------*O*--------------------------- ||_// the State | Ryan Novosielski - novosirj@rutgers.edu || \\ University | Sr. Technologist - 973/972.0922 (2x0922) ~*~ RBHS Campus || \\ of NJ | Office of Advanced Research Computing - MSB C630, Newark `'
Yep, this is our strategy too. We version-lock GPFS and the kernel in yum and define the target versions in our configuration management (Puppet), with the version-specific gplbin packages stored in our local yum repo. When we want to upgrade, we schedule an outage, build a new package, put in the repo, then bump the target versions in Puppet and reboot. On Mon, Mar 06, 2023 at 04:28:25PM +0000, Ryan Novosielski wrote:
On Mar 3, 2023, at 15:05, Jonathan Buzzard <jonathan.buzzard@strath.ac.uk> wrote:
I would suggest that you disable any automatic upgrading of the kernel. Kernel upgrades should *only* be done *after* you have verified that it will work.
If you don't it is only a matter of time before a security update breaks GPFS. There was at least one instance of that happing in the last five years.
Definitely more than once, and technically you should not upgrade at all unless the kernel is specifically listed as supported on this page, otherwise you may get to be the one that finds the non-obvious compatibility bug:
https://urldefense.com/v3/__https://www.ibm.com/docs/en/spectrum-scale?topic...
As a result, we typically don???t bother with any automatic updating of GPFS, because if we???re going to upgrade either GPFS or the kernel, we already know about it and do it on purpose. We also build the RPMs on one system, since the vast majority of our equipment does not have the full compiler set installed.
-- #BlackLivesMatter ____ || \\UTGERS, |---------------------------*O*--------------------------- ||_// the State | Ryan Novosielski - novosirj@rutgers.edu || \\ University | Sr. Technologist - 973/972.0922 (2x0922) ~*~ RBHS Campus || \\ of NJ | Office of Advanced Research Computing - MSB C630, Newark `'
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org https://urldefense.com/v3/__http://gpfsug.org/mailman/listinfo/gpfsug-discus...
-- -- Skylar Thompson (skylar2@u.washington.edu) -- Genome Sciences Department (UW Medicine), System Administrator -- Foege Building S046, (206)-685-7354 -- Pronouns: He/Him/His
We build the rpm and it gets installed if needed in a systemd script that puts it on and then restarts GPFS. Apps are dependent on a health check startup script. To use that auto build you have to have a compiler installed and we avoid that on production servers From: gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org<mailto:gpfsug-discuss-bounces@gpfsug.org>> on behalf of: David Magda <dmagda+gpfs@ee.torontomu.ca<mailto:dmagda+gpfs@ee.torontomu.ca>> Date: Friday, Mar 03, 2023 at 2:32 PM To: gpfsug-discuss@gpfsug.org <gpfsug-discuss@gpfsug.org<mailto:gpfsug-discuss@gpfsug.org>> Subject: [gpfsug-discuss] kernel updates and GPFS modules: manual, DKMS, cron, other? Hello, I am a new user of GPFS (Spectrum Scale) and would like to know if there is a ‘best practice’ on handling kernel updates on HPC clients. We are running Ubuntu 18.04 and 20.04 clients with 5.1.x, talking to RHEL storage servers, and would like to know how to handle re-compiling the client-side kernel modules. There is of course the “mmbuildgpl” utility: https://urldefense.com/v3/__https://www.ibm.com/docs/en/spectrum-scale/5.1.3... but how do folks invoke it? Manually, via cron at night on or reboot, via some kind of apt (dpkg-trigger(1)) / RPM hook? We have the “unattended-upgrades” package enabled, which only installs security-tagged updates by default, but sometimes this does include kernel updates, which may become active on the next reboot: https://urldefense.com/v3/__https://packages.ubuntu.com/search?keywords=unat... So is there a best practice? Has someone invented this wheel that I could leverage, or will I have to invent it myself? Thanks for any info. -- David Magda _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org https://urldefense.com/v3/__http://gpfsug.org/mailman/listinfo/gpfsug-discus...
participants (6)
-
Christof Schmitt -
David Magda -
Jonathan Buzzard -
Marcy.D.Cortes@wellsfargo.com -
Ryan Novosielski -
Skylar Thompson
