Linux Administration, Port Architecture & Instance Numbering
Master the Linux filesystem layout, core management CLI tools (HDB start/stop/info, sapcontrol, hdbsql), instance numbering formula (00-99), and complete network port matrix for SystemDB and tenant databases.
Core Learning Objectives
- 1.Decode the SAP HANA port calculation formula based on 2-digit Instance Number (NR).
- 2.Understand the filesystem hierarchy (/hana/shared, /hana/data, /hana/log, /usr/sap).
- 3.Execute database lifecycle commands safely from the Linux command line.
- 4.Use OS diagnostics (ss, lsof, df, free, top, journalctl) to triage service blockages.
Definition & Architectural Rationale
Technical Definition:
SAP HANA uses a strictly standardized port numbering scheme derived mathematically from the two-digit system instance number (00 to 99), ensuring that multiple SAP instances can coexist on a single server without port collisions.
Why this component exists:
In enterprise datacenters with firewalls, load balancers, and multi-tier SAP application architectures, understanding exact network ports and listening interfaces is essential for establishing client connectivity, configuring HSR, and diagnosing firewalled connections.
Internal Working & Mechanics
Architecture Flow Diagram
Linux Terminal Diagnostics & Operations
Terminal Standard Output (stdout):
HDB version: version: 2.00.070.00.1679941421 branch: fa/hana2sp07 compile time: 2023-03-27 19:45:00 ... HDB stop: Stopping 5 processes... hdbindexserver stopped. hdbcompileserver stopped. hdbpreprocessor stopped. hdbnameserver stopped. hdbdaemon stopped.
Terminal Standard Output (stdout):
tcp LISTEN 0 128 0.0.0.0:30013 0.0.0.0:* users:(("hdbnameserver",pid=4812,fd=32))
tcp LISTEN 0 128 0.0.0.0:30015 0.0.0.0:* users:(("hdbindexserver",pid=4890,fd=45))Terminal Standard Output (stdout):
Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/vg_data-lv_data xfs 1.5T 620G 880G 42% /hana/data /dev/mapper/vg_log-lv_log xfs 512G 85G 427G 17% /hana/log /dev/mapper/vg_shared-lv_shared xfs 500G 110G 390G 22% /hana/shared /dev/mapper/vg_root-lv_usrsap xfs 80G 24G 56G 30% /usr/sap
Troubleshooting & Root Cause Analysis
Production Best Practices & Operational Risks
Mandatory Best Practices
- Always execute database maintenance commands as the <sid>adm user, never as root!
- Never edit instance profile files under /usr/sap/<SID>/SYS/profile manually while services are running; use SAP tooling or parameter configuration files.