Linux磁盘配额具体配置
2011-07-03 15:41
295 查看
1.在/etc/fstab中需要设置磁盘限额的文件系统所在行的第四项(mount参数)中添加usrquota、grpquota参数
2.使用mount –o remount 需要限制的文件系统,将mount参数带入/etc/mtab中
3.执行quotacheck –auvg,在文件系统的根目录下建立aquota.user及aquota.group两文件
4. 使用edquota 用户名与edquota –g 组名编辑用户与组的磁盘限额
5. 用quotaon –auvg打开quota功能
具体步骤:
•首先在/etc/fstab中加入quota参数
/dev/hda7 /home ext3 defaults,usrquota,grpquota 0 0
usrquota :对用户作磁盘限额
grpquota :对组作磁盘限额
•使用remount将参数带入/etc/mtab中
[root @stationxx root] # mount –o remount /home
•建立磁盘限额配置文件
[root @stationxx root] # quotacheck –auvg /home
创建aquota.user及aquota.group两文件
•配置磁盘限额
[root @stationxx root] # edquota username
[root @stationxx root] # edquota –g groupname
•打开磁盘限额功能
[root @stationxx root] # quotaon –auvg
2.使用mount –o remount 需要限制的文件系统,将mount参数带入/etc/mtab中
3.执行quotacheck –auvg,在文件系统的根目录下建立aquota.user及aquota.group两文件
4. 使用edquota 用户名与edquota –g 组名编辑用户与组的磁盘限额
5. 用quotaon –auvg打开quota功能
具体步骤:
•首先在/etc/fstab中加入quota参数
/dev/hda7 /home ext3 defaults,usrquota,grpquota 0 0
usrquota :对用户作磁盘限额
grpquota :对组作磁盘限额
•使用remount将参数带入/etc/mtab中
[root @stationxx root] # mount –o remount /home
•建立磁盘限额配置文件
[root @stationxx root] # quotacheck –auvg /home
创建aquota.user及aquota.group两文件
•配置磁盘限额
[root @stationxx root] # edquota username
[root @stationxx root] # edquota –g groupname
•打开磁盘限额功能
[root @stationxx root] # quotaon –auvg
相关文章推荐
- Linux Apache PHP Oracle 安装配置(具体操作步骤)
- linux 磁盘管理三部曲——(3)mount挂载,-etc-fstab配置文件
- Linux(centos 6.5) 调用java脚本以及定时运行的脚本实例及配置文件具体解释
- centos7 xfs 文件系统配置quota 用户磁盘配额
- 为Linux主机用户设定特定的磁盘空间大小——Ubuntu12.04配置磁盘限额实战配置
- 每天一个知识点linux(九)磁盘配额
- 容易被忽视的Linux磁盘配额设置
- 在menuconfig中配置Linux内核裁剪的具体步骤(3)
- Linux下磁盘空间配额使用(quota)
- Linux配置raid1+0阵列磁盘
- 8.31_Linux高级文件系统管理之磁盘配额、RAID和LVM的使用
- LINUX mdadm配置raid5磁盘
- Linux平台上配置Oracle ASMLib和磁盘多路径
- linux磁盘配额
- linux高级文件系统管理概述:处理交换分区、设置文件系统配额、配置raid和逻辑卷
- Linux如何更改VirtualBox虚拟机的磁盘容量--gparted合并分区(不能扩展主分区不足点,需要配置LiveCD使用)
- Linux 磁盘配额设置
- linux实现磁盘配额设置
- linux 系统、文件、磁盘、网络配置管理,软件包