Setup SAP HANA server
- Check OS Version
- Setup hostname
- Setup swap space
- Create a mount point for SAP Application
- Install packages for SAP HANA
Check OS Version
Find OS Version:
cat /etc/os-releaseOutput
demo21:/dev/disk/by-id # cat /etc/os-releaseNAME="SLES"
VERSION="15"
VERSION_ID="15"
PRETTY_NAME="SUSE Linux Enterprise Server 15"
ID="sles"
ID_LIKE="suse"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:15"
demo21:/dev/disk/by-id #
Setup hostname
hostnamectl set-hostname demo21.xxx.com
Setup swap space
cat /proc/swapsmkdir -p /var/lib/swap
dd if=/dev/zero of=/var/lib/swap/swapfile bs=1M count=8192
mkswap /var/lib/swap/swapfile
swapon /var/lib/swap/swapfile
cat /proc/swaps
#/etc/fstab
/var/lib/swap/swapfile none swap defaults 0 0
Create a mount point for SAP Application
List disk
demo21:/dev/disk/by-id # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 200G 0 disk /hana/log
nvme1n1 259:1 0 400G 0 disk /hana/shared
nvme2n1 259:2 0 400G 0 disk /hana/data
nvme3n1 259:3 0 50G 0 disk
├─nvme3n1p1 259:4 0 300M 0 part /boot
└─nvme3n1p2 259:5 0 49.7G 0 part /
demo21:/dev/disk/by-id #
Create file system
mkfs.xfs /dev/nvme0n1
mkfs.xfs /dev/nvme1n1
mkfs.xfs /dev/nvme2n1
Find the disk and UUID
cd /dev/disk/by-uuid
lrwxrwxrwx 1 root root 13 May 15 03:32 cd8e2b68-f6aa-4bab-acf0-e099cdcd98e3 -> ../../nvme1n1
lrwxrwxrwx 1 root root 13 May 15 03:32 cda44fcf-9fa8-4e4f-aa8e-99d1a1d6842d -> ../../nvme2n1
lrwxrwxrwx 1 root root 13 May 15 03:32 3bc7f036-e08f-479b-a347-d681badf05e1 -> ../../nvme0n1
Create Mount point
mkdir -p /hana
mkdir -p /hana/log
mkdir -p /hana/data
mkdir -p /hana/shared
Update /etc/fstab file
The space- or tab-separated fields within each row (typically aligned in columns, as above, but this is not a requirement) must appear in a specific order, as follows:
- Device-spec – The device name, label, UUID, or other means of specifying the partition or data source this entry refers to.
- Mount-point – Where the contents of the device may be accessed after mounting; for swap partitions or files, this is set to none.
- fs-type – The type of file system to be mounted.
- Options – Options describing various other aspects of the file system, such as whether it is automatically mounted at boot, which users may mount or access it, whether it may be written to or only read from, its size, and so forth; the special option defaults refers to a predetermined set of options depending on the file system type.
- dump – A number indicating whether and how often the file system should be backed up by the dump program; a zero indicates the file system will never be automatically backed up.
- pass – A number indicating the order in which the fsck program will check the devices for errors at boot time; this is 1 for the root file system and either 2 (meaning check after root) or 0 (do not check) for all other devices.
#/etc/fstab
UUID=3bc7f036-e08f-479b-a347-d681badf05e1 /hana/shared xfs defaults 0 0
UUID=cda44fcf-9fa8-4e4f-aa8e-99d1a1d6842d /hana/log xfs defaults 0 0
UUID=cd8e2b68-f6aa-4bab-acf0-e099cdcd98e3 /hana/data xfs defaults 0 0
Mount disk to a server
mount -a
Install packages for SAP HANA
zypper install sapconf
zypper install wget