Skip to content

Commit 1b0e56e

Browse files
Rexrexcsn
authored andcommitted
Update default NFS mount options
* Drop ``intr`` option, which is deprecated since kernel 2.6.25 * Drop ``noatime`` option, which is not relevant for NFS mount Signed-off-by: Rex <shuningc@amazon.com>
1 parent 2d99c22 commit 1b0e56e

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ This file is used to list changes made in each version of the AWS ParallelCluste
5757
- yum-6.1.1 (from yum-5.1.0)
5858
- yum-epel-4.1.2 (from yum-epel-3.3.0)
5959
- Drop ``lightdm`` package install from Ubuntu 18.04 DCV installation process.
60+
- Update default NFS options used by Compute nodes to mount shared filesystem from head node.
61+
- Drop ``intr`` option, which is deprecated since kernel 2.6.25
62+
- Drop ``noatime`` option, which is not relevant for NFS mount
6063

6164
2.10.4
6265
-----

attributes/default.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,9 @@
398398
end
399399
end
400400

401+
# Default NFS mount options
402+
default['cfncluster']['nfs']['hard_mount_options'] = 'hard,_netdev'
403+
401404
# Lustre defaults (for CentOS >=7.7 and Ubuntu)
402405
default['cfncluster']['lustre']['public_key'] = value_for_platform(
403406
'centos' => { '>=7.7' => "https://fsx-lustre-client-repo-public-keys.s3.amazonaws.com/fsx-rpm-public-key.asc" },

recipes/compute_base_config.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
mount raid_shared_dir do
4848
device(lazy { "#{node['cfncluster']['cfn_master_private_ip']}:#{raid_shared_dir}" })
4949
fstype 'nfs'
50-
options 'hard,intr,noatime,_netdev'
50+
options node['cfncluster']['nfs']['hard_mount_options']
5151
action %i[mount enable]
5252
retries 10
5353
retry_delay 6
@@ -58,7 +58,7 @@
5858
mount '/home' do
5959
device(lazy { "#{node['cfncluster']['cfn_master_private_ip']}:/home" })
6060
fstype 'nfs'
61-
options 'hard,intr,noatime,_netdev'
61+
options node['cfncluster']['nfs']['hard_mount_options']
6262
action %i[mount enable]
6363
retries 10
6464
retry_delay 6
@@ -68,7 +68,7 @@
6868
mount '/opt/intel' do
6969
device(lazy { "#{node['cfncluster']['cfn_master_private_ip']}:/opt/intel" })
7070
fstype 'nfs'
71-
options 'hard,intr,noatime,_netdev'
71+
options node['cfncluster']['nfs']['hard_mount_options']
7272
action %i[mount enable]
7373
retries 10
7474
retry_delay 6
@@ -110,7 +110,7 @@
110110
mount dirname do
111111
device(lazy { "#{node['cfncluster']['cfn_master_private_ip']}:#{dirname}" })
112112
fstype 'nfs'
113-
options 'hard,intr,noatime,_netdev'
113+
options node['cfncluster']['nfs']['hard_mount_options']
114114
action %i[mount enable]
115115
retries 10
116116
retry_delay 6

recipes/compute_sge_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
mount '/opt/sge' do
2020
device(lazy { "#{node['cfncluster']['cfn_master_private_ip']}:/opt/sge" })
2121
fstype "nfs"
22-
options 'hard,intr,noatime,_netdev'
22+
options node['cfncluster']['nfs']['hard_mount_options']
2323
action %i[mount enable]
2424
retries 10
2525
retry_delay 6

recipes/compute_slurm_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
mount '/opt/slurm' do
3030
device(lazy { "#{node['cfncluster']['cfn_master_private_ip']}:/opt/slurm" })
3131
fstype "nfs"
32-
options 'hard,intr,noatime,_netdev'
32+
options node['cfncluster']['nfs']['hard_mount_options']
3333
action %i[mount enable]
3434
retries 10
3535
retry_delay 6

0 commit comments

Comments
 (0)