IBM AIX Administrator cheat sheet
IBM AIX Administrator · Keep the key ideas within reach.
AIX 7.2 System Administration
LVM hierarchy: physical volume (PV) -> volume group (VG) -> logical volume (LV) -> file system; a PV is divided into physical partitions (PPs), each typically 16 MB for AIX native VGs, and each LP maps to one or more PPs depending on the LV copy count.
Mirroring rule:
mklv -c 2gives two copies; total PPs consumed = LPs x copy count, so a mirrored LV needs twice the free PPs.lslv -m lvnameshows the LP-to-PP mapping across disks.Stale partitions occur when a disk is removed without
reducevg; clear them withsyncvg -p pvnameorvaryonvgdiagnostics.lsvg -p vgnamelists PV state (active/missing/stale).Rootvg mirroring:
extendvg rootvg hdisk1, thenmirrorvg rootvg, thenbosboot -ad /dev/hdisk1andbootlist -m normal hdisk0 hdisk1. Without bosboot the second disk is not bootable.File system types: JFS2 is default;
crfs -v jfs2 -g vg -m /mnt -a size=1Gcreates it.chfs -a size=+512M /mntgrows online; JFS2 can be shrunk withchfs -a size=-...only if it is unmounted and not a snapshot target.df -greports in GB blocks,df -ireports inodes. JFS2 dynamic inode allocation means inode exhaustion is rare;istatshows per-file inode detail andncheckmaps inodes back to paths.Boot sequence: POST -> bootlist device -> BLV (boot logical volume, hd5) -> /etc/inittab init phase.
bootinfo -bshows the last boot device;bosboot -arebuilds hd5 from /unix and /usr/lib/boot.Error logging:
errpt -ashows detailed entries,errpt -d Hhardware only,errclear 0clears all.errdemoncontrols the log;errloggerwrites a custom message into the log.lsvg -l vgnameshows LV types (jfs2, paging, sysdump, boot, jfslog). The JFS2 log is a logical volume (usually hd8) and must be at least 4 MB;logformreformats it only when unmounted.