Page 184 - DCAP602_NETWORK_OPERATING_SYSTEMS_I
P. 184

Network Operating Systems-I




                    notes
                                       !
                                     Caution    The  file  structure  is  different  between  the  quota  implementations,  but  the
                                     principle is the same: the values of blocks and inodes can be limited.
                                   Only change the values of soft and hard. If not specified, the blocks are 1k. Users can check their
                                   quota by simply typing quota Root can check all quotas. Activate the user quota in the fstab and
                                   remount the partition. If the partition is busy, either all locked files must be closed, or the system
                                   must be rebooted.
                                   Creating disk quotas frequently isn’t enough. You also have to manage the process by reviewing
                                   the quota needs of each user and adjusting them according to the policies of your company.
                                   You’ll need to make Linux scan its hard disks periodically to check for exceeded quotas.
                                   The Syntax is
                                         quota [ -guv | q ]

                                         quota [ -uv | q ] user
                                         quota [ -gv | q ] group
                                   The Options are
                                   -g   Print group quotas for the group of which the user is a member.

                                   -u   Print user quotas (this is the default)
                                   -v   Verbose, will display quotas on filesystems where no storage is allocated.
                                   -q   Print a more terse message, containing only information on filesystems where usage is over
                                       quota.
                                   Specifying both -g and -u displays both the user quotas and the group quotas (for the user).
                                   Only the super-user may use the -u flag and the optional user argument to view the limits of
                                   other users. Non-super-users can use the the -g flag and optional group argument to view only
                                   the limits of groups of which they are members.
                                   The -q flag takes precedence over the -v flag.
                                   Quota reports the quotas of all the filesystems listed in /etc/fstab. For filesystems that are NFS-
                                   mounted a call to the rpc.rquotad on the server machine is performed to get the information. If
                                   quota exits with a non-zero status, one or more filesystems are over quota.

                                   Related Files are
                                   quota.user located at the filesystem root with user quotas
                                   quota.group located at the filesystem root with group quotas
                                   /etc/fstab to find filesystem names and locations



                                     Did u know?  How can you manage the process by reviewing the quota?

                                   10.1.5 enabling Disk Quotas

                                   In order to use disk quotas, you must first enable them. This process involves several steps:
                                   1.   Modifying /etc/fstab
                                   2.   Remounting the file system(s)





          178                              LoveLy professionaL university
   179   180   181   182   183   184   185   186   187   188   189