Advertisement
Guest User

Untitled

a guest
Feb 6th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. $ sudo apt-get install mysql-server
  2. $ sudo mysql
  3. > create user 'slurm'@'localhost' identified by '123456';
  4. > grant all on *.* TO 'slurm'@'localhost' identified by '123456' with grant option;
  5. > create database slurm_acct_db;
  6. > flush privileges;
  7. > exit
  8. $ sudo apt-get install slurmdbd
  9. $ vi /etc/slurm-llnl/slurmdbd.conf
  10. $ cat /etc/slurm-llnl/slurmdbd.conf
  11. AuthType=auth/munge
  12. AuthInfo=/var/run/munge/munge.socket.2
  13. DbdHost=localhost
  14. DebugLevel=debug5
  15. StorageHost=localhost
  16. StorageLoc=slurm_acct_db
  17. StoragePass=123456
  18. StorageType=accounting_storage/mysql
  19. StorageUser=slurm
  20. LogFile=/var/log/slurm-llnl/slurmdbd.log
  21. PidFile=/var/run/slurm-llnl/slurmdbd.pid
  22. SlurmUser=slurm
  23.  
  24. $ sudo systemctl start slurmdbd.service
  25. Job for slurmdbd.service failed because the control process exited with error code. See "systemctl status slurmdbd.service" and "journalctl -xe" for details.
  26. $ systemctl status slurmdbd.service
  27. ● slurmdbd.service - Slurm DBD accounting daemon
  28. Loaded: loaded (/lib/systemd/system/slurmdbd.service; enabled; vendor preset: enabled)
  29. Active: failed (Result: exit-code) since Di 2018-02-06 08:42:59 CET; 21s ago
  30. Process: 5881 ExecStart=/usr/sbin/slurmdbd $SLURMDBD_OPTIONS (code=exited, status=1/FAILURE)
  31.  
  32. Feb 06 08:42:59 riboslurm systemd[1]: Starting Slurm DBD accounting daemon...
  33. Feb 06 08:42:59 riboslurm systemd[1]: slurmdbd.service: Control process exited, code=exited status=1
  34. Feb 06 08:42:59 riboslurm systemd[1]: Failed to start Slurm DBD accounting daemon.
  35. Feb 06 08:42:59 riboslurm systemd[1]: slurmdbd.service: Unit entered failed state.
  36. Feb 06 08:42:59 riboslurm systemd[1]: slurmdbd.service: Failed with result 'exit-code'.
  37. $ journalctl -xe
  38. Feb 06 08:42:59 riboslurm systemd[1]: Starting Slurm DBD accounting daemon...
  39. -- Subject: Unit slurmdbd.service has begun start-up
  40. -- Defined-By: systemd
  41. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  42. --
  43. -- Unit slurmdbd.service has begun starting up.
  44. Feb 06 08:42:59 riboslurm systemd[1]: slurmdbd.service: Control process exited, code=exited status=1
  45. Feb 06 08:42:59 riboslurm systemd[1]: Failed to start Slurm DBD accounting daemon.
  46. -- Subject: Unit slurmdbd.service has failed
  47. -- Defined-By: systemd
  48. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  49. --
  50. -- Unit slurmdbd.service has failed.
  51. --
  52. -- The result is failed.
  53.  
  54. $ sudo -u slurm slurmdbd -Dvvv
  55. slurmdbd: error: mysql_query failed: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ignore table cluster_table modify `creation_time` int unsigned not null, modify ' at line 1
  56. alter ignore table cluster_table modify `creation_time` int unsigned not null, modify `mod_time` int unsigned default 0 not null, modify `deleted` tinyint default 0, modify `name` tinytext not null, modify `control_host` tinytext not null default '', modify `control_port` int unsigned not null default 0, modify `last_port` int unsigned not null default 0, modify `rpc_version` smallint unsigned not null default 0, modify `classification` smallint unsigned default 0, modify `dimensions` smallint unsigned default 1, modify `plugin_id_select` smallint unsigned default 0, modify `flags` int unsigned default 0, drop primary key, add primary key (name(20));
  57. slurmdbd: Accounting storage MYSQL plugin failed
  58. slurmdbd: error: Couldn't load specified plugin name for accounting_storage/mysql: Plugin init() callback failed
  59. slurmdbd: error: cannot create accounting_storage context for accounting_storage/mysql
  60. slurmdbd: fatal: Unable to initialize accounting_storage/mysql accounting storage plugin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement