Skip to content

Commit 89958d7

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

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 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.nil? or fsx_volume_junction_path.start_with?('/')
3134

3235
# Create the shared directories
3336
directory fsx_shared_dir do
@@ -74,19 +77,22 @@
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'
82+
dump 0
83+
pass 0
7984
options options 'nfsvers=4.2'
8085
action %i(mount enable)
8186
retries 10
8287
retry_delay 6
8388
end
8489
when 'ONTAP'
85-
fsx_volume_junction_path = fsx_volume_junction_path_array[index]
8690
# Mount FSx over NFS
8791
mount fsx_shared_dir do
88-
device "#{dns_name}:/#{fsx_volume_junction_path}"
92+
device "#{dns_name}:#{fsx_volume_junction_path}"
8993
fstype 'nfs'
94+
dump 0
95+
pass 0
9096
action %i(mount enable)
9197
retries 10
9298
retry_delay 6

0 commit comments

Comments
 (0)