diff --git a/cookbooks/aws-parallelcluster-environment/attributes/environment.rb b/cookbooks/aws-parallelcluster-environment/attributes/environment.rb index d65fb4116..0ada14a1c 100644 --- a/cookbooks/aws-parallelcluster-environment/attributes/environment.rb +++ b/cookbooks/aws-parallelcluster-environment/attributes/environment.rb @@ -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 diff --git a/cookbooks/aws-parallelcluster-environment/recipes/init/backup_internal_use_shared_data.rb b/cookbooks/aws-parallelcluster-environment/recipes/init/backup_internal_use_shared_data.rb index 6e472f7d1..66b4c797d 100644 --- a/cookbooks/aws-parallelcluster-environment/recipes/init/backup_internal_use_shared_data.rb +++ b/cookbooks/aws-parallelcluster-environment/recipes/init/backup_internal_use_shared_data.rb @@ -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'