Navigation
Records in this category
- How to install OpenSSH in AIX
- AIX HACMP Cluster tips
- Frequently asked questions on HACMP Cluster
- Configuring LVM Filesystems for Optimum Performance in AIX
- Very useful AIX commands
- Setting Up the Disk Quota System in AIX
- How to reduce the var or tmp filesystem
- AIX Command Crib Sheet
- Here is there error I get when I execute a basic topas command: # topas exec(): 0509-036 Cannot load program topas because of the following errors: 0509-130 Symbol resolution failed for /usr/lib/libperfstat.a(shr.o) because: 0509-136 Symbol ptx_get_rsetsyswait (number 81) is not exported from dependent module /unix. 0509-136 Symbol ptx_get_rsetsysinfo (number 83) is not exported from dependent module /unix. 0509-136 Symbol ptx_get_rsetsysstats (number 84) is not exported from dependent module /unix. 0509-026 System error: Error 0 0509-192 Examine .loader section symbols with the 'dump -Tv' command. Any reason what this would cause this error?
- how to find Get full path of a running process in AIX
- How to exclude group of files in TSM backup in AIX ?
- How to get history of command in AIX5.3
- Aix 5.2 increasing the paging space - How to?
- Unable to create spot from mksysb for one nim client ?
- How to change Parameters like SHMMAX in AIX
- How do i configure aix 5.3 to use a smtp relay server?
- How to check the status of services in AIX like Chargen , echo , finger , who
- How to create more space on a filesystem in AIX
- Anonymous FTP System Settings AIX (with POSIX compliant ftp account home directory)
- How to remove an LPAR through HMC via command line ? HMC is not accessible through GUI
- Tomcat 6.0.20 installation on AIX 5.3
- what will be impact of changing hard file size/soft file size unlimited in AIX for particular user? How to change hard file size/soft file size to unlimited at the shell prompt?
- Installing Apache Directory on AIX 5.3
- How do I create a user with admin rights in AIX 5.3
- From HMC How to get cpu and memory information of lpar ?
- Please explain the real life implication of shared processors on AIX
- How torepair the log on a jfs2 filesystem in AIX
- How to check Call Home facility from HMC for p570 and p595 lpars?
- What is the appropriate syntax to edit the 'DH' entry in sendmail.cf?
- How to customize login banner for telnet in AIX.
- How to download cfg2html script for aix and configure it ?
- Unix command to count number of files in a directory
- Physical Memory usage - AIX server
- commands to get system information for AIX
- create filesystem on lv and mount it at boot up
- How to change Default Gateway in AIX
- Script to copy files from one AIX server to another
- Script to compare two directories and copy files missing from A to B
- How to create Lpar on IBM pSeries Servers
- How to send multiple email attachments from AIX?
- How to enable SFTP logging in AIX?
- How to send Oracle audit logs to syslog
- How do you find out the wwpn of the hba currently plugged into an ibm system
- Laserjet network printer setup in AIX
- How to check if AIX 5.1. has a 64-bit kernel or 32-bit
- Installing of SSH on AIX 5.2
- How to STOP TELNET Service in AIX 5.2
- How to mount tape drive in AIX system
- How do I rename an existing file system in AIX 5.2
- Aix monitoring tools
- Search AIX for core file, omitting /proc
- How to copy select files based on date
- How to I check dsmcad port on AIX
- Automatic startup of a service on AIX
- How to do a OS backup in AIX
- How to break the rootvg mirror
Tags
Sticky FAQs
AIX
Setting Up the Disk Quota System in AIX
- Determine which file systems require quotas. Normally, you need to establish quotas only on those file systems that house users' home directories or other user files. The disk quota system can be used only with the journaled file system.
Note: Because many editors and system utilities create temporary files in the /tmp file system, it must be free of quotas.
- Use the chfs command to include the userquota and groupquota quota configuration attributes in the /etc/filesystems file. The following sample chfs command enables user quotas on the /home file system:
chfs -a "quota = userquota" /home
To enable both user and group quotas on the /home file system, enter:
chfs -a "quota = userquota,groupquota" /home
The corresponding entry in the /etc/filesystems is displayed as follows:
/home:
dev = /dev/hd1
vfs = jfs
log = /dev/hd8
mount = true
check = true
quota = userquota,groupquota
options = rw - Optionally, specify alternate disk quota file names. The file names quota.user and quota.group are the default names located at the root directories of the file systems enabled with quotas. You can specify alternate names or directories for these quota files with the userquota and groupquota attributes in the /etc/filesystems file.
The following sample chfs command establishes user and group quotas for the /home file system, and names the quota files myquota.user and myquota.group:
chfs -a "userquota = /home/myquota.user" -a "groupquota = /home
/myquota.group" /home -
The corresponding entry in /etc/filesystems is displayed as follows:
/home:
dev = /dev/hd1
vfs = jfs
log = /dev/hd8
mount = true
check = true
quota = userquota,groupquota
userquota = /home/myquota.user
groupquota = /home/myquota.group
options = rw - Mount the specified file systems, if not previously mounted.
- Set the desired quota limits for each user or group. Use the edquota command to create each user or group's soft and hard limits for allowable disk space and maximum number of files.
The following sample entry shows quota limits for user davec:
Quotas for user davec:
/home:blocks in use: 30, limits (soft = 100, hard = 150)
inodes in use: 73, limits (soft = 200, hard = 250)This user has used 30KB of the maximum 100KB of disk space. Of the maximum 200 files, davec has created 73. This user has buffers of 50KB of disk space and 50 files that can be allocated to temporary storage.
When establishing disk quotas for multiple users, use the -p flag with the edquota command to duplicate a user's quotas for another user.
To duplicate the quotas established for user davec for user nanc, type:
edquota -p davec nanc
- Enable the quota system with the quotaon command. The quotaon command enables quotas for a specified file system, or for all file systems with quotas (as indicated in the /etc/filesystems file) when used with the -a flag.
- Use the quotacheck command to check the consistency of the quota files against actual disk usage.
Note: It is recommended that you do this each time you first enable quotas on a file system and after you reboot the system.
To enable this check and to turn on quotas during system startup, add the following lines at the end of the /etc/rc file:
echo " Enabling filesystem quotas "
/usr/sbin/quotacheck -a
/usr/sbin/quotaon -a
Related entries:
- How to rebuild Solaris Device Tree
- Installing and Configuring MySQL on Solaris 10 with Service Management Facility
- Fedora 11 upgradation
- up2date tutorial
- RHEL5 Kickstart installation using HTTP
Last update: 2009-06-19 18:14
AuthorLuke Francis
Revision: 1.0
You cannot comment on this entry