使用者工具

網站工具


quota

差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版前次修改
下次修改
前次修改
quota [2021/10/24 07:51] firequota [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</file> quotacheck: Checked 1520051 directories and 4673449 files</file>
 +\\
 +----
 +=== 不要任意使用 -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 /mnt/WD30EFRX<file>
 +/dev/sda2 on /mnt/WD30EFRX type ext4 (ro,relatime,quota,usrquota)
 +</file>
 +(After quotacheck )\\
 +# mount |grep /mnt/WD30EFRX<file>
 +/dev/sda2 on /mnt/WD30EFRX type ext4 (rw,relatime,quota,usrquota)
 +</file>
 +\\
 +----
 +# edquota feuer<file>
 +Disk quotas for user feuer (uid 1000):
 +  Filesystem                   blocks       soft       hard     inodes     soft     hard
 +  /dev/sda2                   5095332    5100000    5105000      16768        0        0
 +</file>
 +# quotaon -av<file>
 +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 [/mnt/WD30EFRX]: user quotas turned on</file>
 +# quotaon -av<file>
 +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 /mnt/WD30EFRX/quota.user on /dev/sda2 [/mnt/WD30EFRX]: Device or resource busy</file>
 +\\
 +----
 +=== 測試 quota full ===
 +# edquota feuer<file>
 +Disk quotas for user feuer (uid 1000):
 +  Filesystem                   blocks       soft       hard     inodes     soft     hard
 +  /dev/sda2                   5105000    5095342    5105000      16896        0        0
 +</file>
 +
 +$ cp -af GNU_icecat /mnt/WD30EFRX/tmp/feuer-tmp/<file>
 +cp: 無法建立 '/mnt/WD30EFRX/tmp/feuer-tmp/GNU_icecat' 目錄: 磁碟配額已滿</file>
 +
 +=== 使用磁區時,quota file 隨時被更新 ===
 +
 +# edquota feuer<file>
 +Disk quotas for user feuer (uid 1000):
 +  Filesystem                   blocks       soft       hard     inodes     soft     hard
 +  /dev/sda2                   5105000    5205000    5205000      16896        0        0
 +</file>
 +$ cp -af GNU_icecat /mnt/WD30EFRX/tmp/feuer-tmp/<file>
 +sda2: write failed, user block limit reached.
 +cp: 寫入 '/mnt/WD30EFRX/tmp/feuer-tmp/GNU_icecat/icecat-60.7.0-gnu1.tar.bz2' 時發生錯誤: 磁碟配額已滿
 +cp: 寫入 '/mnt/WD30EFRX/tmp/feuer-tmp/GNU_icecat/icecat-60.7.0-gnu1.tar.bz2.sig' 時發生錯誤: 磁碟配額已滿
 +cp: 寫入 '/mnt/WD30EFRX/tmp/feuer-tmp/GNU_icecat/icecat-60.7.0.en-US.gnulinux-x86_64.tar.bz2' 時發生錯誤: 磁碟配額已滿
 +cp: 寫入 '/mnt/WD30EFRX/tmp/feuer-tmp/GNU_icecat/icecat-60.7.0.en-US.gnulinux-x86_64.tar.bz2.sig' 時發生錯誤: 磁碟配額已滿</file>
 +# edquota feuer<file>
 +Disk quotas for user feuer (uid 1000):
 +  Filesystem                   blocks       soft       hard     inodes     soft     hard
 +  /dev/sda2                   5205000    5205000    5205000      16775        0        0</file>
 +\\
 +----
 +# quotaoff -av<file>
 +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 [/mnt/WD30EFRX]: user quotas turned off</file>
 +
  
quota.1635061886.txt.gz · 上一次變更: 2021/10/24 07:51 由 fire