AIX: The Enterprise Unix That Never Dies — A Complete Guide
IBM's AIX (Advanced Interactive eXecutive) has been powering mission-critical enterprise workloads since 1986. Banks, airlines, hospitals, and stock exchanges run AIX because it offers something most modern operating systems still struggle to match: near-zero downtime, hardware-level reliability, and decades of backward compatibility. This guide covers everything you need to know — from core concepts to advanced administration.
What Is AIX?
AIX is IBM's proprietary Unix operating system, built specifically for IBM Power Systems hardware. Unlike Linux or Windows, AIX was designed from the ground up for enterprise-grade availability. Its architecture centres around three pillars:
- Reliability — designed for 99.999% uptime ("five nines")
- Scalability — supports massive SMP configurations with hundreds of cores
- Security — RBAC, trusted execution, and fine-grained audit capabilities
The current version, AIX 7.3, runs exclusively on IBM POWER9 and POWER10 hardware and continues to receive regular Technology Levels (TL) and Service Packs (SP).
AIX vs Linux: Why Enterprises Still Choose AIX
| Feature | AIX | Linux |
|---|---|---|
| Live Kernel Patching | ✅ Full (no reboot required) | Partial (limited support) |
| Filesystem (JFS2) | ✅ Snapshots, compression, encryption built-in | Varies by distro |
| Logical Volume Manager | ✅ Advanced LVM (original LVM was based on AIX) | Standard LVM |
| Workload Partitioning (WPAR) | ✅ Native OS-level containers | Docker / LXC |
| Hardware Diagnostics | ✅ Deep integration with POWER hardware | Limited |
| Licensing Cost | High | Free (most distros) |
Core AIX Concepts Every Admin Must Know
1. ODM — Object Data Manager
AIX stores device, software, and system configuration in the ODM — a structured database, not flat
text files. Commands like lsdev, chdev, and mkdev interact
with ODM. This is why AIX configuration is more consistent and less error-prone than editing
/etc files manually.
# List all defined devices
lsdev -Cc disk
# Show attributes of a disk
lsattr -El hdisk0
2. LVM — Logical Volume Manager
AIX invented the LVM concept that Linux later adopted. The AIX LVM stack is: Physical Volume (PV) → Volume Group (VG) → Logical Volume (LV) → Filesystem
# List volume groups
lsvg
# Show details of rootvg
lsvg rootvg
# List logical volumes in rootvg
lsvg -l rootvg
# Extend a logical volume by 1 PP
extendlv lv00 1
3. JFS2 — Journaled File System 2
JFS2 is AIX's default filesystem. It supports:
- Online resizing (grow without unmounting)
- Inline compression
- Encrypted filesystems (EFS)
- Snapshots for backup without downtime
# Create a JFS2 filesystem
crfs -v jfs2 -g rootvg -a size=1G -m /data
# Mount it
mount /data
# Check filesystem usage
df -g /data
4. WPAR — Workload Partitions
WPARs are AIX's native container technology — isolated OS environments running within a single AIX instance, sharing the same kernel. They predate Docker by years.
# Create a WPAR
mkwpar -n mywpar
# Start it
startwpar mywpar
# List all WPARs
lswpar
# Enter a WPAR shell
clogin mywpar
Essential AIX Administration Commands
System Health Checks
# CPU and memory overview
lparstat -i
# Running processes with CPU/memory
topas
# Check system error log (critical!)
errpt -a | head -100
# Clear old error log entries
errclear 0
Network Configuration
# List network interfaces
ifconfig -a
# Configure an interface
chdev -l en0 -a netaddr=192.168.1.10 -a netmask=255.255.255.0
# Show routing table
netstat -rn
# Test connectivity
ping -c 4 8.8.8.8
User and Security Management
# Create a user
mkuser username
# Set password
passwd username
# Lock a user account
chuser account_locked=true username
# Show user attributes
lsuser -a home shell username
# List failed login attempts
last -f /etc/security/failedlogin
Software Management with installp
# List installed filesets
lslpp -l
# Install a fileset from media
installp -aXYgd /dev/cd0 bos.net.tcp.client
# Check fileset integrity
lppchk -v
# Show recent installs/updates
instfix -i | grep ML
AIX Performance Tuning Tips
1. Monitor with topas and nmon
topas is AIX's built-in real-time monitor. nmon (Nigel's Monitor) gives
deeper insight into CPU, memory, disk I/O, and network — and can log data for trend analysis.
# Launch topas
topas
# Run nmon and log to file every 30s for 1 hour (120 snapshots)
nmon -f -s 30 -c 120
2. Tune Virtual Memory
# Show current VM settings
vmo -a
# Tune page replacement (example)
vmo -o maxperm%=80 -o minperm%=20
3. CPU Affinity with LPAR
AIX runs inside LPARs (Logical Partitions) on POWER hardware. Use HMC (Hardware Management Console) to dynamically add CPU and memory to a running LPAR — no reboot required. This is one of AIX's biggest enterprise advantages.
AIX Backup Strategy: mksysb and savevg
AIX has two essential backup tools built in:
-
mksysb — creates a bootable backup of
rootvg(the OS volume group). You can restore a full system from this. - savevg — backs up any non-root volume group.
# Create a system backup to tape
mksysb -i /dev/rmt0
# Create a system backup to file
mksysb -i /backups/sysbackup.img
# Backup a data volume group
savevg -f /backups/datavg.img datavg
# Restore a volume group
restvg -f /backups/datavg.img
Common AIX Troubleshooting Scenarios
System Won't Boot
- Boot from AIX install media into maintenance mode
- Run
fsckon root filesystem:fsck /dev/hd4 - Check
/tmp/bosinstlogand/var/adm/ras/bootlogfor errors - Use
getrootfsto mount rootvg manually if needed
Disk Full on rootvg
# Find large files
find / -xdev -size +100M -ls 2>/dev/null
# Extend /tmp logical volume by 1 GB
chfs -a size=+1G /tmp
# Clean up old error log
errclear 0
# Remove old install files
rm -rf /usr/sys/inst.images/*
High CPU — Find the Culprit
# See top CPU consumers
ps aux | sort -rk 3 | head -20
# Detailed per-process stats
procstat <pid>
# Kill a runaway process
kill -9 <pid>
AIX Learning Resources
- IBM Documentation: ibm.com/docs/en/aix — the definitive reference
- AIX Toolbox for Open Source: rpm.rchland.ibm.com — gcc, vim, bash, git and more for AIX
- nmon for AIX: Free performance analysis tool from IBM
- POWER Up Skills: IBM's free AIX training on ibm.com/training
Conclusion
AIX isn't just a legacy system kept alive by inertia — it's an actively developed, technically superior platform for workloads where downtime is not an option. Its live kernel updates, advanced LVM, JFS2 filesystem, WPAR containers, and deep POWER hardware integration give it capabilities that Linux is still catching up to in many areas.
If you're an administrator stepping into an AIX environment for the first time, focus on mastering LVM, errpt, topas, and mksysb — those four tools will solve 80% of your day-to-day challenges.
And if you're evaluating AIX for a new deployment: the cost is high, but for true mission-critical workloads, nothing matches the IBM POWER + AIX stack for reliability.
Tags: AIX, IBM, Unix, System Administration, Enterprise, POWER Systems
0 Comments