quota
差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版前次修改 下次修改 | 前次修改 | ||
quota [2021/10/24 07:31] – fire | quota [2021/10/24 08:57] (目前版本) – fire | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 使用 quota 的錯誤訊息 ====== | ||
+ | |||
# touch / | # touch / | ||
# touch / | # touch / | ||
行 14: | 行 16: | ||
\\ | \\ | ||
---- | ---- | ||
+ | ===== 要移除 aquota files 才能作用? ===== | ||
+ | |||
+ | # modprobe quota< | ||
+ | modprobe: FATAL: Module quota not found in directory / | ||
+ | # modprobe quota_v2\\ | ||
+ | # modprobe quota_v< | ||
+ | modprobe: FATAL: Module quota_v not found in directory / | ||
+ | |||
# rm aquota.user aquota.group< | # rm aquota.user aquota.group< | ||
行 28: | 行 38: | ||
-rw-r----- 1 root root 0 Oct 24 15:05 quota.group | -rw-r----- 1 root root 0 Oct 24 15:05 quota.group | ||
-rw-r----- 1 root root 2621400 Oct 24 15:17 quota.user</ | -rw-r----- 1 root root 2621400 Oct 24 15:17 quota.user</ | ||
+ | ===== edquota 需要 aquota files ===== | ||
# edquota feuer< | # edquota feuer< | ||
edquota: Cannot open quotafile / | edquota: Cannot open quotafile / | ||
行 38: | 行 48: | ||
/ | / | ||
</ | </ | ||
+ | \\ | ||
+ | ---- | ||
+ | ===== 版本錯誤 ===== | ||
+ | |||
+ | # quotacheck -avugm< | ||
+ | quotacheck: Quota file / | ||
+ | quotacheck: Cannot guess format from filename on /dev/sda2. Please specify format on commandline. | ||
+ | quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.</ | ||
+ | |||
+ | # quotacheck -avugm -F vfsv0< | ||
+ | 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. | ||
+ | quotacheck: WARNING - Quota file / | ||
+ | |||
+ | # quotacheck -avugm -F vfsv1< | ||
+ | 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. | ||
+ | quotacheck: WARNING - Quota file / | ||
+ | |||
+ | # quotacheck -avugm -F vfsv2< | ||
+ | quotacheck: Unknown quota format: vfsv2 | ||
+ | Supported formats are: | ||
+ | vfsold - original quota format | ||
+ | vfsv0 - standard quota format | ||
+ | vfsv1 - quota format with 64-bit limits | ||
+ | rpc - use RPC calls | ||
+ | xfs - XFS quota format | ||
+ | </ | ||
+ | |||
+ | # quotacheck -avugm -F vfsold< | ||
+ | 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. | ||
+ | quotacheck: Scanning /dev/sda2 [/ | ||
+ | quotacheck: Old group file name could not been determined. Usage will not be subtracted. | ||
+ | quotacheck: Checked 1520051 directories and 4673449 files</ | ||
+ | \\ | ||
+ | ---- | ||
+ | === 不要任意使用 -m (man quotacheck : It is strongly recommended to run quotacheck with quotas turned off for the filesystem.) === | ||
+ | # quotacheck -a -F vfsold\\ | ||
+ | (another terminal)# mount |grep / | ||
+ | /dev/sda2 on / | ||
+ | </ | ||
+ | (After quotacheck )\\ | ||
+ | # mount |grep / | ||
+ | /dev/sda2 on / | ||
+ | </ | ||
+ | \\ | ||
+ | ---- | ||
+ | # edquota feuer< | ||
+ | Disk quotas for user feuer (uid 1000): | ||
+ | Filesystem | ||
+ | / | ||
+ | </ | ||
+ | # quotaon -av< | ||
+ | quotaon: 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. | ||
+ | /dev/sda2 [/ | ||
+ | # quotaon -av< | ||
+ | quotaon: 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. | ||
+ | quotaon: using / | ||
+ | \\ | ||
+ | ---- | ||
+ | === 測試 quota full === | ||
+ | # edquota feuer< | ||
+ | Disk quotas for user feuer (uid 1000): | ||
+ | Filesystem | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | $ cp -af GNU_icecat / | ||
+ | cp: 無法建立 '/ | ||
+ | |||
+ | === 使用磁區時,quota file 隨時被更新 === | ||
+ | |||
+ | # edquota feuer< | ||
+ | Disk quotas for user feuer (uid 1000): | ||
+ | Filesystem | ||
+ | / | ||
+ | </ | ||
+ | $ cp -af GNU_icecat / | ||
+ | sda2: write failed, user block limit reached. | ||
+ | cp: 寫入 '/ | ||
+ | cp: 寫入 '/ | ||
+ | cp: 寫入 '/ | ||
+ | cp: 寫入 '/ | ||
+ | # edquota feuer< | ||
+ | Disk quotas for user feuer (uid 1000): | ||
+ | Filesystem | ||
+ | / | ||
+ | \\ | ||
+ | ---- | ||
+ | # quotaoff -av< | ||
+ | quotaoff: 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. | ||
+ | /dev/sda2 [/ | ||
quota.1635060698.txt.gz · 上一次變更: 2021/10/24 07:31 由 fire