Skip to content

Commit edb69e9

Browse files
openzfs ontap
Signed-off-by: Hanwen <[email protected]>
1 parent 9122ddb commit edb69e9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cookbooks/aws-parallelcluster-config/recipes/fsx_mount.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@
2626
fsx_shared_dir = fsx_shared_dir_array[index]
2727
fsx_dns_name = fsx_dns_name_array[index]
2828
fsx_fs_type = fsx_fs_type_array[index]
29+
fsx_volume_junction_path = fsx_volume_junction_path_array[index]
30+
2931
# Path needs to be fully qualified, for example "shared/temp" becomes "/shared/temp"
3032
fsx_shared_dir = "/#{fsx_shared_dir}" unless fsx_shared_dir.start_with?('/')
33+
fsx_volume_junction_path = "/#{fsx_volume_junction_path}" unless fsx_volume_junction_path.start_with?('/')
3134

3235
# Create the shared directories
3336
directory fsx_shared_dir do
@@ -74,18 +77,17 @@
7477
when 'OPENZFS'
7578
# Mount FSx over NFS
7679
mount fsx_shared_dir do
77-
device "#{dns_name}:/fsx"
80+
device "#{dns_name}:#{fsx_volume_junction_path}"
7881
fstype 'nfs'
7982
options options 'nfsvers=4.2'
8083
action %i(mount enable)
8184
retries 10
8285
retry_delay 6
8386
end
8487
when 'ONTAP'
85-
fsx_volume_junction_path = fsx_volume_junction_path_array[index]
8688
# Mount FSx over NFS
8789
mount fsx_shared_dir do
88-
device "#{dns_name}:/#{fsx_volume_junction_path}"
90+
device "#{dns_name}:#{fsx_volume_junction_path}"
8991
fstype 'nfs'
9092
action %i(mount enable)
9193
retries 10

0 commit comments

Comments
 (0)