From ed4ad69a99a18b10f505a80d4ae5a0a0406d8274 Mon Sep 17 00:00:00 2001 From: Hanwen Date: Wed, 23 Jun 2021 05:56:39 -0700 Subject: [PATCH] Remove FSx mount on access after reboot The options were added to avoid long cluster creation. However, during cluster creation, the FSx is mounted anyway by the cookbook because of `action %i[mount enable]`. So the mount on access only takes effect after instance reboot for CentOS and Amazon Linux. Removing these options make behavior more consistent between cluster creation and instance reboot, and across OSes. Signed-off-by: Hanwen --- CHANGELOG.md | 1 + recipes/fsx_mount.rb | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94dc9d523..ad9ca9a05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,7 @@ This file is used to list changes made in each version of the AWS ParallelCluste - yum-6.1.1 (from yum-5.1.0) - yum-epel-4.1.2 (from yum-epel-3.3.0) - Drop ``lightdm`` package install from Ubuntu 18.04 DCV installation process. +- Remove Lustre mount on access options from `fstab`. FSx Lustre will be mounted immediately after reboot. 2.10.4 ----- diff --git a/recipes/fsx_mount.rb b/recipes/fsx_mount.rb index 8e20d3a1f..70f8ec7ef 100644 --- a/recipes/fsx_mount.rb +++ b/recipes/fsx_mount.rb @@ -43,8 +43,6 @@ mountname = node['cfncluster']['cfn_fsx_mount_name'] mount_options = %w[defaults _netdev flock user_xattr noatime] - mount_options.concat(%w[noauto x-systemd.automount]) if node['init_package'] == 'systemd' - # Mount FSx over NFS mount fsx_shared_dir do device "#{dns_name}@tcp:/#{mountname}"