Skip to content

Commit 858ae01

Browse files
MoteHuesjpb
andauthored
Apply suggestions from code review
Co-authored-by: Steve Brasier <[email protected]>
1 parent d5d0a71 commit 858ae01

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

docs/filesystems.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,42 +30,47 @@ Once this exists, create a share using credentials for the Slurm project. An acc
3030
To mount shares onto hosts in a group, add them to the `manila` group.
3131

3232
```ini
33-
[manila:children]
33+
# environments/site/inventory/groups:
34+
[manila:children]:
3435
login
3536
compute
3637
```
3738

3839
Set the version of Ceph which is running on the system.
3940

4041
```yaml
42+
# environments/site/inventory/group_vars/manila.yml:
4143
os_manila_mount_ceph_version: "18.2.4"
4244
```
4345
44-
Define the list of shares to be mounted, and the paths to mount them to. See the [stackhpc.os-manila-mount role](https://github.com/stackhpc/ansible-role-os-manila-mount) for further configuration options.
46+
Define the list of shares to be mounted, and the paths to mount them to. The example below parameterises the share name using the environment name. See the [stackhpc.os-manila-mount role](https://github.com/stackhpc/ansible-role-os-manila-mount) for further configuration options.
4547
4648
```yaml
49+
# environments/site/inventory/group_vars/manila.yml:
4750
os_manila_mount_shares:
48-
- share_name: slurm-production-scratch
51+
- share_name: "slurm-{{ appliances_environment_name }}-scratch"
4952
mount_path: /scratch
5053
```
5154
5255
### Shared home directory
5356
5457
By default, the Slurm appliance configures the control node as an NFS server and exports a directory which is mounted on the other cluster nodes as `/home`. When using Manila + CephFS for the home directory instead, this will need to be disabled. To do this, set the tf var `home_volume_provisioning` to `None`.
5558

56-
The `basic_users_homedir_server_path` home directory will need to be updated to point to this new shared directory.
59+
Some `basic_users_homedir_*` parameters need overriding as the provided defaults are only satisfactory for the default root-squashed NFS share:
5760

5861
```yaml
62+
# environments/site/inventory/group_vars/all/basic_users.yml:
5963
basic_users_homedir_server: "{{ groups['login'] | first }}" # if not mounting /home on control node
6064
basic_users_homedir_server_path: /home
6165
```
6266

6367
Finally, add the home directory to the list of shares (the share should be already created in OpenStack).
6468

6569
```yaml
70+
# environments/site/inventory/group_vars/all/manila.yml:
6671
os_manila_mount_shares:
67-
- share_name: slurm-production-scratch
72+
- share_name: "slurm-{{ appliances_environment_name }}-scratch"
6873
mount_path: /scratch
69-
- share_name: slurm-production-home
74+
- share_name: "slurm-{{ appliances_environment_name }}-home"
7075
mount_path: /home
7176
```

0 commit comments

Comments
 (0)