Skip to content

Commit

Permalink
Merge pull request sap-linuxlab#800 from marcelmamula/storage
Browse files Browse the repository at this point in the history
sap_storage_setup: Add support for HANA Scaleout NFS filesystems
  • Loading branch information
marcelmamula authored Jul 15, 2024
2 parents 34ef551 + f2df9d3 commit bd93292
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,16 @@
'dir_only': '/' + sap_storage_setup_sid,
}
]) %}
{%- endif %}
{%- if nfs_item.mountpoint | regex_replace('/$', '') == '/usr/sap/trans' %}
{%- elif nfs_item.mountpoint | regex_replace('/$', '') == '/usr/sap/trans' %}
{%- set add_trans = mount_list.extend([
{
'mount_src': nfs_item.nfs_path | regex_replace('/$', ''),
'mountpoint': nfs_item.mountpoint | regex_replace('/$', ''),
}
]) %}
{%- endif %}
{%- if nfs_item.mountpoint | regex_replace('/$', '') == '/usr/sap' -%}
{%- elif nfs_item.mountpoint | regex_replace('/$', '') == '/usr/sap' -%}
{%- for common in sap_storage_setup_nfs_dirs_usr_sap.all %}
{%- set add_all_usrsap = mount_list.extend([
{
Expand All @@ -77,6 +75,14 @@
{%- endfor %}
{%- endfor %}
{%- elif nfs_item.mountpoint.startswith('/hana/') %}
{%- set add_hana = mount_list.extend([
{
'mount_src': nfs_item.nfs_path | regex_replace('/$', ''),
'mountpoint': nfs_item.mountpoint | regex_replace('/$', ''),
}
]) %}
{%- endif %}
{{ mount_list }}
Expand Down

0 comments on commit bd93292

Please sign in to comment.