This is an automated email from the ASF dual-hosted git repository.

ssulav pushed a commit to branch HDDS-14668
in repository https://gitbox.apache.org/repos/asf/ozone-installer.git

commit 16b0d435f1467a5252f24fb455d6d3553ba783af
Author: Soumitra Sulav <[email protected]>
AuthorDate: Thu Feb 19 22:24:05 2026 +0530

    Add multiple disk only for the datanode directory
---
 roles/ozone_config/templates/ozone-site.xml.j2 | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/roles/ozone_config/templates/ozone-site.xml.j2 
b/roles/ozone_config/templates/ozone-site.xml.j2
index f636c26..db8d458 100644
--- a/roles/ozone_config/templates/ozone-site.xml.j2
+++ b/roles/ozone_config/templates/ozone-site.xml.j2
@@ -17,6 +17,7 @@
 <configuration>
   <!-- Minimal Ozone site config; extend via group_vars if needed -->
 {% set _data_bases = data_base_list | default([data_base | 
default('/data/ozone')]) %}
+{% set _first_disk = _data_bases | first %}
 {% set _om_all = groups.get('om', [])| list %}
 {% set _scm_all = groups.get('scm', []) | list %}
 {% set _all_dn_count = groups.get('datanodes', []) | list | length %}
@@ -102,7 +103,7 @@
 {% endif %}
   <property>
     <name>ozone.metadata.dirs</name>
-    <value>{% for d in _data_bases %}{{ d }}/meta{% if not loop.last %},{% 
endif %}{% endfor %}</value>
+    <value>{{ _first_disk }}/meta</value>
   </property>
   <property>
     <name>hdds.datanode.dir</name>
@@ -110,23 +111,23 @@
   </property>
   <property>
     <name>dfs.container.ratis.datanode.storage.dir</name>
-    <value>{% for d in _data_bases %}{{ d }}/meta/dn{% if not loop.last %},{% 
endif %}{% endfor %}</value>
+    <value>{{ _first_disk }}/meta/dn</value>
   </property>
   <property>
     <name>ozone.om.db.dirs</name>
-    <value>{% for d in _data_bases %}{{ d }}/data/om{% if not loop.last %},{% 
endif %}{% endfor %}</value>
+    <value>{{ _first_disk }}/data/om</value>
   </property>
   <property>
     <name>ozone.om.ratis.snapshot.dir</name>
-    <value>{% for d in _data_bases %}{{ d }}/meta/om{% if not loop.last %},{% 
endif %}{% endfor %}</value>
+    <value>{{ _first_disk }}/meta/om</value>
   </property>
   <property>
     <name>ozone.scm.db.dirs</name>
-    <value>{% for d in _data_bases %}{{ d }}/data/scm{% if not loop.last %},{% 
endif %}{% endfor %}</value>
+    <value>{{ _first_disk }}/data/scm</value>
   </property>
   <property>
     <name>ozone.scm.datanode.id.dir</name>
-    <value>{% for d in _data_bases %}{{ d }}/meta/scm{% if not loop.last %},{% 
endif %}{% endfor %}</value>
+    <value>{{ _first_disk }}/meta/scm</value>
   </property>
   <property>
     <name>ozone.scm.skip.bootstrap.validation</name>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to