Difference between revisions of "Bright:Setup user quotas"
Jump to navigation
Jump to search
(Created page with "* Lets apply user quotas to /home on a Bright headnode * Running Centos 6.5 * Applying qoutas to an EXT3 filesystem == Setup quotas within /etc/fstab == * Need to add <tt>us...") |
(No difference)
|
Revision as of 07:31, 19 December 2014
- Lets apply user quotas to /home on a Bright headnode
- Running Centos 6.5
- Applying qoutas to an EXT3 filesystem
Setup quotas within /etc/fstab
- Need to add usrquota,grpquota to the /etc/fstab file for the home dir mount point
- Lets check the home mount point (in this instance its just / for bright)
[root@trainning ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md126 426G 14G 392G 4% /
tmpfs 16G 84K 16G 1% /dev/shm
/dev/md125 496M 24M 447M 6% /boot- Lets update the /etc/fstab file with the parameters usrquota,grpquota for user mount points.
[root@trainning ~]# cat /etc/fstab
UUID=9586a511-9b87-48e1-8749-f5fa0ebabd01 / ext3 defaults,noatime,nodiratime,usrquota,grpquota 0 1
UUID=6b542d80-a228-47bc-9e39-831f37bc074c /boot ext2 defaults,noatime,nodiratime 0 2
UUID=5e9078a4-9975-4659-839f-9749ceb8ab02 swap swap defaults 0 0
proc /proc proc defaults,nosuid 0 0
sysfs /sys sysfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
tmpfs /dev/shm tmpfs defaults 0 0
# This section of this file was automatically generated by cmd. Do not edit manually!
# BEGIN AUTOGENERATED SECTION -- DO NOT REMOVE
# END AUTOGENERATED SECTION -- DO NOT REMOVE- Remount the filesystem and verify the args in mtab
[root@trainning ~]# mount -o remount /
[root@trainning ~]# cat /etc/mtab
/dev/md126 / ext3 rw,noatime,nodiratime,usrquota,grpquota 0 0
proc /proc proc rw,nosuid 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,mode=0620,gid=5 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/md125 /boot ext2 rw,noatime,nodiratime 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0
gvfs-fuse-daemon /root/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev 0 0