| Summary: | Slurmdbd + mariadb upgrade assistance | ||
|---|---|---|---|
| Product: | Slurm | Reporter: | Bjørn-Helge Mevik <b.h.mevik> |
| Component: | Database | Assignee: | Oscar Hernández <oscar.hernandez> |
| Status: | RESOLVED INFOGIVEN | QA Contact: | |
| Severity: | 4 - Minor Issue | ||
| Priority: | --- | CC: | mcmullan, oscar.hernandez |
| Version: | 22.05.8 | ||
| Hardware: | Linux | ||
| OS: | Linux | ||
| Site: | Sigma2 Norway | Alineos Sites: | --- |
| Atos/Eviden Sites: | --- | Confidential Site: | --- |
| Coreweave sites: | --- | Cray Sites: | --- |
| DS9 clusters: | --- | HPCnow Sites: | --- |
| HPE Sites: | --- | IBM Sites: | --- |
| NOAA SIte: | --- | OCF Sites: | --- |
| Recursion Pharma Sites: | --- | SFW Sites: | --- |
| SNIC sites: | --- | Linux Distro: | --- |
| Machine Name: | CLE Version: | ||
| Version Fixed: | Target Release: | --- | |
| DevPrio: | --- | Emory-Cloud Sites: | --- |
|
Description
Bjørn-Helge Mevik
2023-04-23 11:44:14 MDT
Dear Bjørn-Helge, Let me first answer question B. Fortunately, the warning you are referring to was addressed in the release of 22.05.7 (commit 8c2ead9). Since you upgraded to 22.05.8, you are covered here, and I would not expect any problem. You did well on asking about that. In any case, if you are curious, the issues that this MariaBD problems triggered are discussed in bug 13562. Then, about your first question (B). We do suspect it might due to some fragmentation occurred in the transition from MariaDB 5.5 to 10.5. Since you directly restored the /var/lib/mysql into the new MariaDB version, you might be carrying over some drawbacks from the older MariaDB. To try to improve in space usage, we would suggest to re-create databases from scratch in version 10.5. To do so: 1 - Stop slurmdbd. 2 - Dump the Slurm database with Mysqldump. (You could backup the database if you consider it necessary, but I guess you still have the previous backup) 3 - Drop the database. 4 - Import the database from the Mysqldump in step 2. 5 - Start slurmdbd again. These database creation from scratch, should only take the necessary space to allocate the data, as well as benefit from the new defaults from MariaDB 10.5. Also, when searching around this topic, a colleague suggested to take a look at: https://stackoverflow.com/questions/3456159/how-to-shrink-purge-ibdata1-file-in-mysql It could be possible that Ibdata1 file is taking much space. Since you are on a fresh install, you might also be interested in doing what is suggested in the link above: Delete ibdata1 and ib_logfile0 before creating the database again. If following my suggested steps above: step 2 should dump all databases you might be interested (in case you have others than the slurm one) and step 3 should drop all databases except "mysql" and "performance_schema databases" as well as include the deletion of /var/lib/mysql/ibdata1 and /var/lib/mysql/ib_logfile* files. Hope that helps, let us know how things go if you decide to apply the suggested changes, Kind regards, Oscar (In reply to Oscar Hernández from comment #5) Dear Oscar, > Fortunately, the warning you are referring to was addressed in the release > of 22.05.7 (commit 8c2ead9). Since you upgraded to 22.05.8, you are covered > here, and I would not expect any problem. Very good! :) Thanks! > Then, about your first question (B). [...] > Hope that helps, let us know how things go if you decide to apply the > suggested changes, I followed the procedure - dumped the db, removed the files and loaded the db. It worked fine, and now the size is just 17 GiB. :) Again, thanks! Bjørn-Helge You are welcome! Glad that worked out. Closing as INFOGIVEN. |