blob: 37027ca13c880fbc28024083650fc644794622b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Octopus Maintenance
## Slurm
Status of slurm
```
sinfo
sinfo -R
squeue
```
we have draining nodes, but no jobs running on them
Reviving draining node (as root)
```
scontrol
update NodeName=octopus05 State=DOWN Reason="undraining"
update NodeName=octopus05 State=RESUME
show node octopus05
```
Kill time can lead to drain state
```
scontrol show config | grep kill
UnkillableStepProgram = (null)
UnkillableStepTimeout = 60 sec
```
check valid configuration with `slurmd -C` and update nodes with
```
scontrol reconfigure
```
## Password management
So we create a script that can deploy files from octopus01 (head node). Unfortunately ids in passwd do no match, so we can't copy those yet.
See /etc/nodes for script and ssh files, sudoers (etc)
Basically the root user can copy across.
## Execute binaries on mounted devices
To avoid `./scratch/script.sh: Permission denied` on `device_file`:
- `sudo bash`
- `ls /scratch -l` to check where `/scratch` is
- `vim /etc/fstab`
- replace `noexec` with `exec` for `device_file`
- `mount -o remount [device_file]` to remount the partition with its new configuration.
Some notes:
root@tux09:~# mkdir -p /var/lib/nfs/statd
root@tux09:~# systemctl enable rpcbind
Synchronizing state of rpcbind.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable rpcbind
root@tux09:~# systemctl list-unit-files | grep -E 'rpc-statd.service'
rpc-statd.service static -
network-online.target
x-systemd.device-timeout=
10.0.0.110:/export/3T /mnt/3T nfs nofail,x-systemd.automount,x-systemd.requires=network-online.target,x-systemd.device-timeout=10 0 0
|