无法在 Web 服务器上启用配额

无法在 Web 服务器上启用配额

我正在尝试在我的网络服务器上启用配额,但遇到了障碍。

/etc/fstab看起来像这样:

/dev/mapper/VG_Foo-LV_ROOT_FOO /               ext4    errors=remount-ro,usrquota,grpquota 0       1
UUID=bc697229-7704-4fb1-9289-2b230dc5706e /boot           ext4    defaults        0       2
/dev/mapper/VG_FOO-LV_VAR_FOO /var            ext4    defaults        0       2
/dev/mapper/VG_FOO-LV_SWAP_FOO none            swap    sw              0       0

当我运行以下命令时出现以下错误:

#quotacheck -avugm
quotacheck: WARNING -  Quotafile //quota.user was probably truncated. 
Cannot save quota settings...
quotacheck: WARNING -  Quotafile //quota.group was probably truncated.
Cannot save quota settings...

#quotaon -avug
quotaon: Cannot find quota file on / [/dev/dm-0] to turn quotas on/off.
quotaon: Cannot find quota file on / [/dev/dm-0] to turn quotas on/off.

请帮忙

答案1

首次读取空配额文件时,quotacheck 给出这些错误是正常的。后续重新安装后检查时,此错误应该会消失。

相关内容