Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
bce60b54
Commit
bce60b54
authored
15 years ago
by
Don Lipari
Browse files
Options
Downloads
Patches
Plain Diff
Merged change to doc/html/accounting.shtml submitted by Chuck.Clouston@Bull.com
parent
072101c2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/html/accounting.shtml
+89
-7
89 additions, 7 deletions
doc/html/accounting.shtml
with
89 additions
and
7 deletions
doc/html/accounting.shtml
+
89
−
7
View file @
bce60b54
...
...
@@ -367,14 +367,19 @@ with to store the job accounting data.</li>
<p>While SLURM will create the database automatically you will need to
make sure the StorageUser is given permissions in MySQL to do so.
As the <i>mysql</i> user grant privileges to that user using a
command such as
command such as
:</p>
<pre>
GRANT ALL ON StorageLoc.* TO 'StorageUser'@'StorageHost';
(The ticks are needed)
<p>GRANT ALL ON StorageLoc.* TO 'StorageUser'@'StorageHost';
(The ticks are needed)</p>
<p>(You need to be root to do this. Also in the info for password
usage there is a line that starts with '->'. This a continuation
prompt since the previous mysql statement did not end with a ';'. It
assumes that you wish to input more info.)</p>
live example:
<pre>
mysql@snowflake:~$ mysql
Welcome to the MySQL monitor.Commands end with ; or \g.
Your MySQL connection id is 538
...
...
@@ -392,9 +397,86 @@ mysql> grant all on slurm_acct_db.* TO 'slurm'@'localhost'
Query OK, 0 rows affected (0.00 sec)
</pre>
<p>This will grant user 'slurm' access to do what he needs to do on the
local host. This should be done before the SlurmDBD will work
properly.</p>
<p>This will grant user 'slurm' access to do what it needs to do on
the local host. This should be done before the SlurmDBD will work
properly. After you grant permission to the Slurm user in mysql then
you can start SlurmDBD and Slurm. You start SlurmDBD by typing
'slurmdbd'. You can verify that SlurmDBD is running by typing 'ps aux
| grep slurmdbd'. After SlurmDBD and the slurmctld start you can
verify that the database was created by using the mysql command 'show
databases;'. You can display the tables that slurm created in the
database by using the mysql command 'use slurm4_db;' and then 'show
tables;'.</p>
<p>Use the mysql 'show databases;' command</p>
<pre>
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| slurm4_db |
| test |
+--------------------+
3 rows in set (0.00 sec)
</pre>
<p>Select the database that you created.</p>
<pre>
mysql> use slurm4_db;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
</pre>
<p>Now do a mysql 'show tables;' command.</p>
<pre>
mysql> show tables;
+---------------------------+
| Tables_in_slurm4_db |
+---------------------------+
| acct_coord_table |
| acct_table |
| assoc_day_usage_table |
| assoc_hour_usage_table |
| assoc_month_usage_table |
| assoc_table |
| cluster_day_usage_table |
| cluster_event_table |
| cluster_hour_usage_table |
| cluster_month_usage_table |
| cluster_table |
| job_table |
| last_ran_table |
| qos_table |
| resv_table |
| step_table |
| suspend_table |
| table_defs_table |
| txn_table |
| user_table |
| wckey_day_usage_table |
| wckey_hour_usage_table |
| wckey_month_usage_table |
| wckey_table |
+---------------------------+
24 rows in set (0.02 sec)
mysql> quit
</pre>
<p>If the database is not created or SlurmDBD is not running you can
use the -v option when you start SlurmDBD to get more detailed
information.</p>
<h2>Tools</h2>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment