quota
差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版前次修改 下次修改 | 前次修改 | ||
quota [2021/10/24 07:46] – fire | quota [2021/10/24 08:57] (目前版本) – fire | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 使用 quota 的錯誤訊息 ====== | ||
+ | |||
# touch / | # touch / | ||
# touch / | # touch / | ||
行 14: | 行 16: | ||
\\ | \\ | ||
---- | ---- | ||
+ | ===== 要移除 aquota files 才能作用? ===== | ||
+ | |||
# modprobe quota< | # modprobe quota< | ||
modprobe: FATAL: Module quota not found in directory / | modprobe: FATAL: Module quota not found in directory / | ||
行 34: | 行 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 / | ||
行 46: | 行 50: | ||
\\ | \\ | ||
---- | ---- | ||
+ | ===== 版本錯誤 ===== | ||
+ | |||
# quotacheck -avugm< | # quotacheck -avugm< | ||
quotacheck: Quota file / | quotacheck: Quota file / | ||
行 74: | 行 80: | ||
quotacheck: Old group file name could not been determined. Usage will not be subtracted. | quotacheck: Old group file name could not been determined. Usage will not be subtracted. | ||
quotacheck: Checked 1520051 directories and 4673449 files</ | 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.1635061590.txt.gz · 上一次變更: 2021/10/24 07:46 由 fire