quota
差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版前次修改 下次修改 | 前次修改 | ||
quota [2021/10/24 07:51] – fire | quota [2021/10/24 08:57] (目前版本) – fire | ||
---|---|---|---|
行 80: | 行 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.1635061886.txt.gz · 上一次變更: 2021/10/24 07:51 由 fire