Partitioning for the SAP system is controlled by the files from the directory /usr/share/YaST2/include/sap-installation-wizard/. The following files can be used:
SAP NetWeaver or SAP S/4HANA Application Server Installation base_partitioning.xml
SAP HANA or SAP S/4HANA Database Server Installation hana_partitioning.xml
SAP HANA or SAP S/4HANA Database Server Installation on SAP BusinessOne-Certified Hardware hardware-specific partitioning file
The files will be chosen as defined in /etc/sap-installation-wizard.xml. Here, the content of the element partitioning is decisive.
If the installation is, for example, based on HA or a distributed database, no partitioning is needed. In this case, partitioning is set to NO and the file base_partitioning.xml is used.
NOTE: autoinst.xml Cannot Be Used Here
autoinst.xml is only used for the installation of the operating system. It cannot control the partitioning for the SAP system.
The files that control partitioning are AutoYaST control files that contain a partitioning section only. However, these files allow using several extensions to the AutoYaST format:
If the partitioning_defined tag is set to true, the partitioning will be performed without any user interaction.
By default, this is only used when creating SAP HANA file systems on systems certified for SAP HANA (such as from Dell, Fujitsu, HP, IBM, or Lenovo).
For every partition, you can specify the size_min tag. The size value can be given as a string in the format of RAM*N. This way you can specify how large the partition should minimally be (N times the size of the available memory (RAM)).
Creating a Custom SAP Partitioning Setup
The steps below illustrates how to create a partitioning setup for TREX. However, creating a partitioning setup for other applications works analogously.
In /usr/share/YaST2/include/sap-installation-wizard/, create a new XML file. Name it TREX_partitioning.xml, for example.
Copy the content of base_partitioning.xml to your new file and adapt the new file to your needs.
Finally, adapt /etc/sap-installation-wizard.xml to include your custom file. In the listitem for TREX, insert the following line:
IMPORTANT: Do Not Edit base_partitioning.xml
Do not edit base_partitioning.xml directly. With the next update, this file will be overwritten.
For more information about partitioning with AutoYaST, see AutoYaST Guide, Chapter Partitioning (https://www.suse.com/documentation/sles-12/).