跳至內容
Common Tech Share
使用者工具
登入
網站工具
搜尋
工具
顯示頁面
舊版
反向連結
最近更新
多媒體管理器
網站地圖
登入
>
最近更新
多媒體管理器
網站地圖
足跡:
quota
本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。
====== 使用 quota 的錯誤訊息 ====== # touch /mnt/WD30EFRX/quota.user /mnt/WD30EFRX/quota.group\\ # touch /mnt/WD30EFRX/aquota.user /mnt/WD30EFRX/aquota.group\\ /etc/fstab:<file>UUID=34ed2310-f731-48c4-bf02-27fe22ebedca /mnt/WD30EFRX/ ext4 rw,nosuid,nodev,noexec,nouser,noauto,async,quota,iversion,user_xattr,acl 0 0</file> # quotaon -a -v<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: Cannot find quota file on /mnt/WD30EFRX [/dev/sda2] to turn quotas on/off.</file> # edquota -f /mnt/WD30EFRX feuer<file> edquota: Cannot find any quota file to work on. edquota: Not all specified mountpoints are using quota.</file> # quotacheck -avugm<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.</file> \\ ---- ===== 要移除 aquota files 才能作用? ===== # modprobe quota<file> modprobe: FATAL: Module quota not found in directory /lib/modules/5.10.70-server-1.mga8</file> # modprobe quota_v2\\ # modprobe quota_v<file> modprobe: FATAL: Module quota_v not found in directory /lib/modules/5.10.70-server-1.mga8</file> # rm aquota.user aquota.group<file> rm: remove regular empty file 'aquota.user'? y rm: remove regular empty file 'aquota.group'? y</file> # quotacheck -avugm<file> 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 - Quotafile /mnt/WD30EFRX/quota.user was probably truncated. Cannot save quota settings... quotacheck: Scanning /dev/sda2 [/mnt/WD30EFRX] done quotacheck: Old group file name could not been determined. Usage will not be subtracted. quotacheck: Checked 1520051 directories and 4673448 files</file> # ls -l quota*<file> -rw-r----- 1 root root 0 Oct 24 15:05 quota.group -rw-r----- 1 root root 2621400 Oct 24 15:17 quota.user</file> ===== edquota 需要 aquota files ===== # edquota feuer<file> edquota: Cannot open quotafile /mnt/WD30EFRX/aquota.user: No such file or directory No filesystems with quota detected.</file> # ln -s quota.user aquota.user # edquota -f /mnt/WD30EFRX feuer<file> Disk quotas for user feuer (uid 1000): Filesystem blocks soft hard inodes soft hard /dev/sda2 5095332 0 0 16768 0 0 </file> \\ ---- ===== 版本錯誤 ===== # quotacheck -avugm<file> quotacheck: Quota file /mnt/WD30EFRX/aquota.user has corrupted headers. You have to specify quota format on command line. 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.</file> # quotacheck -avugm -F vfsv0<file> 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 /mnt/WD30EFRX/aquota.user has corrupted headers</file> # quotacheck -avugm -F vfsv1<file> 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 /mnt/WD30EFRX/aquota.user has corrupted headers</file> # quotacheck -avugm -F vfsv2<file> 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 </file> # quotacheck -avugm -F vfsold<file> 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 [/mnt/WD30EFRX] done quotacheck: Old group file name could not been determined. Usage will not be subtracted. 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.txt
· 上一次變更: 2021/10/24 08:57 由
fire
頁面工具
顯示頁面
舊版
反向連結
回到頁頂