HANA system provisioning and installation
This chapter describes the installation and configuration of the SAP HANA system specific to a VMware setup using VMFS. Additional generic best practices can be found at SAP HANA on NetApp ASA Systems with Fibre Channel Protocol.
Storage configuration
To meet the storage performance KPIs defined by SAP for production HANA systems, dedicated LUNs and datastores must be configured for the data and log filesystems of the HANA system. Datastores must not be shared among multiple HANA systems or other workloads.
ONTAP tools for VMware (OTV) has been used to provision the three datastores for the HANA system VFS.
-
hana_data_VFS
-
hana_log_VFS
-
hana_shared_VFS
|
The datastore for the HANA shared filesystem can also be shared across multiple HANA systems. |
At the storage system three LUNs have been created by OTV.
VM disk configuration
Three new disks (VMDK) must be added to the HANA VM. Each disk within one of the datastores which have been created before as illustrated in the picture below.
When the three disk have been added to the VM, they can be listed at the OS level.
hana-8:~ # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 100G 0 disk ├─sda1 8:1 0 256M 0 part /boot/efi └─sda2 8:2 0 82G 0 part ├─system-root 254:0 0 60G 0 lvm /root │ /var │ /usr/local │ /tmp │ /srv │ /opt │ /home │ /boot/grub2/x86++_++64-efi │ /boot/grub2/i386-pc │ /.snapshots │ / └─system-swap 254:1 0 2G 0 lvm [SWAP] sdb 8:16 0 95G 0 disk sdc 8:32 0 95G 0 disk sdd 8:48 0 95G 0 disk sr0 11:0 1 17.1G 0 rom
VM parameter disk.EnableUUID
This parameter must be set accordingly, otherwise SnapCenter database auto discovery will fail.
-
Shutdown VM
-
Add new parameter “disk.EnableUUID” and set to “TRUE”
-
Start VM
File system preparation at Linux host
Creation of xfs filesystem on new disks
An xfs file system has been created on each of the three new disks.
hana-8:~ # mkfs.xfs /dev/sdb meta-data=/dev/sdb isize=512 agcount=4, agsize=6225920 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=1, sparse=1, rmapbt=1 = reflink=1 bigtime=1 inobtcount=0 nrext64=0 data = bsize=4096 blocks=24903680, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0, ftype=1 log =internal log bsize=4096 blocks=16384, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 Discarding blocks...Done. hana-8:~ # mkfs.xfs /dev/sdc meta-data=/dev/sdc isize=512 agcount=4, agsize=6225920 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=1, sparse=1, rmapbt=1 = reflink=1 bigtime=1 inobtcount=0 nrext64=0 data = bsize=4096 blocks=24903680, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0, ftype=1 log =internal log bsize=4096 blocks=16384, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 Discarding blocks...Done. hana-8:~ # mkfs.xfs /dev/sdd meta-data=/dev/sdd isize=512 agcount=4, agsize=6225920 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=1, sparse=1, rmapbt=1 = reflink=1 bigtime=1 inobtcount=0 nrext64=0 data = bsize=4096 blocks=24903680, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0, ftype=1 log =internal log bsize=4096 blocks=16384, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 Discarding blocks...Done. hana-8:~ #
Creation of mount points
hana-8:/ # mkdir -p /hana/data/VFS/mnt00001 hana-8:/ # mkdir -p /hana/log/VFS/mnt00001 hana-8:/ # mkdir -p /hana/shared hana-8:/ # chmod –R 777 /hana/log/SMA hana-8:/ # chmod –R 777 /hana/data/SMA hana-8:/ # chmod -R 777 /hana/shared
Configuration of /etc/fstab
hana-8:/ # cat /etc/fstab /dev/system/root / btrfs defaults 0 0 /dev/system/root /var btrfs subvol=/@/var 0 0 /dev/system/root /usr/local btrfs subvol=/@/usr/local 0 0 /dev/system/root /tmp btrfs subvol=/@/tmp 0 0 /dev/system/root /srv btrfs subvol=/@/srv 0 0 /dev/system/root /root btrfs subvol=/@/root 0 0 /dev/system/root /opt btrfs subvol=/@/opt 0 0 /dev/system/root /home btrfs subvol=/@/home 0 0 /dev/system/root /boot/grub2/x86++_++64-efi btrfs subvol=/@/boot/grub2/x86++_++64-efi 0 0 /dev/system/root /boot/grub2/i386-pc btrfs subvol=/@/boot/grub2/i386-pc 0 0 /dev/system/swap swap swap defaults 0 0 /dev/system/root /.snapshots btrfs subvol=/@/.snapshots 0 0 UUID=FB79-24DC /boot/efi vfat utf8 0 2 ### SAPCC_share 192.168.175.86:/sapcc_share /mnt/sapcc-share nfs rw,vers=3,hard,timeo=600,rsize=1048576,wsize=1048576,intr,noatime,nolock 0 0 /dev/sdb /hana/data/VFS/mnt00001 xfs relatime,inode64 0 0 /dev/sdc /hana/log/VFS/mnt00001 xfs relatime,inode64 0 0 /dev/sdd /hana/shared xfs defaults 0 0 hana-8:/ # hana-8:/ # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/system-root 60G 4.4G 54G 8% / devtmpfs 4.0M 0 4.0M 0% /dev tmpfs 49G 0 49G 0% /dev/shm efivarfs 256K 57K 195K 23% /sys/firmware/efi/efivars tmpfs 13G 18M 13G 1% /run tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-tmpfiles-setup-dev-early.service tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-sysctl.service tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-tmpfiles-setup-dev.service tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-vconsole-setup.service /dev/mapper/system-root 60G 4.4G 54G 8% /.snapshots /dev/mapper/system-root 60G 4.4G 54G 8% /boot/grub2/i386-pc /dev/mapper/system-root 60G 4.4G 54G 8% /boot/grub2/x86++_++64-efi /dev/mapper/system-root 60G 4.4G 54G 8% /home /dev/mapper/system-root 60G 4.4G 54G 8% /opt /dev/mapper/system-root 60G 4.4G 54G 8% /srv /dev/mapper/system-root 60G 4.4G 54G 8% /tmp /dev/mapper/system-root 60G 4.4G 54G 8% /usr/local /dev/mapper/system-root 60G 4.4G 54G 8% /var /dev/sda1 253M 5.9M 247M 3% /boot/efi /dev/mapper/system-root 60G 4.4G 54G 8% /root tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-tmpfiles-setup.service tmpfs 6.3G 72K 6.3G 1% /run/user/464 tmpfs 1.0M 0 1.0M 0% /run/credentials/getty@tty1.service tmpfs 6.3G 52K 6.3G 1% /run/user/0 192.168.175.86:/sapcc_share 1.4T 840G 586G 59% /mnt/sapcc-share /dev/sdb 95G 1.9G 94G 2% /hana/data/VFS/mnt00001 /dev/sdc 95G 1.9G 94G 2% /hana/log/VFS/mnt00001 /dev/sdd 95G 1.9G 94G 2% /hana/shared hana-8:/ #
HANA installation
The HANA installation can now be executed.
|
With the described configuration the /usr/sap/VFS directory will be on the OS VMDK. If /usr/sap/VFS should be stored in the shared VMDK, the hana shared disk could be partitioned to provide another file system for /usr/sap/VFS. |