alxpanel

Customer storage

Where the hosting accounts live, and how to give them more room.

All hosting accounts live under /srv/hosting, on an XFS file system with project quotas. The quotas are what enforce each account's disk limit, so the panel cannot create accounts without them.

There are two ways to provide it.

The default: an image file

If nothing is mounted at /srv/hosting when you install, alxpanel creates /var/lib/alxpanel/hosting.img, formats it as XFS and mounts it there, with a line in /etc/fstab.

To see its size and how far it can grow on this server:

alxpanel-resize-storage

To grow it to 100 GB:

alxpanel-resize-storage 100G

The command refuses a size the disk underneath could not actually hold if customers filled it. alxpanel-resize-storage has the details.

Your own partition

For a production server with a dedicated disk or volume, mount it yourself before installing alxpanel. For example, with the volume at /dev/sdb1:

mkfs.xfs /dev/sdb1
mkdir -p /srv/hosting
echo '/dev/sdb1 /srv/hosting xfs defaults,prjquota 0 0' >> /etc/fstab
mount /srv/hosting

The prjquota option is required. The install sees the mount, checks that quotas are on, and uses it as it is. It never formats or remounts a partition of yours.

Resize such a partition with your own disk tools (xfs_growfs after growing the volume); alxpanel-resize-storage works on the image file only.

If the install says storage is not ready

/srv/hosting is not mounted with project quotas, so accounts cannot be created