Bug#1009122: systemd-quotacheck : does not work on root file system

Laurent Bonnaud L.Bonnaud at laposte.net
Thu Apr 7 14:38:22 BST 2022


Package: systemd
Version: 247.3-7

Dear maintainers,

this system has quotas configured on the root file system.  I would like to check quotas, but I cannot do it while the system is running because there are active processes using the file system.

Therefore I tried to do it during boot, and added this parameter to the kernel command line:

   quotacheck.mode=force

Unfortunately it does not work and I get the following error:

# journalctl | grep quota
Apr 07 05:01:28 hostname kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.16.0-6-amd64 root=UUID=3d817555-5d7c-4e8e-8a65-c80a673dc806 ro quotacheck.mode=force quiet
Apr 07 05:01:28 hostname kernel: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.16.0-6-amd64 root=UUID=3d817555-5d7c-4e8e-8a65-c80a673dc806 ro quotacheck.mode=force quiet
Apr 07 05:01:28 hostname kernel: VFS: Disk quotas dquot_6.6.0
Apr 07 05:01:28 hostname kernel: EXT4-fs (sdb2): re-mounted. Opts: usrquota,grpquota. Quota mode: writeback.
Apr 07 05:01:29 hostname systemd-quotacheck[492]: quotacheck: Cannot remount filesystem mounted on / read-only so counted values might not be right.
Apr 07 05:01:29 hostname systemd-quotacheck[492]: Please stop all programs writing to filesystem or use -m flag to force checking.
Apr 07 05:01:29 hostname systemd-quotacheck[491]: (quotacheck) failed with exit status 1.
Apr 07 05:01:29 hostname systemd[1]: systemd-quotacheck.service: Main process exited, code=exited, status=1/FAILURE
Apr 07 05:01:29 hostname systemd[1]: systemd-quotacheck.service: Failed with result 'exit-code'.

Would it be possible for the systemd-quotacheck unit to be executed when the file system is still mounted read-only and before it is remounted read-write?

Thanks,

-- 
Laurent.



More information about the Pkg-systemd-maintainers mailing list