Translation

(itstool) path: sect1/para
English
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.
0/2390
Context English Turkish (tr_TR) State
Alternatively, use <citerefentry><refentrytitle>mksnap_ffs</refentrytitle><manvolnum>8</manvolnum></citerefentry> to create the snapshot:
<prompt>#</prompt> <userinput>mksnap_ffs /var /var/snapshot/snap</userinput>
One can find snapshot files on a file system, such as <filename>/var</filename>, using <citerefentry><refentrytitle>find</refentrytitle><manvolnum>1</manvolnum></citerefentry>:
<prompt>#</prompt> <userinput>find /var -flags snapshot</userinput>
Once a snapshot has been created, it has several uses:
Some administrators will use a snapshot file for backup purposes, because the snapshot can be transferred to <acronym>CD</acronym>s or tape.
The file system integrity checker, <citerefentry><refentrytitle>fsck</refentrytitle><manvolnum>8</manvolnum></citerefentry>, may be run on the snapshot. Assuming that the file system was clean when it was mounted, this should always provide a clean and unchanging result.
Running <citerefentry><refentrytitle>dump</refentrytitle><manvolnum>8</manvolnum></citerefentry> on the snapshot will produce a dump file that is consistent with the file system and the timestamp of the snapshot. <citerefentry><refentrytitle>dump</refentrytitle><manvolnum>8</manvolnum></citerefentry> can also take a snapshot, create a dump image, and then remove the snapshot in one command by using <option>-L</option>.
The snapshot can be mounted as a frozen image of the file system. To <citerefentry><refentrytitle>mount</refentrytitle><manvolnum>8</manvolnum></citerefentry> the snapshot <filename>/var/snapshot/snap</filename> run:
<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

Loading…

No matching activity found.

Browse all component changes

Glossary

English Turkish (tr_TR)
base system temel sistem FreeBSD Doc
boot disk önyükleme diski FreeBSD Doc
credential file kimlik bilgileri dosyası FreeBSD Doc
disk space disk alanı FreeBSD Doc
Extended (Ext) File System Genişletilmiş Dosya Sistemi FreeBSD Doc
file system dosya sistemi FreeBSD Doc
hard limit üst sınır FreeBSD Doc
host system ana bilgisayar sistemi FreeBSD Doc
log file sistem günlük dosyası FreeBSD Doc
native file system yerel dosya sistemi FreeBSD Doc
network file system ağ dosya sistemi FreeBSD Doc
operating system işletim sistemi FreeBSD Doc
plain text file düz metin dosyası FreeBSD Doc
quotas disk kotası FreeBSD Doc
root user kök kullanıcı FreeBSD Doc
soft limit alt sınır FreeBSD Doc
supported file system desteklenen dosya sistemi FreeBSD Doc
swap file getir götür kütüğü FreeBSD Doc
system administration Sistem Yönetimi FreeBSD Doc
system call sistem çağrısı FreeBSD Doc
system collapsing sistem çökmesi FreeBSD Doc
user kullanıcı FreeBSD Doc

Source information

Source string comment
(itstool) path: sect1/para
Source string location
book.translate.xml:36199
String age
8 months ago
Source string age
a year ago
Translation file
books/tr_TR/handbook.po, string 6024