【Linux】Linux檔案系統管理7 磁碟配額管理
Linux檔案系統管理7
磁碟配額管理
作業系統:RHEL6.4 - 64位
1 掛載屬性中增加usrquota
編輯/etc/fstab 開啟/software 磁碟配額
[root@rhel64 ~]# vi /etc/fstab
2 重新掛載檔案系統
[root@rhel64 ~]# mount
[root@rhel64 ~]# mount -o remount /software
[root@rhel64 ~]# mount
3 quotacheck對檔案系統進行磁碟配額檢查
[root@rhel64 ~]# quotacheck -cum /software
[root@rhel64 ~]# ll /software/
4 啟用檔案系統磁碟配額
[root@rhel64 ~]# quotaon /software
5 編輯使用者磁碟配額限制
[root@rhel64 ~]# edquota tom
block單位是K
6 tom使用者使用檔案系統 並檢視磁碟配額
[root@rhel64 ~]# chmod a+w /software/
[tom@rhel64 software]$ mkdir tomdir
[tom@rhel64 software]$ touch tomfile
[tom@rhel64 software]$ quota
7 root使用者檢視磁碟配額
[root@rhel64 ~]# repquota -a
8 實驗1 檔案大小達到磁碟配額限制
[tom@rhel64 software]$ dd if=/dev/zero of=/software/tomfile2 bs=1M count=110
[tom@rhel64 software]$ ls -lh
[tom@rhel64 software]$ quota
9 實驗2 i節點數達到磁碟配額限制
[tom@rhel64 software]$ rm -rf tom*
[tom@rhel64 software]$ quota
[tom@rhel64 software]$ mkdir tomdir{1,2,3,4}-{1,2,3,4,5}-{1,2,3,4,5}
[tom@rhel64 software]$ quota
[tom@rhel64 software]$ mkdir tomdir
10 關閉磁碟配額
[root@rhel64 ~]# quotaoff /software
修改/etc/fstab 刪除usrquota
[root@rhel64 ~]# vi /etc/fstab
[root@rhel64 ~]# mount -o remount /software/
[root@rhel64 ~]# mount
呂星昊
2016.1.1
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29475508/viewspace-1969404/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【Solaris】Solaris檔案系統管理6 磁碟配額管理
- 『學了就忘』Linux檔案系統管理 — 63、磁碟配額介紹Linux
- 『學了就忘』Linux檔案系統管理 — 64、磁碟配額的配置步驟Linux
- 在Linux中,如何管理磁碟配額?Linux
- Linux磁碟管理與檔案系統(關於磁碟方面)Linux
- Linux 磁碟分割槽及檔案系統管理Linux
- Linux—磁碟配額,管理LVM邏輯卷LinuxLVM
- Linux系統磁碟管理Linux
- 【Linux基礎入門】Linux磁碟與檔案系統管理命令!Linux
- 磁碟管理與檔案系統
- Linux磁碟配額配置Linux
- 檔案系統操作與磁碟管理
- 【Linux】Linux檔案系統管理4 swap交換分割槽管理Linux
- Linux檔案系統-目錄和檔案管理Linux
- Linux磁碟配額Quota配置Linux
- Linux磁碟配額(Quota)(轉)Linux
- linux磁碟和檔案系統Linux
- 【Linux】Linux檔案系統管理5 lvm邏輯卷管理LinuxLVM
- Unix/Linux 系統自動化管理: 磁碟管理篇Linux
- Linux系統學習之檔案管理Linux
- 『學了就忘』Linux檔案系統管理 — 57、Linux檔案系統介紹Linux
- Linux使用者資訊查詢及磁碟與檔案系統管理命令!Linux
- Linux下的磁碟配額quotaLinux
- K8S-磁碟配額管理-整理K8S
- HP-UX磁碟管理與檔案系統UX
- linux磁碟管理Linux
- 【Linux】Linux檔案系統管理1 磁碟分割槽、格式化、掛載-卷標掛載Linux
- 【Linux】Linux檔案系統管理2 磁碟分割槽、格式化、掛載-UUID掛載LinuxUI
- 【Linux】Linux檔案系統管理6 線上擴充套件、收縮lvm檔案系統Linux套件LVM
- Linux檔案管理Linux
- 檔案管理[Linux]Linux
- 安裝及使用quota管理磁碟配額(轉)
- 【Linux】Linux檔案系統管理3 解除安裝正在被訪問的檔案系統 - fuserLinux
- LINUX(十四)Linux磁碟管理Linux
- Linux 下的檔案管理&管理系統中的輸出輸入Linux
- Linux 磁碟操作管理Linux
- ★Linux磁碟配額的使用 ★——牛刀小試Linux
- 【LINUX】磁碟格式化 建立檔案系統Linux