Popular Posts

Oct 3, 2016

Quota in Solaris 10 UFS

Quota in Solaris 10 UFS

1.    Copy /etc/vfstab configuration file
               cp -p /etc/vfstab /etc/vfstab-`date +%d-%b-%Y`

2.    Edit the /etc/vfstab file and add an "rq" in mount option for the FS you like to enable quota
               /dev/dsk/c0d0s0 /dev/rdsk/c0d0s0        /       ufs     1       no      rq

3.    Here we enabled quota in root "/" FS
Use the mount command and make available the quota option online
               mount -o remount,quota /

4.    Get into root directory of the respective FS ( here / is the FS )
               cd /

5.    Create a file name quotas and change the permission
               touch quotas
               chmod 600 quotas

6.    edquota is a editor command for updating quotas ( here the user is judi)
               edquota <user-name>
               edquota judi

7.    Update the soft and hard lmit values in blocks ( here given is 2 GB - 2097152 blocks
               fs / blocks (soft = 2097152, hard = 2097152) inodes (soft = 0, hard = 0)

8.    Enable the quota for "/" FS
               quotaon -v /

9.    Login to the user or switch that user and see
Now try to write data more than 2GB, It will not allow us to write
                 $ /usr/sbin/mkfile 1g file1
                 $ /usr/sbin/mkfile 800m file2
                 $ /usr/sbin/mkfile 500m file3
                                quota_ufs: over hard disk limit (pid 29154, uid 120, inum 298862, fs /)
                                file3: initialized 233783296 of 524288000 bytes: Disc quota exceeded
                $
                 $
                 $ du -sh .
                      2.0G   .
                 $

10.   The quota command display a user’s ufs file system disk quota and usage
               quota -v vivek

11.   The repquota command displays a summary of the disk usage and quotas for the specified ufs file systems such as /export/home, enter:
               repquota /export/home

12.   To display quota information of all users, type:
               repquota -va


We will get an error in /var/adm/messages
Oct  3 17:01:48 judi-test-01 genunix: [ID 800400 kern.notice] quota_ufs: over hard disk limit (pid 10644, uid 120, inum 298868, fs /)


~
how to enable quota in solaris 10
how to enable quota for a user in solaris 10
enable user quota in solairs 10 ufs
ufs user quota in solaris 10
~

No comments:

Post a Comment

Popular Posts