📖 ~1 min read
Table of contents
Symptom & Impact
`touch` fails with `ENOSPC` on `/var/spool` even though `df -k` shows plenty of free blocks.
Environment & Reproduction
AIX 7.3 host whose `/var/spool` was created with a small `nbpi` value years ago.
Root Cause Analysis
Per-inode density (`nbpi`) is too low; the filesystem is out of inodes despite free space.
Quick Triage
Run `df -kI /var/spool` to compare used vs free inodes and `lsfs -q /var/spool` for nbpi.
Step-by-Step Diagnosis
Identify small-file hotspots with `find /var/spool -xdev -type f | wc -l` and `du -ks`.

Solution – Primary Fix
Increase inodes via `chfs -a nbpi=2048 /var/spool` (requires fs grow and remount).
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Recreate `/var/spool` on a larger LV: `mklv`, `crfs -v jfs2 -a nbpi=2048` and restore data.
Verification & Acceptance Criteria
`df -kI /var/spool` shows free inodes >50% and `touch` succeeds.
Rollback Plan
Restore from `mksysb` or `tar` backup if the chfs operation corrupts metadata.
Prevention & Hardening
Set `nbpi=4096` (or smaller) for high-density spool filesystems at creation time.
Related Errors & Cross-Refs
Pairs with `J2_INODES_FULL` errpt and `sendmail`/`cron` queue stalls.
Related tutorial: View the step-by-step tutorial for aix-7.3.
View all aix-7.3 tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
IBM Docs: JFS2 `nbpi`, `chfs`, `crfs` filesystem sizing.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.