PERFORCE change 150951 for review
Gabor Pali
pgj at FreeBSD.org
Sat Oct 4 12:25:15 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=150951
Change 150951 by pgj at kolbasz on 2008/10/04 12:25:03
Add Hungarian translation of chapter "File Systems Support" from Handbook
Affected files ...
.. //depot/projects/docproj_hu/doc/hu_HU.ISO8859-2/books/handbook/filesystems/chapter.sgml#2 edit
Differences ...
==== //depot/projects/docproj_hu/doc/hu_HU.ISO8859-2/books/handbook/filesystems/chapter.sgml#2 (text+ko) ====
@@ -4,8 +4,9 @@
-->
<!-- The FreeBSD Hungarian Documentation Project
+ Translated by: PALI, Gabor <pgj at FreeBSD.org>
%SOURCE% en_US.ISO8859-1/books/handbook/filesystems/chapter.sgml
- %SRCID% 1.2
+ %SRCID% 1.3
-->
<chapter id="filesystems" lang="hu">
@@ -14,460 +15,619 @@
<author>
<firstname>Tom</firstname>
<surname>Rhodes</surname>
- <contrib>Written by </contrib>
+ <contrib>Írta: </contrib>
</author>
</authorgroup>
</chapterinfo>
- <title>File Systems Support</title>
+ <title>Támogatott állományrendszerek</title>
<sect1 id="filesystems-synopsis">
- <title>Synopsis</title>
+ <title>Áttekintés</title>
- <indexterm><primary>File Systems</primary></indexterm>
+ <indexterm><primary>állományrendszerek</primary></indexterm>
<indexterm>
- <primary>File Systems Support</primary>
- <see>File Systems</see>
+ <primary>támogatott
+ állományrendszerek</primary>
+ <see>állományrendszerek</see>
</indexterm>
- <para>File systems are an integral part of any operating system.
- They allow for users to upload and store files, provide access
- to data, and of course, make hard drives useful. Different
- operating systems usually have one major aspect in common, that
- is their native file system. On &os; this file system is known
- as the Fast File System or <acronym>FFS</acronym> which is built
- on the original Unix™ File System, also known as
- <acronym>UFS</acronym>. This is the native file system on &os;
- which is placed on hard disks for access to data.</para>
+ <para>Az állományrendszerek szerves
+ részét képezik napjaink operációs
+ rendszereinek. Segítségükkel a
+ felhasználók adatokat tölthetnek fel és
+ tárolhatnak a számítógépen,
+ szabályozhatják a
+ hozzáférésüket, és
+ természetesen mûködtethetik a merevlemezeiket. A
+ különféle operációs rendszerekben
+ általában azért annyi közös, hogy
+ mindannyiukhoz tartozik egy natív, vagyis általuk
+ alapból ismert állományrendszer. A &os;
+ esetében ezt konkrétan a Fast File System vagy
+ röviden <acronym>FFS</acronym>, amely az eredeti Unix™
+ File System, vagy más néven <acronym>UFS</acronym>
+ megoldásain alapszik. A &os; tehát a merevlemezeken
+ ebben a natív állományrendszerben
+ tárol adatokat.</para>
- <para>&os; also supports a multitude of different file systems to
- provide support for accessing data from other operating systems
- locally, i.e. data stored on locally attached
- <acronym>USB</acronym> storage devices, flash drives, and hard
- disks. There is also support for some non-native file systems.
- These are file systems developed on other
- operating systems, like the &linux; Extended File System
- (<acronym>EXT</acronym>), and the &sun; Z File System
+ <para>A &os; természetesen ezen kívül még
+ ismer számos egyéb állományrendszert,
+ ezáltal képes adatokat olvasni más
+ operációs rendszerek részérõl is
+ kezelhetõ partíciókról,
+ például helyi
+ <acronym>USB</acronym>-eszközökrõl,
+ flashkártyákról és
+ merevlemezekrõl. Továbbá ismeri
+ néhány más operációs rendszer
+ natív állományrendszerét, mint
+ például a &linux; Extended File System
+ (<acronym>EXT</acronym>) vagy éppen a &sun; Z File System
(<acronym>ZFS</acronym>).</para>
- <para>There are different levels of support for the various file
- systems in &os;. Some will require a kernel module to be loaded,
- others may require a toolset to be installed. This chapter is
- designed to help users of &os; access other file systems on their
- systems, starting with the &sun; Z file
- system.</para>
+ <para>&os; alatt az egyes állományrendszerek ismerete
+ változó. Bizonyos esetekben elegendõ
+ csupán egy megfelelõ modul betöltése,
+ máskor viszont egy komplett eszközkészlet
+ segítségével tudunk velük dolgozni. Ez
+ a fejezet igyekszik a &sun;-féle Z
+ állományrendszerrel kezdõdõen bemutatni a
+ &os; felhasználói számára más
+ állományrendszerek használatát.</para>
- <para>After reading this chapter, you will know:</para>
+ <para>A fejezet elolvasása során
+ megismerjük:</para>
<itemizedlist>
<listitem>
- <para>The difference between native and supported file systems.</para>
+ <para>a natív és támogatott
+ állományrendszerek közti
+ különbségeket;</para>
</listitem>
<listitem>
- <para>What file systems are supported by &os;.</para>
+ <para>a &os; által ismert
+ állományrendszereket;</para>
</listitem>
<listitem>
- <para>How to enable, configure, access and make use of
- non-native file systems.</para>
+ <para>hogyan engedélyezzünk, állítsunk
+ be és érjünk el nem natív
+ állományrendszereket.</para>
</listitem>
</itemizedlist>
- <para>Before reading this chapter, you should:</para>
+ <para>A fejezet elolvasásához ajánlott:</para>
<itemizedlist>
<listitem>
- <para>Understand &unix; and &os; basics
- (<xref linkend="basics">).</para>
+ <para>a &unix; és &os; alapjainak ismerete (<xref
+ linkend="basics">);</para>
</listitem>
<listitem>
- <para>Be familiar with
- the basics of kernel configuration/compilation
- (<xref linkend="kernelconfig">).</para>
+ <para>a rendszermag konfigurációjának
+ és fordításának alapvetõ
+ fogásainak ismerete (<xref
+ linkend="kernelconfig">);</para>
</listitem>
<listitem>
- <para>Feel comfortable installing third party software
- in &os; (<xref linkend="ports">).</para>
+ <para>a különbözõ külsõ
+ fejlesztésû szoftverek
+ telepítésének ismerete (<xref
+ linkend="ports">);</para>
</listitem>
<listitem>
- <para>Have some familiarity with disks, storage and
- device names in &os; (<xref linkend="disks">).</para>
+ <para>a lemezek és egyéb
+ tárolóeszközök, valamint a &os; alatt az
+ eszközök elnevezésének
+ minimális ismerete (<xref linkend="disks">).</para>
</listitem>
</itemizedlist>
- <!--
- Temporary warning to avoid listing experimental versions
- and production versions of FreeBSD with this technology.
- -->
<warning>
- <para>The <acronym>ZFS</acronym> feature is considered
- experimental. Some options may be lacking in functionality,
- other parts may not work at all. In time, this feature will
- be considered production ready and this documentation will be
- altered to fit that situation.</para>
+ <para>Jelenleg a <acronym>ZFS</acronym> támogatása
+ még nem tekinthetõ hétköznapi
+ használatra alkalmasnak. Ennek
+ következményeképpen bizonyos funkciók
+ nem megfelelõen vagy egyáltalán nem
+ mûködnek. Ahogy ez a támogatás
+ megbízhatóvá válik, úgy
+ fogjuk tovább finomítani a
+ dokumentációt.</para>
</warning>
</sect1>
<sect1 id="filesystems-zfs">
- <title>The Z File System</title>
+ <title>A Z állományrendszer</title>
- <para>The Z file system, developed by &sun;, is a new
- technology designed to use a pooled storage method. This means
- that space is only used as it is needed for data storage. It
- has also been designed for maximum data integrity, supporting
- data snapshots, multiple copies, and data checksums. A new
- data replication model, known as <acronym>RAID</acronym>-Z has
- been added. The <acronym>RAID</acronym>-Z model is similar
- to <acronym>RAID</acronym>5 but is designed to prevent data
- write corruption.</para>
+ <para>A &sun; Z állományrendszere egy új,
+ közös tárolási módszeren
+ nyugvó technológia. Ez annyit jelent a
+ gyakorlatban, hogy mindig csak annyi helyet foglal, amennyire az
+ adatoknak közvetlenül szüksége van.
+ Emellett úgy alakították ki, hogy az adatok
+ épségét minél inkább
+ védje, ezért például
+ megtalálhatjuk benne a pillanatképek
+ készítését, a másolatok
+ létrehozását és az adatok
+ sértetlenségének
+ ellenõrzését. Továbbá egy
+ <acronym>RAID</acronym>-Z néven bemutatott új
+ replikációs modellt is támogat. A
+ <acronym>RAID</acronym>-Z alapvetõen a
+ <acronym>RAID</acronym>-5 megoldásához
+ hasonlít, azonban írás során
+ keletkezõ hibák ellen igyekszik védelmet
+ nyújtani.</para>
<sect2>
- <title>ZFS Tuning</title>
+ <title>A ZFS finomhangolása</title>
- <para>The <acronym>ZFS</acronym> subsystem utilizes much of
- the system resources, so some tuning may be required to provide
- maximum efficiency during every-day use. As an experimental
- feature in &os; this may change in the near future; however,
- at this time, the following steps are recommended.</para>
+ <para>A <acronym>ZFS</acronym> funkcióit
+ megvalósító alrendszer
+ alapértelmezés szerint meglehetõsen sok
+ erõforrást kíván, ezért nem
+ árt a legjobb hatékonyságra behangolnunk a
+ mindennapokban felmerülõ igények mentén.
+ Mivel ez még egy fejlesztés és
+ tesztelés alatt álló része a
+ &os;-nek, elképzelhetõ, hogy ez a jövõben
+ változik, viszont jelen pillanatban a következõ
+ lépéseket javasoljuk.</para>
<sect3>
- <title>Memory</title>
+ <title>Memória</title>
- <para>The total system memory should be at least one gigabyte,
- with two gigabytes or more recommended. In all of the
- examples here, the system has one gigabyte of memory with
- several other tuning mechanisms in place.</para>
+ <para>Hasznos, ha a rendszerünkben legalább
+ 1 GB memória található, de
+ inkább 2 vagy több az ajánlott. Az itt
+ szereplõ példákban ehelyett azonban
+ mindenhol csupán 1 GB-ot
+ feltételezünk.</para>
- <para>Some people have had luck using fewer than one gigabyte
- of memory, but with such a limited amount of physical memory,
- when the system is under heavy load, it is very plausible
- that &os; will panic due to memory exhaustion.</para>
+ <para>Néhányaknak sikerült
+ 1 GB-nál kevesebb központi
+ memóriával is használni ezt az
+ állományrendszert, azonban ilyenkor nagyon
+ könnyen elõfordulhat, hogy komolyabb terhelés
+ esetén a &os; a memória elfogyása miatt
+ egyszerûen összeomlik.</para>
</sect3>
<sect3>
- <title>Kernel Configuration</title>
+ <title>A rendszermag beállításai</title>
- <para>It is recommended that unused drivers and options
- be removed from the kernel configuration file. Since most
- devices are available as modules, they may simply be loaded
- using the <filename>/boot/loader.conf</filename> file.</para>
+ <para>A rendszermag konfigurációs
+ állományából javasolt
+ eltávolítani az összes nem használt
+ meghajtót és funkciót. A legtöbb
+ meghajtó egyébként is
+ elérhetõ modul formájában, és
+ a <filename>/boot/loader.conf</filename>
+ állományon keresztül minden gond
+ nélkül betölthetõek.</para>
- <para>Users of the i386 architecture should add the following
- option to their kernel configuration file, rebuild their
- kernel, and reboot:</para>
+ <para>Az i386 architektúránál
+ szükségünk lesz az alábbi
+ konfigurációs beállítás
+ megadására, majd a rendszermag
+ újrafordítására, végül
+ a rendszer újraindítására:</para>
<programlisting>options KVA_PAGES=512</programlisting>
- <para>This option will expand the kernel address space, thus
- allowing the <varname>vm.kvm_size</varname> tunable to be
- pushed beyond the currently imposed limit of 1 GB
- (2 GB for <acronym>PAE</acronym>). To find the most
- suitable value for this option, divide the desired address
- space in megabytes by four (4). In this case, it is
- <literal>512</literal> for 2 GB.</para>
+ <para>Ezzel az opcióval a rendszermag
+ címterét növeljük meg, aminek
+ eredményeképpen a <varname>vm.kvm_size</varname>
+ változót immáron az eredetileg
+ 1 GB-os (<acronym>PAE</acronym> használata
+ esetén pedig 2 GB-os) határ felé
+ tudjuk állítani. Az itt megadandó
+ értéket úgy tudjuk meghatározni,
+ ha a beállítani kívánt
+ méret MB-okban számolt
+ értékét elosztjuk néggyel. A
+ példában tehát az <literal>512</literal>
+ egy 2 GB nagyságú címteret ad
+ meg.</para>
</sect3>
<sect3>
- <title>Loader Tunables</title>
+ <title>A rendszertöltõ
+ beállításai</title>
- <para>The <devicename>kmem</devicename> address space should be
- increased on all &os; architectures. On the test system with
- one gigabyte of physical memory, success was achieved with the
- following options which should be placed in
- the <filename>/boot/loader.conf</filename> file and the system
- restarted:</para>
+ <para>A <devicename>kmem</devicename> címterét az
+ összes &os; által ismert architektúra
+ esetében érdemes megnövelnünk. A
+ teszteléshez használt rendszeren 1 GB
+ fizikai memória állt rendelkezésre, itt a
+ <filename>/boot/loader.conf</filename>
+ állományban a következõ
+ értékek megadásával minden
+ remekül mûködött:</para>
<programlisting>vm.kmem_slze="330M"
vm.kmem_size_max="330M"
vfs.zfs.arc_max="40M"
vfs.zfs.vdev.cache.size="5M"</programlisting>
- <para>For a more detailed list of recommendations for ZFS-related
- tuning, see
- <ulink url="http://wiki.freebsd.org/ZFSTuningGuide"></ulink>.</para>
+ <para>A ZFS finomhangolásával kapcsolatos
+ további javasolatokat a <ulink
+ url="http://wiki.freebsd.org/ZFSTuningGuide"></ulink>
+ címen olvashatunk.</para>
</sect3>
</sect2>
<sect2>
- <title>Using <acronym>ZFS</acronym></title>
+ <title>A <acronym>ZFS</acronym> használata</title>
- <para>There is a start up mechanism that allows &os; to
- mount <acronym>ZFS</acronym> pools during system
- initialization. To set it, issue the following
- commands:</para>
+ <para>A Z állományrendszerhez létezik egy
+ olyan mechanizmus, amelyen keresztül már a &os;
+ indítása során el tudjuk végezni a
+ közös tárolók
+ csatlakoztatását:</para>
<screen>&prompt.root; <userinput>echo 'zfs_enable="YES"' >> /etc/rc.conf</userinput>
&prompt.root; <userinput>/etc/rc.d/zfs start</userinput></screen>
- <para>The remainder of this document assumes two
- <acronym>SCSI</acronym> disks are available, and their device names
- are <devicename><replaceable>da0</replaceable></devicename>
- and <devicename><replaceable>da1</replaceable></devicename>
- respectively. Users of <acronym>IDE</acronym> hardware may
- use the <devicename><replaceable>ad</replaceable></devicename>
- devices in place of <acronym>SCSI</acronym> hardware.</para>
+ <para>A leírás fennmaradó
+ részében feltételezzük, hogy
+ két <acronym>SCSI</acronym>-lemezünk van,
+ amelyeket rendre a
+ <devicename><replaceable>da0</replaceable></devicename>
+ és
+ <devicename><replaceable>da1</replaceable></devicename>
+ eszközök formájában tudunk
+ elérni. Az <acronym>IDE</acronym> lemezek
+ tulajdonosainak értelemszerûen itt majd az
+ <devicename><replaceable>ad</replaceable></devicename>
+ eszközneveket kell használniuk a
+ <acronym>SCSI</acronym>-eszközök hivatkozásai
+ helyett.</para>
<sect3>
- <title>Single Disk Pool</title>
+ <title>Egyetlen közös tároló
+ használata</title>
- <para>To create a <acronym>ZFS</acronym> over a single disk
- device, use the <command>zpool</command> command:</para>
+ <para>A <command>zpool</command> kiadásával
+ egyetlen lemezen is létre tudunk hozni
+ <acronym>ZFS</acronym> partíciót:</para>
- <screen>&prompt.root; <userinput>zpool create example /dev/da0</userinput></screen>
+ <screen>&prompt.root; <userinput>zpool create minta /dev/da0</userinput></screen>
- <para>To view the new pool, review the output of the
- <command>df</command>:</para>
+ <para>Az új közös tárterület a
+ <command>df</command> parancs
+ felhasználásával rögtön
+ láthatóvá válik:</para>
<screen>&prompt.root; <userinput>df</userinput>
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ad0s1a 2026030 235230 1628718 13% /
devfs 1 1 0 100% /dev
/dev/ad0s1d 54098308 1032846 48737598 2% /usr
-example 17547136 0 17547136 0% /example</screen>
+minta 17547136 0 17547136 0% /minta</screen>
- <para>This output clearly shows the <literal>example</literal>
- pool has not only been created but
- <emphasis>mounted</emphasis> as well. It is also accessible
- just like a normal file system, files may be created on it
- and users are able to browse it as in the
- following example:</para>
+ <para>A parancs kimenetében tisztán
+ láthatjuk, hogy a <literal>minta</literal> nevû
+ tároló nem csak egyszerûen
+ elkészült, hanem egyúttal
+ <emphasis>csatolódott</emphasis>. Innentõl
+ már a többi állományrendszerhez
+ hasonlóan tetszõlegesen elérhetõ, az
+ alábbi példához hasonlóan
+ állományok hozhatóak rajta létre
+ vagy listázható a tartalma:</para>
- <screen>&prompt.root <userinput>cd /example</userinput>
+ <screen>&prompt.root <userinput>cd /minta</userinput>
&prompt.root; <userinput>ls</userinput>
-&prompt.root; <userinput>touch testfile</userinput>
+&prompt.root; <userinput>touch proba</userinput>
&prompt.root; <userinput>ls -al</userinput>
total 4
drwxr-xr-x 2 root wheel 3 Aug 29 23:15 .
drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
--rw-r--r-- 1 root wheel 0 Aug 29 23:15 testfile</screen>
+-rw-r--r-- 1 root wheel 0 Aug 29 23:15 proba</screen>
- <para>Unfortunately this pool is not taking advantage of
- any <acronym>ZFS</acronym> features. Create a file system
- on this pool, and enable compression on it:</para>
+ <para>Sajnos azonban ez a tároló még ki sem
+ használja a <acronym>ZFS</acronym> által
+ felkínált lehetõségeket.
+ Ezért most hozzunk létre egy
+ állományrendszert ezen a tárolón
+ belül és engedélyezzük rajta a
+ tömörítést:</para>
- <screen>&prompt.root; <userinput>zfs create example/compressed</userinput>
-&prompt.root; <userinput>zfs set compression=gzip example/compressed</userinput></screen>
+ <screen>&prompt.root; <userinput>zfs create minta/tomoritett</userinput>
+&prompt.root; <userinput>zfs set compression=gzip minta/tomoritett</userinput></screen>
- <para>The <literal>example/compressed</literal> is now a
- <acronym>ZFS</acronym> compressed file system. Try copying
- some large files to it by copying them to
- <filename class="directory">/example/compressed</filename>.</para>
+ <para>A <literal>minta/tomoritett</literal> most már egy
+ tömörített Z állományrendszer.
+ Próbáljuk ki mit tud, és másoljunk
+ néhány nagyobb méretû
+ állományt a <filename
+ class="directory">/minta/tomoritett</filename>
+ könyvtárba.</para>
- <para>The compression may now be disabled with:</para>
+ <para>Ezután a tömörítés
+ akár ki is kapcsolható:</para>
- <screen>&prompt.root; <userinput>zfs set compression=off example/compressed</userinput></screen>
+ <screen>&prompt.root; <userinput>zfs set compression=off minta/tomoritett</userinput></screen>
- <para>To unmount the file system, issue the following command
- and then verify by using the <command>df</command>
- utility:</para>
+ <para>Az állományrendszer
+ leválasztásához adjuk ki a lenti parancsot,
+ majd ellenõrizzük az eredményét a
+ <command>df</command> használatával:</para>
- <screen>&prompt.root; <userinput>zfs umount example/compressed</userinput>
+ <screen>&prompt.root; <userinput>zfs umount minta/tomoritett</userinput>
&prompt.root; <userinput>df</userinput>
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ad0s1a 2026030 235232 1628716 13% /
devfs 1 1 0 100% /dev
/dev/ad0s1d 54098308 1032864 48737580 2% /usr
-example 17547008 0 17547008 0% /example</screen>
+minta 17547008 0 17547008 0% /minta</screen>
- <para>Re-mount the file system to make it accessible
- again, and verify with <command>df</command>:</para>
+ <para>Tegyük ismét elérhetõvé
+ és csatlakoztassuk újra az
+ állományrendszert, majd nézzük meg
+ az eredményt a <command>df</command> paranccsal:</para>
- <screen>&prompt.root; <userinput>zfs mount example/compressed</userinput>
+ <screen>&prompt.root; <userinput>zfs mount minta/tomoritett</userinput>
&prompt.root; <userinput>df</userinput>
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ad0s1a 2026030 235234 1628714 13% /
devfs 1 1 0 100% /dev
/dev/ad0s1d 54098308 1032864 48737580 2% /usr
-example 17547008 0 17547008 0% /example
-example/compressed 17547008 0 17547008 0% /example/compressed</screen>
+minta 17547008 0 17547008 0% /minta
+minta/tomoritett 17547008 0 17547008 0% /minta/tomoritett</screen>
- <para>The pool and file system may also be observed by viewing
- the output from <command>mount</command>:</para>
+ <para>A közös terület és az
+ állományrendszer mellesleg a
+ <command>mount</command> parancs kimenetébõl is
+ megfigyelhetõ:</para>
<screen>&prompt.root; <userinput>mount</userinput>
/dev/ad0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad0s1d on /usr (ufs, local, soft-updates)
-example on /example (zfs, local)
-example/data on /example/data (zfs, local)
-example/compressed on /example/compressed (zfs, local)</screen>
+minta on /minta (zfs, local)
+minta/tomoritett on /minta/tomoritett (zfs, local)</screen>
- <para>As observed, <acronym>ZFS</acronym> file systems, after
- creation, may be used like ordinary file systems; however,
- many other features are also available. In the following
- example, a new file system, <literal>data</literal> is
- created. Important files will be stored here, so the file
- system is set to keep two copies of each data block:</para>
+ <para>Látható, hogy a létrehozásuk
+ után a Z állományrendszerek teljesen
+ hétköznapi módon viselkednek, de
+ természetesen további lehetõségek is
+ elérhetõek hozzájuk. A következõ
+ példában <literal>adat</literal> néven
+ készítünk egy új
+ állományrendszert. Mivel ide majd nagyon fontos
+ állományokat akarunk elhelyezni,
+ állítsuk be, hogy minden adatblokkból
+ két példány legyen:</para>
- <screen>&prompt.root; <userinput>zfs create example/data</userinput>
-&prompt.root; <userinput>zfs set copies=2 example/data</userinput></screen>
+ <screen>&prompt.root; <userinput>zfs create minta/adat</userinput>
+&prompt.root; <userinput>zfs set copies=2 minta/adat</userinput></screen>
- <para>It is now possible to see the data and space utilization
- by issuing the <command>df</command> again:</para>
+ <para>A <command>df</command> újbóli
+ kiadásával most már látható
+ is ez az állományrendszer és annak
+ tárfoglalása:</para>
<screen>&prompt.root; <userinput>df</userinput>
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ad0s1a 2026030 235234 1628714 13% /
devfs 1 1 0 100% /dev
/dev/ad0s1d 54098308 1032864 48737580 2% /usr
-example 17547008 0 17547008 0% /example
-example/compressed 17547008 0 17547008 0% /example/compressed
-example/data 17547008 0 17547008 0% /example/data</screen>
+minta 17547008 0 17547008 0% /minta
+minta/tomoritett 17547008 0 17547008 0% /minta/tomoritett
+minta/adat 17547008 0 17547008 0% /minta/adat</screen>
- <para>Notice that each file system on the pool has the same
- amount of available space. This is the reason for using
- the <command>df</command> through these examples, to show
- that the file systems are using only the amount of space
- they need and will all draw from the same pool.
- The <acronym>ZFS</acronym> file system does away with concepts
- such as volumes and partitions, and allows for several file
- systems to occupy the same pool. Destroy the file systems,
- and then destroy the pool as they are no longer
- needed:</para>
+ <para>Vegyük észre, hogy a közös
+ területen levõ állományrendszerek
+ mindegyikén ugyanannyi szabad terület van. A
+ <command>df</command> segítségével a
+ késõbbiekben remekül megfigyelhetõ lesz,
+ hogy az egyes állományrendszerek mindig csak
+ annyi területet foglalnak el a közös
+ területbõl, amennyire abban a pillanatban
+ ténylegesen szükségünk van. A Z
+ állományrendszerek esetén megszûnik
+ a partíciók és kötetek fogalma,
+ és több állományrendszer
+ tárolódik egyazon közös
+ területen. Ha már nem akarjuk használni,
+ egyszerûen csak töröljük le az
+ állományrendszereket és ezt a
+ közös tárolót:</para>
- <screen>&prompt.root; <userinput>zfs destroy example/compressed</userinput>
-&prompt.root; <userinput>zfs destroy example/data</userinput>
-&prompt.root; <userinput>zpool destroy example</userinput></screen>
+ <screen>&prompt.root; <userinput>zfs destroy minta/tomoritett</userinput>
+&prompt.root; <userinput>zfs destroy minta/adat</userinput>
+&prompt.root; <userinput>zpool destroy minta</userinput></screen>
- <para>Disks go bad and fail, an unavoidable trait. When
- this disk goes bad, the data will be lost. One method of
- avoiding data loss due to a failed hard disk is to implement
- a <acronym>RAID</acronym>. <acronym>ZFS</acronym> supports
- this feature in its pool design which is covered in
- the next section.</para>
+ <para>Nyilván tapasztalhattunk már, hogy a
+ lemezeink olykor menthetetlenül meghibásodnak.
+ Amikor egy lemezes meghajtó tönkremegy, a rajta
+ tárolt adatok általában elvesznek. Az
+ ilyen jellegû kellemetlenségek
+ elkerülésének egyik módja az
+ ún. <acronym>RAID</acronym>-tömbök
+ építése. A következõ
+ szakaszban bemutatjuk, hogy a Z
+ állományrendszerek esetén hogyan tudunk
+ ilyen tömböket készíteni.</para>
</sect3>
<sect3>
- <title><acronym>ZFS</acronym> RAID-Z</title>
+ <title><acronym>RAID</acronym>-Z tömbök</title>
- <para>As previously noted, this section will assume that
- two <acronym>SCSI</acronym> exists as devices
- <devicename>da0</devicename> and
- <devicename>da1</devicename>. To create a
- <acronym>RAID</acronym>-Z pool, issue the following
- command:</para>
+ <para>Korábban már utaltunk rá, hogy ebben
+ a szakaszban két <acronym>SCSI</acronym>-lemez, vagyis a
+ <devicename>da0</devicename> és
+ <devicename>da1</devicename> eszközök
+ használatát feltételezzük. Egy
+ <acronym>RAID</acronym>-Z formátumú
+ közös tároló
+ készítéséhez a következõ
+ parancsot kell kiadni:</para>
- <screen>&prompt.root; <userinput>zpool create storage raidz da0 da1</userinput></screen>
+ <screen>&prompt.root; <userinput>zpool create tarolo raidz da0 da1</userinput></screen>
- <para>The <literal>storage</literal> zpool should have been
- created. This may be verified by using the &man.mount.8; and
- &man.df.1; commands as before. More disk devices may have
- been allocated by adding them to the end of the list above.
- Make a new file system in the pool, called
- <literal>home</literal> where user files will eventually be
- placed:</para>
+ <para>Ennek hatására tehát keletkezik egy
+ <literal>tarolo</literal> nevû Z-tároló.
+ Ez a korábbiakhoz hasonló módon
+ ellenõrizhetõ is a &man.mount.8; és
+ &man.df.1; parancsokon keresztül. Természetesen
+ az iménti listába további
+ lemezeszközök tetszõlegesen felvehetõek.
+ Most hozzunk létre ezen a közös
+ területen egy <literal>felhasznalok</literal> nevû
+ állományrendszert, ahová majd a
+ felhasználók adatait fogjuk tenni:</para>
- <screen>&prompt.root; <userinput>zfs create storage/home</userinput></screen>
+ <screen>&prompt.root; <userinput>zfs create tarolo/felhasznalok</userinput></screen>
- <para>It is now possible to enable compression and keep extra
- copies of the user's home directories and files. This may
- be accomplished just as before using the following
- commands:</para>
+ <para>Miután ezzel megvagyunk, az imént
+ létrehozott állományrendszerre nyugodtan
+ beállíthatunk tömörítést
+ és biztonsági másolatokat. Ebben az
+ alábbi parancsok lesznek a
+ segítségünkre:</para>
- <screen>&prompt.root; <userinput>zfs set copies=2 storage/home</userinput>
-&prompt.root; <userinput>zfs set compression=gzip storage/home</userinput></screen>
+ <screen>&prompt.root; <userinput>zfs set copies=2 tarolo/felhasznalok</userinput>
+&prompt.root; <userinput>zfs set compression=gzip tarolo/felhasznalok</userinput></screen>
- <para>To make this the new home directory for users, copy the
- user data to this directory, and create the appropriate
- symbolic links:</para>
+ <para>Ezt követõen költöztessük
+ át a felhasználókat, vagyis másoljuk
+ át az adataikat ide és hozzuk létre a
+ megfelelõ szimbolikus linkeket:</para>
- <screen>&prompt.root; <userinput>cp -rp /home/* /storage/home</userinput>
+ <screen>&prompt.root; <userinput>cp -rp /home/* /tarolo/felhasznalok</userinput>
&prompt.root; <userinput>rm -rf /home /usr/home</userinput>
-&prompt.root; <userinput>ln -s /storage/home /home</userinput>
-&prompt.root; <userinput>ln -s /storage/home /usr/home</userinput></screen>
+&prompt.root; <userinput>ln -s /tarolo/felhasznalok /home</userinput>
+&prompt.root; <userinput>ln -s /tarolo/felhasznalok /usr/home</userinput></screen>
- <para>Users should now have their data stored on the freshly
- created <filename class="directory">/storage/home</filename>
- file system. Test by adding a new user and logging in as
- that user.</para>
+ <para>A felhasználók adatai immáron a
+ frissen létrehozott <filename
+ class="directory">/tarolo/felhasznalok</filename>
+ állományrendszeren tárolódnak.
+ Próbáljuk ki, hozzunk létre egy új
+ felhasználót és jelentkezzünk be
+ vele.</para>
- <para>Try creating a snapshot which may be rolled back
- later:</para>
+ <para>Készítsünk most egy
+ pillanatképet is, amelyet aztán késõbb
+ szükség esetén vissza tudunk
+ állítani:</para>
- <screen>&prompt.root; <userinput>zfs snapshot storage/home at 08-30-08</userinput></screen>
+ <screen>&prompt.root; <userinput>zfs snapshot tarolo/felhasznalok at 08-08-30</userinput></screen>
- <para>Note that the snapshot option will only capture a real
- file system, not a home directory or a file. The
- <literal>@</literal> character is a delimiter used between
- the file system name or the volume name. When a user's
- home directory gets trashed, restore it with:</para>
+ <para>A <literal>snapshot</literal> csak valós
+ állományrendszerekkel mûködik,
+ könyvtárakra vagy állományokra nem.
+ A nevében a <literal>@</literal> karakter
+ választja el egymástól a
+ hozzátartozó címkét az
+ állományrendszer vagy kötet
+ nevétõl. Ha netalán a
+ felhasználói könyvtárak
+ valamiért megsérültek volna, a
+ következõ paranccsal
+ állíthatóak vissza:</para>
- <screen>&prompt.root; <userinput>zfs rollback storage/home at 08-30-08</userinput></screen>
+ <screen>&prompt.root; <userinput>zfs rollback tarolo/felhasznalok at 08-08-30</userinput></screen>
- <para>To get a list of all available snapshots, run the
- <command>ls</command> in the file system's
+ <para>Az adott idõpontban aktív
+ pillanatképeket az adott állományrendszer
<filename class="directory">.zfs/snapshot</filename>
- directory. For example, to see the previously taken
- snapshot, perform the following command:</para>
+ könyvtárában találhatjuk meg.
+ Például az elõbb készített
+ pillanatkép az alábbi paranccsal
+ nézhetõ meg:</para>
- <screen>&prompt.root; <userinput>ls /storage/home/.zfs/snapshot</userinput></screen>
+ <screen>&prompt.root; <userinput>ls /tarolo/felhasznalok/.zfs/snapshot</userinput></screen>
- <para>It is possible to write a script to perform monthly
- snapshots on user data; however, over time, snapshots
- may consume a great deal of disk space. The previous
- snapshot may be removed using the following command:</para>
+ <para>Ha ebbõl elindulunk, akkor pillanatok alatt
+ írható egy olyan szkript, amely a
+ felhasználók adatairól havonta
+ készít egy pillanatképet. Ilyenkor
+ azonban fontos számításba vennünk,
+ hogy az idõvel felgyülemlõ pillanatképek
+ rengeteg helyet el tudnak foglalni. A korábbi
+ pillanatkép így távolítható
+ el:</para>
- <screen>&prompt.root; <userinput>zfs destroy storage/home at 08-30-08</userinput></screen>
+ <screen>&prompt.root; <userinput>zfs destroy tarolo/felhasznalok at 08-08-30</userinput></screen>
- <para>There is no reason, after all of this testing, we should
- keep <filename class="directory">/storage/home</filename>
- around in its present state. Make it the real
- <filename class="directory">/home</filename> file
- system:</para>
+ <para>Miután alaposan kipróbáltuk a
+ <filename class="directory">/tarolo/felhasznalok</filename>
+ néven létrehozott
+ állományrendszerünket,
+ állítsuk be véglegesen ez eddigi
+ <filename class="directory">/home</filename>
+ állományrendszer helyére:</para>
- <screen>&prompt.root; <userinput>zfs set mountpoint=/home storage/home</userinput></screen>
+ <screen>&prompt.root; <userinput>zfs set mountpoint=/home tarolo/felhasznalok</userinput></screen>
- <para>Issuing the <command>df</command> and
- <command>mount</command> commands will show that the system
- now treats our file system as the real
- <filename class="directory">/home</filename>:</para>
+ <para>Ekkor a <command>df</command> és
+ <command>mount</command> parancsok használatával
+ meggyõzõdhetünk róla, hogy ezt az
+ állományrendszert innentõl már
+ valóban a <filename class="directory">/home</filename>
+ könyvtárnak tekintjük:</para>
<screen>&prompt.root; <userinput>mount</userinput>
/dev/ad0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad0s1d on /usr (ufs, local, soft-updates)
-storage on /storage (zfs, local)
-storage/home on /home (zfs, local)
+tarolo on /tarolo (zfs, local)
+tarolo/felhasznalok on /home (zfs, local)
&prompt.root; <userinput>df</userinput>
-Filesystem 1K-blocks Used Avail Capacity Mounted on
-/dev/ad0s1a 2026030 235240 1628708 13% /
-devfs 1 1 0 100% /dev
-/dev/ad0s1d 54098308 1032826 48737618 2% /usr
-storage 17547008 0 17547008 0% /storage
-storage/home 17547008 0 17547008 0% /home</screen>
+Filesystem 1K-blocks Used Avail Capacity Mounted on
+/dev/ad0s1a 2026030 235240 1628708 13% /
+devfs 1 1 0 100% /dev
+/dev/ad0s1d 54098308 1032826 48737618 2% /usr
+tarolo 17547008 0 17547008 0% /tarolo
+tarolo/felhasznalok 17547008 0 17547008 0% /home</screen>
- <para>This completes the <acronym>RAID</acronym>-Z
- configuration. To get status updates about the file systems
- created during the nightly &man.periodic.8; runs, issue the
- following command:</para>
+ <para>Ezzel lényegében befejeztük a
+ <acronym>RAID</acronym>-Z tömb
+ konfigurációját. Az
+ állományrendszerek állapotára
+ vonatkozóan a &man.periodic.8;
+ alkalmazásával akár naponta
+ kérhetünk ellenõrzést:</para>
<screen>&prompt.root; <userinput>echo 'daily_status_zfs_enable="YES"' >> /etc/periodic.conf</userinput></screen>
</sect3>
<sect3>
- <title>Recovering <acronym>RAID</acronym>-Z</title>
+ <title>A <acronym>RAID</acronym>-Z
+ helyreállítása</title>
- <para>Every software <acronym>RAID</acronym> has a method of
- monitoring their <literal>state</literal>.
- <acronym>ZFS</acronym> is no exception. The status of
- <acronym>RAID</acronym>-Z devices may be viewed with the
- following command:</para>
+ <para>Minden szoftveres <acronym>RAID</acronym>
+ implementáció kínál valamilyen
+ megoldást az állapotának
+ ellenõrzésére, ez alól
+ tulajdonképpen a <acronym>ZFS</acronym> sem
+ kivétel. A <acronym>RAID</acronym>-Z
+ eszközök állapota a következõ
+ paranccsal kérdezhetõ le:</para>
<screen>&prompt.root; <userinput>zpool status -x</userinput></screen>
- <para>If all pools are healthy and everything is normal, the
- following message will be returned:</para>
+ <para>Ezt az üzenetet láthatjuk, amikor minden
+ tároló kifogástalanul mûködik
+ és semmilyen probléma sincs:</para>
<screen>all pools are healthy</screen>
- <para>If there is an issue, perhaps a disk has gone offline,
- the pool state will be returned and look similar to:</para>
+ <para>Ha viszont valamilyen gond lenne valamelyik lemezzel,
+ például leállt, akkor az elõbbi
+ parancs eredménye ehhez lesz hasonló:</para>
- <screen> pool: storage
+ <screen> pool: tarolo
state: DEGRADED
status: One or more devices has been taken offline by the administrator.
Sufficient replicas exist for the pool to continue functioning in a
@@ -478,147 +638,119 @@
config:
NAME STATE READ WRITE CKSUM
- storage DEGRADED 0 0 0
+ tarolo DEGRADED 0 0 0
raidz1 DEGRADED 0 0 0
da0 ONLINE 0 0 0
da1 OFFLINE 0 0 0
errors: No known data errors</screen>
- <para>This states that the device was taken offline by the
- administrator. This is true for this particular example.
- To take the disk offline, the following command was
- used:</para>
+ <para>A válasz szerint az eszközt az
+ adminisztrátor állította le. Ez
+ ennél a példánál valóban
+ igaz. Lemezeket a következõ módon lehet
+ leállítani:</para>
- <screen>&prompt.root; <userinput>zpool offline storage da1</userinput></screen>
+ <screen>&prompt.root; <userinput>zpool offline tarolo da1</userinput></screen>
- <para>It is now possible to replace the
- <devicename>da1</devicename> after the system has been
- powered down. When the system is back online, the following
- command may issued to replace the disk:</para>
+ <para>Így miután leállítottuk a
+ rendszert, a <devicename>da1</devicename> eszköz
+ cserélhetõ. A rendszer soron következõ
+ indításakor ezzel a paranccsal tudjuk jelezni
+ logikailag is a lemez cseréjét:</para>
- <screen>&prompt.root; <userinput>zpool replace storage da1</userinput></screen>
+ <screen>&prompt.root; <userinput>zpool replace tarolo da1</userinput></screen>
- <para>From here, the status may be checked again, this time
- without the <option>-x</option> flag to get state
- information:</para>
+ <para>Nézzük meg újra a tömb
+ állapotát, de ezúttal a <option>-x</option>
+ kapcsoló megadása nélkül, mivel csak
+ így fogjuk látni:</para>
- <screen>&prompt.root; <userinput>zpool status storage</userinput>
- pool: storage
+ <screen>&prompt.root; <userinput>zpool status tarolo</userinput>
+ pool: tarolo
state: ONLINE
scrub: resilver completed with 0 errors on Sat Aug 30 19:44:11 2008
config:
NAME STATE READ WRITE CKSUM
- storage ONLINE 0 0 0
+ tarolo ONLINE 0 0 0
raidz1 ONLINE 0 0 0
da0 ONLINE 0 0 0
da1 ONLINE 0 0 0
errors: No known data errors</screen>
- <para>As shown from this example, everything appears to be
- normal.</para>
+ <para>A példa szerint minden megfelelõen
+ mûködik.</para>
</sect3>
<sect3>
- <title>Data Verification</title>
+ <title>Az adatok ellenõrzése</title>
- <para>As previously mentioned, <acronym>ZFS</acronym> uses
- <literal>checksums</literal> to verify the integrity of
- stored data. They are enabled automatically upon creation
- of file systems and may be disabled using the following
- command:</para>
+ <para>Elõzetesen már szó esett róla,
+ hogy a <acronym>ZFS</acronym> képes a tárolt
+ adatok sértetlenségének
+ ellenõrzésére. Az új
+ állományrendszerek
+ létrehozásánál ez a
>>> TRUNCATED FOR MAIL (1000 lines) <<<
More information about the p4-projects
mailing list