Skip to content

Commit

Permalink
Avoid /opt/intel when backing up, restoring, and mounting fs mount po…
Browse files Browse the repository at this point in the history
…ints on arm instances
  • Loading branch information
dreambeyondorange committed May 1, 2024
1 parent 44b2a39 commit 99d15f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@
# Since this is a shared directory, it needs to be defined here first instead of in the dependent cookbook for slurm
default['cluster']['slurm']['install_dir'] = '/opt/slurm'

default['cluster']['internal_shared_dirs'] = [node['cluster']['shared_dir'], node['cluster']['shared_dir_login_nodes'], node['cluster']['slurm']['install_dir'], "/opt/intel"]
default['cluster']['internal_shared_dirs'] = if x86_instance?
[node['cluster']['shared_dir'], node['cluster']['shared_dir_login_nodes'], node['cluster']['slurm']['install_dir'], "/opt/intel"]
else
[node['cluster']['shared_dir'], node['cluster']['shared_dir_login_nodes'], node['cluster']['slurm']['install_dir']]
end

default['cluster']['internal_initial_shared_dir'] = "#{node['cluster']['base_dir']}/init_shared"

default['cluster']['head_node_private_ip'] = nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# This is necessary to preserve any data in these directories that was
# generated during the build of ParallelCluster AMIs after converting to
# shared storage
Chef::Log.info("Backup internal dirs #{node['cluster']['internal_shared_dirs']}")
node['cluster']['internal_shared_dirs'].each do |dir|
bash "Backup #{dir}" do
user 'root'
Expand Down

0 comments on commit 99d15f1

Please sign in to comment.