Skip to content

Commit fa10b8d

Browse files
committed
Soft mount of /opt/slurm directory
1 parent 20d803f commit fa10b8d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cookbooks/aws-parallelcluster-slurm/recipes/config/mount_slurm_dir.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,17 @@
1616
mount "#{node['cluster']['slurm']['install_dir']}" do
1717
device(lazy { "#{node['cluster']['head_node_private_ip']}:#{node['cluster']['slurm']['install_dir']}" })
1818
fstype "nfs"
19-
options node['cluster']['nfs']['hard_mount_options']
19+
options 'soft,timeo=20,retrans=3,_netdev,noatime'
2020
action %i(mount enable)
2121
retries 10
2222
retry_delay 6
2323
only_if { node['cluster']['shared_storage_type'] == 'ebs' }
2424
end
25+
26+
service slurmd stop
27+
pkill -9 slurmstepd
28+
umount /opt/slurm
29+
mount -o soft,timeo=20,retrans=3,_netdev,noatime 27.6.44.29:/opt/slurm
30+
mount | grep nfs
31+
service slurmd start
32+
ps aux | grep slurm

0 commit comments

Comments
 (0)