Daily Uses Linux Command Related to Hana

 

Daily Uses Linux Command Related to Hana

🖥️ Focus: OS-Level Preparation, Commands, Configuration, Troubleshooting

📦 Platforms: SUSE Linux Enterprise Server (SLES), Red Hat Enterprise Linux (RHEL)
                                                             



Section 1: Linux Basics for HANA (Q1–Q15)

  1. Which Linux distributions are supported for HANA?
    SUSE Linux Enterprise Server (SLES) and Red Hat Enterprise Linux (RHEL)
  2. How to check the OS version?
    cat /etc/os-release
  3. Which command shows the kernel version?
    uname -r
  4. Which user is used for SAP HANA installation?
    root
  5. What command shows CPU info?
    lscpu
  6. How to check RAM in Linux?
    free -g or cat /proc/meminfo
  7. Which command lists running processes?
    top or htop
  8. How to check disk space usage?
    df -h
  9. How to check free inodes?
    df -i
  10. How to check mounted filesystems?
    mount or cat /etc/fstab
  11. How to check current hostname?
    hostname or hostnamectl
  12. How to set hostname permanently?
    hostnamectl set-hostname <newname>
  13. Which command shows all network interfaces?
    ip addr or ifconfig
  14. How to check system uptime?
    uptime
  15. How to check OS architecture (32/64-bit)?
    uname -m

 Section 2: File System & Storage (Q16–Q30)

  1. What file system is recommended for /hana?
    XFS
  2. How to create a new XFS filesystem?
    mkfs.xfs /dev/sdX
  3. How to mount a file system?
    mount /dev/sdX /mnt/hana
  4. How to make a mount persistent?
    Add entry in /etc/fstab
  5. Which command checks filesystem usage?
    df -Th
  6. How to list block devices?
    lsblk
  7. What is LVM?
    Logical Volume Manager – manages disk volumes.
  8. How to extend a logical volume?
    lvextend -L +10G /dev/mapper/vg-lv → xfs_growfs /mountpoint
  9. Which command creates partitions?
    fdisk or parted
  10. How to check filesystem errors?
    fsck
  11. How to mount NFS share?
    mount -t nfs <server>:/share /mnt
  12. What is the purpose of /hana/data?
    Stores HANA main data files.
  13. Purpose of /hana/log?
    Stores redo logs for HANA transactions.
  14. Purpose of /hana/shared?
    Stores binaries, configuration, and shared files.
  15. How to create directories with specific permissions?
    mkdir -p /path && chmod 755 /path

Section 3: Package Management (Q31–Q45)

  1. What is the package manager in SLES?
    zypper
  2. How to install a package using zypper?
    zypper install <package>
  3. How to list installed packages?
    zypper se --installed-only
  4. How to update system packages?
    zypper update
  5. How to check repository status?
    zypper lr
  6. How to refresh repository metadata?
    zypper refresh
  7. What is the package manager in RHEL?
    yum or dnf
  8. How to install software in RHEL?
    yum install <package> or dnf install
  9. How to remove a package?
    zypper rm <package>
  10. How to install a local RPM file?
    rpm -ivh <file>.rpm
  11. How to list kernel packages?
    rpm -qa | grep kernel
  12. Which libraries are mandatory for HANA?
    glibc, libaio1, libstdc++, numactl, uuidd
  13. How to check if libaio is installed?
    rpm -qa | grep libaio
  14. How to install saptune?
    zypper install saptune
  15. Which SAP Note lists required packages for HANA?
    Check SAP Note 2772999 or equivalent for your OS.

 Section 4: System Tuning & Optimization (Q46–Q65)

  1. What is saptune used for?
    Applies SAP-recommended OS tuning.
  2. How to apply HANA tuning profile?
    saptune solution apply HANA
  3. How to start saptune service?
    systemctl start saptune
  4. How to enable saptune on boot?
    systemctl enable saptune
  5. How to verify if tuning applied?
    saptune note verify
  6. Which file contains kernel parameters?
    /etc/sysctl.conf
  7. How to apply sysctl changes immediately?
    sysctl -p
  8. What is the vm.nr_hugepages parameter?
    Defines hugepages for memory performance.
  9. How to check hugepages allocation?
    cat /proc/meminfo | grep Huge
  10. How to calculate required hugepages?
    Based on RAM size and page size (usually 2MB)
  11. What is the use of numactl?
    NUMA support for memory allocation optimization.
  12. How to install numactl?
    zypper install numactl
  13. How to check NUMA node memory?
    numactl --hardware
  14. How to check CPU affinity for a process?
    taskset -c -p <PID>
  15. Why is swap needed in HANA?
    As a safety buffer; recommended: 1x RAM.
  16. How to check swap usage?
    swapon -s and free -m
  17. How to increase swap space?
    Create a swap file → mkswap → swapon
  18. What’s the purpose of limits.conf?
    To control user resource limits (e.g., file descriptors)
  19. Where is limits.conf located?
    /etc/security/limits.conf
  20. How to apply user limits for SAP?
    Add entries for sidadm and sapadm in limits.conf

 Section 5: Networking, Services, & Logs (Q66–Q80)

  1. How to view open ports?
    netstat -tulnp or ss -tuln
  2. How to check DNS resolution?
    nslookup <hostname>
  3. How to restart network service?
    systemctl restart network (SLES/RHEL 7+)
  4. Which file configures hostname resolution?
    /etc/hosts
  5. How to disable firewall temporarily?
    systemctl stop firewalld
  6. How to check listening ports in HANA?
    netstat -anp | grep hdb
  7. How to configure static IP?
    Edit files in /etc/sysconfig/network/ or use nmtui
  8. Which service manages startup scripts?
    systemd
  9. How to enable service at boot?
    systemctl enable <service>
  10. How to disable a service?
    systemctl disable <service>
  11. Where are system logs stored?
    /var/log/
  12. What is the main system log file?
    /var/log/messages
  13. How to read journal logs?
    journalctl
  14. How to read SAP logs?
    /usr/sap/<SID>/HDB<instance>/trace
  15. How to check service status?
    systemctl status <service>

 Section 6: User Management & Permissions (Q81–Q95)

  1. How to create a new user?
    useradd <username>
  2. How to set a user password?
    passwd <username>
  3. How to switch users?
    su - <username>
  4. Which users are created during HANA install?
    sidadm and sapadm
  5. What is the purpose of sapadm?
    Admin user for SAP Host Agent.
  6. How to list groups of a user?
    groups <username>
  7. Where are user accounts stored?
    /etc/passwd
  8. How to give sudo privileges to a user?
    Add to /etc/sudoers
  9. How to view currently logged-in users?
    who or w
  10. How to check user history?
    cat ~/.bash_history
  11. What is chown used for?
    Change ownership of files.
  12. How to set file permissions?
    chmod 755 <file>
  13. What is umask?
    Default file permission setting for new files.
  14. How to change user shell?
    chsh -s /bin/bash <username>
  15. How to check user’s environment variables?
    env

 Section 7: Troubleshooting HANA on Linux (Q96–Q100)

  1. What causes HANA install failure on Linux?
    Missing dependencies, wrong OS version, disk issues.
  2. Where to find hdblcm logs?
    /var/tmp/ and logs/ under install dir.
  3. Which file controls memory limits?
    /etc/security/limits.conf
  4. How to troubleshoot failed systemd service?
    systemctl status <service> and journalctl -xe
  5. What to check if HANA doesn’t start?
    Check logs in /usr/sap/<SID>/HDB<instance>/trace, permissions, disk space, and services.

 

Best suggestions:-

Daily Use Linux Commands for SAP HANA Users and Admins

Top Linux Commands for Daily SAP HANA Operations

Most Used Linux Commands in SAP HANA Environments

Daily Linux Command List for Managing SAP HANA Systems

Linux Commands You Need Every Day While Working with SAP HANA

 


Share on Google Plus

About Pawar Live Study

Search Your Query in Search Box.

0 Comments:

Post a Comment

pawarsolution