systemd[1]: Failed to start Enable File System Quotas

Michael Biebl biebl at debian.org
Fri May 20 15:58:32 BST 2022


Am 20.05.22 um 13:44 schrieb Daniel Rode:
> Hello Michael and Michael,
> 
> I am facing some issue with using quota on Debian 11, namely I am
> getting the "Failed to start Enable File System Quotas" error on
> system boot. Initially I was using the quotacheck command to generate
> the aquota.user file, but this was giving me a warning message:
> 
> "quotacheck: Your kernel probably supports ext4 quota feature but you
> are using external quota files. Please switch your filesystem to use
> ext4 quota feature as external quota files on ext4 are deprecated."
> 
> So for this I have followed steps described in the "Chapter 36.
> Limiting storage space usage on ext4 with quotas" RedHat article [1]:
> 
> 1. Installed quota package (apt install quota).
> 2. Enabled quota support on the existing filesystem (tune2fs -O quota
> /dev/sdb1; tune2fs -Q usrquota /dev/sdb1)
> 3. Enabled quota enforcement by updating my /etc/fstab file
> (UUID=<uuid>   /home   ext4   defaults,errors=remount-ro,usrquota   0
>   2)
> 4. Set quota for individual user (edquota <username>)
> 
> It seems that all works fine (i.e. both soft and hard limits are
> obeyed and give warning and error respectively) but during the system
> boot I am getting the mentioned error.
> 
> debian:~# systemctl status quotaon
> * quotaon.service - Enable File System Quotas
>       Loaded: loaded (/lib/systemd/system/quotaon.service; static)
>       Active: failed (Result: exit-code) since Fri 2022-05-20 12:40:48
> CEST; 46min ago
>         Docs: man:quotaon(8)
>      Process: 618 ExecStart=/sbin/quotaon -aug (code=exited, status=1/FAILURE)
>     Main PID: 618 (code=exited, status=1/FAILURE)
>          CPU: 2ms
> 
> May 20 12:40:48 debian systemd[1]: Starting Enable File System Quotas...
> May 20 12:40:48 debian quotaon[618]: quotaon: using . on /dev/sdb1
> [/home]: File exists

I'm not too familiar with quota. But since you enabled it via tune2fs, 
maybe it is automatically enabled on mount and  there is no explicit 
need for quotaon.service?

What happens if you don't use tune2fs but only the "usrquota" mount 
parameter via /etc/fstab?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20220520/2f71aa5e/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list