For SAP HANA VMs, use:
- A minimum of four vdisks to create SAP HANA data volumes and log volumes respectively.
- The XFS file system.
- The Linux LVM, which is fully supported by SAP. Separate the LVM volume group for both the SAP HANA data volume and the log volume, and stripe it using the entire physical volume in that volume group. For more information, see SAP Note 597415: Logical volume manager (LVM) on Linux (access requires login credentials).
To create the file systems:
- Create log, data, and shared volume groups for SAP HANA:
vgcreate hanalog /dev/sd{b,c,d,e}
vgcreate hanadata /dev/sd{f,g,h,i}
vgcreate hanashared /dev/sdj
- Create logical volumes for log and data striped across four vdisks with a stripe size of 64K and readahead= none. Use all logical extents of a volume group for the logical volumes:
lvcreate -i 4 -I 64K -l <LogicalExtentsNumber> -r none -n vol hanalog
lvcreate -i 4 -I 64K -l <LogicalExtentsNumber> -r none -n vol hanadata
lvcreate –l <LogicalExtentsNumber> -r none -n vol hanashared
- Create XFS file systems on the log and data volumes:
mkfs.xfs /dev/mapper/hanalog-vol
mkfs.xfs /dev/mapper hanadata-vol
mkfs.xfs /dev/mapper hanashared-vol
- Create the /hana/log, /hana/data, and /hana/shared mount points:
mkdir -p /hana/{log,data,shared}
- When creating the VM:
- Set the VM NUMA affinity by running the following acli command from the host CVM. Ensure that the VMs are powered off first.
acli vm.update <vm name> num_vnuma_nodes=<number of virtual sockets>
Example:
acli vm.update SAP-HANA num_vnuma_nodes=1
- Change the memory allocation to the VMs by updating the VMs either from Nutanix Prism or from CVM acli.
acli vm.update <vm name> memory=<memory size>
- Power on the VM on host by using:
vm.on <vm_name> host=<Hypervisor/host IP>
- After you set the NUMA node affinity and assign the memory, verify the details by running the following command from the AHV host:
[root@NTNX-XXXXXX ~]# numastat qemu-kvm
Example of 2 sockets node with NUMA node affinity set for HANA VM -
Per-node process memory usage (in MBs)
PID Node 0 Node 1 Total
----------------- --------------- --------------- ---------------
7322 (qemu-kvm) 32813.17 4.78 32817.95
257682 (qemu-kvm) 15.34 184353.31 184368.64
----------------- --------------- --------------- ---------------
Total 32828.50 184358.09 217186.59
- Enable the VM metrics host daemon by following in the directions in SAP Note 2656072: Steps required to run virtualized SAP applications on Nutanix AHV (access requires login credentials).
- You can configure the SAP HANA file I/O layer with certain parameters to optimize file I/O operations per second for a specific storage solution and file system. The Linux XFS file system is used on all storage volumes for the SAP HANA persistence. These parameters can remain set to the default.