XFS Project Quota
Native kernel disk quotas using XFS project quotas.
XFS project quotas enforce per-directory disk limits at the kernel level using XFS's built-in project quota system. Each server's data directory is assigned an XFS project ID, and the quota is enforced natively - no FUSE overhead.
Requirements
- Host filesystem must be formatted as XFS
- XFS must be mounted with the
prjquotaoption - XFS tools:
xfsprogspackage
How It Works
Wings assigns a unique XFS project ID to each server's data directory and sets a project quota equal to the configured disk limit. The XFS kernel module tracks and enforces usage per project, covering all files within the directory tree.
Setup
1. Verify XFS Filesystem
findmnt -T /var/lib/pterodactylThe FSTYPE column must show xfs.
2. Enable Project Quotas at Mount Time
Edit /etc/fstab to add the prjquota mount option for the XFS partition:
/dev/sdX /var/lib/pterodactyl xfs defaults,prjquota 0 0Remount the filesystem (or reboot):
mount -o remount,prjquota /var/lib/pterodactylVerify quotas are active:
xfs_quota -x -c 'state' /var/lib/pterodactylThe output should show Project quota state on.
3. Configure Wings
In /etc/pterodactyl/config.yml:
system:
disk_limiter_mode: xfs_project_quotaRestart Wings after applying the change.
Wings automatically assigns project IDs and sets quotas when servers are created or updated. No manual per-server configuration is needed.