Translation

(itstool) path: sect2/indexterm
English
<primary>disk quotas</primary> <secondary>checking</secondary>
0/620
Context English Turkish (tr_TR) State
<prompt>#</prompt> <userinput>mdconfig -a -t vnode -o readonly -f /var/snapshot/snap -u 4</userinput>
<prompt>#</prompt> <userinput>mount -r /dev/md4 /mnt</userinput>
The frozen <filename>/var</filename> is now available through <filename>/mnt</filename>. Everything will initially be in the same state it was during the snapshot creation time. The only exception is that any earlier snapshots will appear as zero length files. To unmount the snapshot, use:
<prompt>#</prompt> <userinput>umount /mnt</userinput>
<prompt>#</prompt> <userinput>mdconfig -d -u 4</userinput>
For more information about <option>softupdates</option> and file system snapshots, including technical papers, visit Marshall Kirk McKusick's website at <uri xlink:href="http://www.mckusick.com/">http://www.mckusick.com/</uri>.
Disk Quotas
<primary>accounting</primary> <secondary>disk space</secondary>
Disk quotas can be used to limit the amount of disk space or the number of files a user or members of a group may allocate on a per-file system basis. This prevents one user or group of users from consuming all of the available disk space.
This section describes how to configure disk quotas for the <acronym>UFS</acronym> file system. To configure quotas on the <acronym>ZFS</acronym> file system, refer to <xref linkend="zfs-zfs-quota"/>
Enabling Disk Quotas
To determine if the FreeBSD kernel provides support for disk quotas:
<prompt>%</prompt> <userinput>sysctl kern.features.ufs_quota</userinput>
kern.features.ufs_quota: 1
In this example, the <literal>1</literal> indicates quota support. If the value is instead <literal>0</literal>, add the following line to a custom kernel configuration file and rebuild the kernel using the instructions in <xref linkend="kernelconfig"/>:
options QUOTA
Next, enable disk quotas in <filename>/etc/rc.conf</filename>:
quota_enable="YES"
<primary>disk quotas</primary> <secondary>checking</secondary>
Normally on bootup, the quota integrity of each file system is checked by <citerefentry><refentrytitle>quotacheck</refentrytitle><manvolnum>8</manvolnum></citerefentry>. This program insures that the data in the quota database properly reflects the data on the file system. This is a time consuming process that will significantly affect the time the system takes to boot. To skip this step, add this variable to <filename>/etc/rc.conf</filename>:
check_quotas="NO"
Finally, edit <filename>/etc/fstab</filename> to enable disk quotas on a per-file system basis. To enable per-user quotas on a file system, add <option>userquota</option> to the options field in the <filename>/etc/fstab</filename> entry for the file system to enable quotas on. For example:
/dev/da1s2g /home ufs rw,userquota 1 2
To enable group quotas, use <option>groupquota</option> instead. To enable both user and group quotas, separate the options with a comma:
/dev/da1s2g /home ufs rw,userquota,groupquota 1 2
By default, quota files are stored in the root directory of the file system as <filename>quota.user</filename> and <filename>quota.group</filename>. Refer to <citerefentry><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry> for more information. Specifying an alternate location for the quota files is not recommended.
Once the configuration is complete, reboot the system and <filename>/etc/rc</filename> will automatically run the appropriate commands to create the initial quota files for all of the quotas enabled in <filename>/etc/fstab</filename>.
In the normal course of operations, there should be no need to manually run <citerefentry><refentrytitle>quotacheck</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>quotaon</refentrytitle><manvolnum>8</manvolnum></citerefentry>, or <citerefentry><refentrytitle>quotaoff</refentrytitle><manvolnum>8</manvolnum></citerefentry>. However, one should read these manual pages to be familiar with their operation.
Setting Quota Limits
<primary>disk quotas</primary> <secondary>limits</secondary>
To verify that quotas are enabled, run:
<prompt>#</prompt> <userinput>quota -v</userinput>
There should be a one line summary of disk usage and current quota limits for each file system that quotas are enabled on.
The system is now ready to be assigned quota limits with <command>edquota</command>.

Loading…

No matching activity found.

Browse all component changes

Glossary

English Turkish (tr_TR)
boot disk önyükleme diski FreeBSD Doc
disk space disk alanı FreeBSD Doc
quotas disk kotası FreeBSD Doc

Source information

Source string comment
(itstool) path: sect2/indexterm
Source string location
book.translate.xml:36229 book.translate.xml:36363
String age
8 months ago
Source string age
a year ago
Translation file
books/tr_TR/handbook.po, string 6033