PERFORCE change 126522 for review
Gabor Pali
pgj at FreeBSD.org
Mon Sep 17 11:32:36 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=126522
Change 126522 by pgj at disznohal on 2007/09/17 18:32:15
Add initial Hungarian translation of Chapter 19: GEOM. It refers
to an illustration of disk striping (geom/striping.png) that is
currently not included in this submit. I think it will require
further efforts to make it localised and built.
Affected files ...
.. //depot/projects/docproj_hu/books/handbook/geom/chapter.sgml#2 edit
Differences ...
==== //depot/projects/docproj_hu/books/handbook/geom/chapter.sgml#2 (text+ko) ====
@@ -1,95 +1,103 @@
<!--
The FreeBSD Documentation Project
$FreeBSD: doc/en_US.ISO8859-1/books/handbook/geom/chapter.sgml,v 1.32 2007/08/22 18:18:25 chinsan Exp $
+-->
--->
+<!-- The FreeBSD Hungarian Documentation Project
+ Translated by: PALI, Gabor <pgj at FreeBSD.org>
+ Original Revision: 1.32 -->
-<chapter id="GEOM">
+<chapter id="GEOM" lang="hu">
<chapterinfo>
<authorgroup>
<author>
<firstname>Tom</firstname>
<surname>Rhodes</surname>
- <contrib>Written by </contrib>
+ <contrib>Írta: </contrib>
</author>
</authorgroup>
</chapterinfo>
- <title>GEOM: Modular Disk Transformation Framework</title>
+ <title>GEOM: Moduláris lemezszervezõ rendszer</title>
<sect1 id="GEOM-synopsis">
- <title>Synopsis</title>
+ <title>Áttekintés</title>
<indexterm>
<primary>GEOM</primary>
</indexterm>
<indexterm>
- <primary>GEOM Disk Framework</primary>
+ <primary>A GEOM lemezrendszer</primary>
<see>GEOM</see>
</indexterm>
-
- <para>This chapter covers the use of disks under the GEOM
- framework in &os;. This includes the major <acronym
- role="Redundant Array of Inexpensive Disks">RAID</acronym>
- control utilities which use the framework for configuration.
- This chapter will not go into in depth discussion on how GEOM
- handles or controls I/O, the underlying subsystem, or code.
- This information is provided through the &man.geom.4; manual
- page and its various SEE ALSO references. This chapter is also
- not a definitive guide to <acronym>RAID</acronym>
- configurations. Only GEOM-supported <acronym>RAID</acronym>
- classifications will be discussed.</para>
-
- <para>After reading this chapter, you will know:</para>
+
+ <para>Ez a fejezet a &os;-ben található GEOM rendszert
+ mutatja be. Ez a rendszer tömöríti az általa is alkalmazott
+ fontosabb <acronym role="Redundant Array of Inexpensive Disks
+ (Olcsó lemezek hibatûrõ tömbje)">RAID</acronym>-vezérlõ
+ segédprogramokat. A fejezet nem részletezi, hogy a GEOM
+ konkrétan milyen módon kezeli és vezérli az I/O-t, ahogy
+ azt sem, hogyan mûködik az alapjául szolgáló alrendszer
+ vagy hogy néz ki annak forráskódja. Az ilyen jellegû
+ információk a &man.geom.4; man oldalon, valamint az ott
+ felsorolt hivatkozott helyeken találhatóak meg. Továbbá, ez
+ a fejezet magukról a <acronym>RAID</acronym>-konfigurációkról
+ sem ad pontos tájékoztatást. Kizárólag csak a GEOM által is
+ támogatott <acronym>RAID</acronym>-besorolásokról esik
+ szó.</para>
+
+ <para>A fejezet elolvasása során megismerjük:</para>
<itemizedlist>
<listitem>
- <para>What type of <acronym>RAID</acronym> support is available
- through GEOM.</para>
+ <para>a GEOM segítségével milyen fajtájú <acronym>RAID</acronym>
+ támogatást érhetünk el.</para>
</listitem>
<listitem>
- <para>How to use the base utilities to configure, maintain,
- and manipulate the various <acronym>RAID</acronym>
- levels.</para>
- </listitem>
+ <para>hogyan kell használni a rendszer által nyújtott
+ alapvetõ segédeszközöket a különféle <acronym>RAID</acronym>
+ -szintek konfigurálásához, karbantartásához és
+ kezeléséhez.</para>
+ </listitem>
<listitem>
- <para>How to mirror, stripe, encrypt, and remotely connect disk
- devices through GEOM.</para>
+ <para>hogyan kell a GEOM-on keresztül tükrözni, csíkozni,
+ titkosítani és távolról összekapcsolni lemezes
+ eszközöket.</para>
</listitem>
<listitem>
- <para>How to troubleshoot disks attached to the GEOM
- framework.</para>
+ <para>hogyan kell a GEOM rendszerben összekapcsolt lemezeknél
+ felmerülõ hibákat felderíteni.</para>
</listitem>
</itemizedlist>
+
+ <para>A fejezet elolvasásához ajánlott:</para>
- <para>Before reading this chapter, you should:</para>
-
- <itemizedlist>
+ <itemizedlist>
<listitem>
- <para>Understand how &os; treats disk devices
- (<xref linkend="disks">).</para>
+ <para>megérteni, hogyan kezeli a &os; a lemezes eszközöket
+ (<xref linkend="disks">).</para>
</listitem>
<listitem>
- <para>Know how to configure and install a new &os; kernel
- (<xref linkend="kernelconfig">).</para>
+ <para>ismerni, hogyan konfiguráljunk és telepítsünk egy
+ új &os; rendszermagot (<xref linkend="kernelconfig">).</para>
</listitem>
</itemizedlist>
</sect1>
<sect1 id="GEOM-intro">
- <title>GEOM Introduction</title>
-
- <para>GEOM permits access and control to classes — Master Boot
- Records, <acronym>BSD</acronym> labels, etc — through the
- use of providers, or the special files in
- <filename role="directory">/dev</filename>. Supporting various
- software <acronym>RAID</acronym> configurations, GEOM will
- transparently provide access to the operating system and
- operating system utilities.</para>
+ <title>A GEOM bemutatása</title>
+
+ <para>A GEOM rendszer adatszolgáltatókon vagy speciális
+ <filename role="directory">/dev</filename>-állományokon keresztül
+ hozzáférést és vezérlést tesz lehetõvé bizonyos osztályokhoz —
+ Master Boot Recordokhoz, <acronym>BSD</acronym>-címkékhez stb.
+ Számos szoftveres <acronym>RAID</acronym> konfiguráció támogatásával
+ a GEOM transzparens elérést tesz lehetõvé mind az operációs rendszer,
+ mind pedig az általa felkínált segédprogramok számára.</para>
</sect1>
<sect1 id="GEOM-striping">
@@ -98,7 +106,7 @@
<author>
<firstname>Tom</firstname>
<surname>Rhodes</surname>
- <contrib>Written by </contrib>
+ <contrib>Írta: </contrib>
</author>
<author>
<firstname>Murray</firstname>
@@ -107,559 +115,603 @@
</authorgroup>
</sect1info>
- <title>RAID0 - Striping</title>
+ <title>RAID0 - Csíkozás</title>
<indexterm>
<primary>GEOM</primary>
</indexterm>
<indexterm>
- <primary>Striping</primary>
+ <primary>Lemezcsíkozás</primary>
</indexterm>
-
- <para>Striping is a method used to combine several disk drives into
- a single volume. In many cases, this is done through the use of
- hardware controllers. The GEOM disk subsystem provides
- software support for <acronym>RAID</acronym>0, also known as
- disk striping.</para>
+
+ <para>A csíkozás módszerét használjuk több lemezmeghajtó egyetlen
+ kötetté történõ összevonásához. A GEOM lemezalrendszer
+ szoftveres támogatást nyújt a <acronym>RAID</acronym>0, más
+ néven a lemezcsíkozás megvalósításához.
+
+ <para>Egy <acronym>RAID</acronym>0 rendszerben az adatokat
+ blokkokra bontva írjuk fel a tömbben található lemezek között
+ szétosztva. Így ahelyett, hogy meg kellene várnunk 256 kb-nyi
+ adat egyetlen lemezre írását, egy <acronym>RAID</acronym>0
+ rendszerben egyszerre íródik 64 kb-nyi adat négy különbözõ
+ lemezre, és ezáltal gyorsabb elérést szolgáltat. Ez a
+ gyorsaság további lemezvezérlõk használatával még jobban
+ fokozható.</para>
+
+ <para>Az egy <acronym>RAID</acronym>0-csíkozásban résztvevõ
+ lemezek mindegyikének azonos méretûnek kell lennie, mivel
+ az írásra és olvasásra irányuló I/O-kérések a párhuzamos
+ kiszolgálás érdekében összefésülõdnek.</para>
- <para>In a <acronym>RAID</acronym>0 system, data are split up in
- blocks that get written across all the drives in the array.
- Instead of having to wait on the system to write 256k to one
- disk, a <acronym>RAID</acronym>0 system can simultaneously write
- 64k to each of four different disks, offering superior I/O
- performance. This performance can be enhanced further by using
- multiple disk controllers.</para>
-
- <para>Each disk in a <acronym>RAID</acronym>0 stripe must be of
- the same size, since I/O requests are interleaved to read or
- write to multiple disks in parallel.</para>
-
<mediaobject>
<imageobject>
<imagedata fileref="geom/striping" align="center">
</imageobject>
<textobject>
- <phrase>Disk Striping Illustration</phrase>
+ <phrase>Példa lemezcsíkozásra</phrase>
</textobject>
</mediaobject>
<procedure>
- <title>Creating a stripe of unformatted ATA disks</title>
+ <title>Csíkozás kialakítása formázatlan ATA-lemezekkel</title>
+
+ <step><para>Töltsük be a <filename>geom_stripe</filename>
+ modult:</para>
+
+ <screen>&prompt.root; <userinput>kldload geom_stripe</userinput></screen>
+ </step>
+
+ <step><para>Bizonyosodjuk meg róla, hogy a rendszerünkben
+ található egy szabad csatlakozási pont. Ha majd ezt a
+ kötetet szánjuk rendszerünk gyökérpartíciójának, használjunk
+ erre a célra egy másik könyvtárat, pl. a
+ <filename role="directory">/mnt</filename>-ot:</para>
+
+ <screen>&prompt.root; <userinput>mkdir /mnt</userinput></screen>
+ </step>
+
+ <step><para>Keressük meg a csíkozásra felhasználni kívánt
+ lemezek eszközneveit, és hozzunk létre belõlük egy új csíkozott
+ eszközt. Például, ha két használatban nem levõ,
+ particionálatlan <acronym>ATA</acronym>-lemezt, név szerint a
+ <filename>/dev/ad2</filename> és <filename>/dev/ad3</filename>
+ eszközöket akarjunk csíkozni:</para>
- <step><para>Load the <filename>geom_stripe</filename>
- module:</para>
+ <screen>&prompt.root; <userinput>gstripe label -v st0 /dev/ad2 /dev/ad3</userinput></screen>
+ </step>
+
+ <step><para>Az így létrejött új köteten most hozzunk létre egy
+ általános címkét, vagy más néven egy partíciós táblát, és
+ telepítsük fel rá a rendszer alapértelmezett rendszerindító
+ programját:</para>
- <screen>&prompt.root; <userinput>kldload geom_stripe</userinput></screen>
- </step>
+ <screen>&prompt.root; <userinput>bsdlabel -wB /dev/stripe/st0</userinput></screen>
+ </step>
+
+ <step><para>Ezzel meg kellett jelennie további másik két
+ eszköznek is a <filename role="directory">/dev/stripe</filename>
+ könyvtárban, a <devicename>st0</devicename> eszköz
+ mellett. Ezek többek közt az <devicename>st0a</devicename>
+ és az <devicename>st0c</devicename>. Itt már ki is tudunk
+ alakítani egy állományrendszert az <devicename>st0a</devicename>
+ eszközön a <command>newfs</command> használatával:</para>
+
+ <screen>&prompt.root; <userinput>newfs -U /dev/stripe/st0a</userinput></screen>
+
+ <para>Sok-sok számot fogunk látni cikázni a képernyõn,
+ majd néhány másodperc múlva befejezõdik a folyamat.
+ Létrehoztuk a kötetet, ami most már készen áll a
+ becsatolásra.</para>
+ </step>
+ </procedure>
- <step><para>Ensure that a suitable mount point exists. If this
- volume will become a root partition, then temporarily use
- another mount point such as <filename
- role="directory">/mnt</filename>:</para>
+ <para>A kialakított lemezcsíkozást így tudjuk kézzel
+ csatlakoztatni:</para>
- <screen>&prompt.root; <userinput>mkdir /mnt</userinput></screen>
- </step>
+ <screen>&prompt.root; <userinput>mount /dev/stripe/st0a /mnt</userinput></screen>
+
+ <para>A csíkozott állományrendszer a rendszerindítás folyamán
+ automatikusan becsatlakoztathatjuk, ha elhelyezzük az
+ alábbi kötetinformációkat az <filename>/etc/fstab</filename>
+ állományba:</para>
- <step><para>Determine the device names for the disks which will
- be striped, and create the new stripe device. For example,
- to stripe two unused and unpartitioned <acronym>ATA</acronym> disks,
- for example <filename>/dev/ad2</filename> and
- <filename>/dev/ad3</filename>:</para>
+ <screen>&prompt.root; <userinput>echo "/dev/stripe/st0a /mnt ufs rw 2 2" \</userinput>
+ <userinput>>> /etc/fstab</userinput></screen>
+
+ <para>A <filename>geom_stripe</filename> modult is automatikusan be
+ kell tölteni a rendszerindítás során. Ehhez a következõ sort kell
+ hozzáadni a <filename>/boot/loader.conf</filename>
+ állományhoz:</para>
- <screen>&prompt.root; <userinput>gstripe label -v st0 /dev/ad2 /dev/ad3</userinput></screen>
-
-<!--
- <para>A message should be returned explaining that meta data has
- been stored on the devices.
-XXX: What message? Put it inside the screen output above.
--->
- </step>
-
- <step><para>Write a standard label, also known as a partition
- table, on the new volume and install the default
- bootstrap code:</para>
-
- <screen>&prompt.root; <userinput>bsdlabel -wB /dev/stripe/st0</userinput></screen>
-
- </step>
-
- <step><para>This process should have created two other devices
- in the <filename role="directory">/dev/stripe</filename>
- directory in addition to the <devicename>st0</devicename> device.
- Those include <devicename>st0a</devicename> and
- <devicename>st0c</devicename>. At this point a file system may be created
- on the <devicename>st0a</devicename> device with the
- <command>newfs</command> utility:</para>
-
- <screen>&prompt.root; <userinput>newfs -U /dev/stripe/st0a</userinput></screen>
-
- <para>Many numbers will glide across the screen, and after a few
- seconds, the process will be complete. The volume has been
- created and is ready to be mounted.</para>
- </step>
- </procedure>
-
- <para>To manually mount the created disk stripe:</para>
-
- <screen>&prompt.root; <userinput>mount /dev/stripe/st0a /mnt</userinput></screen>
-
- <para>To mount this striped file system automatically during the boot
- process, place the volume information in
- <filename>/etc/fstab</filename> file:</para>
+ <screen>&prompt.root; <userinput>echo 'geom_stripe_load="YES"' >> /boot/loader.conf</userinput></screen>
- <screen>&prompt.root; <userinput>echo "/dev/stripe/st0a /mnt ufs rw 2 2" \</userinput>
- <userinput>>> /etc/fstab</userinput></screen>
-
- <para>The <filename>geom_stripe</filename> module must also be automatically loaded during
- system initialization, by adding a line to
- <filename>/boot/loader.conf</filename>:</para>
-
- <screen>&prompt.root; <userinput>echo 'geom_stripe_load="YES"' >> /boot/loader.conf</userinput></screen>
-
</sect1>
<sect1 id="GEOM-mirror">
- <title>RAID1 - Mirroring</title>
+ <title>RAID1 - Tükrözés</title>
<indexterm>
<primary>GEOM</primary>
</indexterm>
<indexterm>
- <primary>Disk Mirroring</primary>
+ <primary>Lemeztükrözés</primary>
</indexterm>
+
+ <para>A tükrözés számos vállalatnál és háztartásban alkalmazott
+ technológia, amely az adatok megszakítás nélküli lementésére
+ használatos. Amikor tükrözést használunk, az egyszerûen csak
+ arra utal, hogy a B lemez ugyanazokat az adatokat tartalmazza,
+ mint az A lemez. Vagy amikor a C és D lemez tartalma egyezik
+ meg az A és B lemezekével. Függetlenül a lemezek kiosztásától,
+ itt az a lényeg, hogy az egyik lemez teljes területe vagy az
+ egyik partíciója le van másolva. Késõbb az ezen a módon
+ lementett adatok könnyen visszaállíthatóak anélkül, hogy ez a
+ szolgáltatásban vagy az elérhetõségben bármilyen kimaradást
+ okozna, és akár még fizikailag is biztonságosan tárolhatóak.
+
+ <para>Elõször is szereznünk kell két egyforma méretû lemezt,
+ valamint ez a példa feltételezi, hogy ezek a lemezek közvetlen
+ elérésû (&man.da.4;) <acronym>SCSI</acronym>-lemezek.</para>
+
+ <para>Kezdetnek telepítsük fel a &os;-t az elsõ lemezre, de
+ csak két partícióval. Ezek egyike legyen a lapozóállományt
+ tartalmazó partíció, aminek mérete pedig a fizikailag
+ rendelkezésre álló memória (<acronym>RAM</acronym>) méretének
+ kétszere legyen. A többi helyet adjuk oda a gyökérpartíciónak
+ (<filename role="directory">/</filename>). Természetesen a
+ többi csatolási pontot is kihasználhatjuk, külön partíciókkal,
+ de ezzel a feladat nehézsége tízszeresére növekszik, mivel
+ ekkor manuálisan kell átírnunk a &man.bsdlabel.8; és
+ &man.fdisk.8; beállításokat.</para>
+
+ <para>Indítsuk újra a számítógépet és várjuk meg, amíg a
+ rendszer teljesen fel nem áll. Amint ez a folyamat véget ért,
+ jelentkezzük be a <username>root</username>
+ felhasználóval.</para>
+
+ <para>Hozzuk létre a <filename>/dev/mirror/gm</filename> eszközt
+ és kössük hozzá a <filename>/dev/ad1</filename>
+ eszközhöz:</para>
- <para>Mirroring is a technology used by many corporations and home
- users to back up data without interruption. When a mirror exists,
- it simply means that diskB replicates diskA. Or, perhaps diskC+D
- replicates diskA+B. Regardless of the disk configuration, the
- important aspect is that information on one disk or partition is
- being replicated. Later, that information could be more easily
- restored, backed up without causing service or access
- interruption, and even be physically stored in a data
- safe.</para>
+ <screen>&prompt.root; <userinput>gmirror label -vnb round-robin gm0 /dev/da1</userinput></screen>
+
+ <para>A rendszernek erre így kell reagálnia:</para>
- <para>To begin, ensure the system has two disk drives of equal size,
- this exercise assumes they are direct access (&man.da.4;)
- <acronym>SCSI</acronym> disks.</para>
-
- <para>Begin by installing &os; on the first disk with only two
- partitions. One should be a swap partition, double the
- <acronym>RAM</acronym> size and all remaining space devoted to
- the root (<filename role="directory">/</filename>) file system.
- It is possible to have separate partitions for other mount points;
- however, this will increase the difficulty level ten fold due to
- manual alteration of the &man.bsdlabel.8; and &man.fdisk.8;
- settings.</para>
-
- <para>Reboot and wait for the system to fully initialize. Once this
- process has completed, log in as the <username>root</username>
- user.</para>
-
- <para>Create the <filename>/dev/mirror/gm</filename> device and link
- it with <filename>/dev/da1</filename>:</para>
-
- <screen>&prompt.root; <userinput>gmirror label -vnb round-robin gm0 /dev/da1</userinput></screen>
-
- <para>The system should respond with:</para>
- <screen>
+ <screen>
Metadata value stored on /dev/da1.
Done.</screen>
- <para>Initialize GEOM, this will load the
- <filename>/boot/kernel/geom_mirror.ko</filename> kernel
- module:</para>
+ <para>Keltsük életre a GEOM-ot, aminek során betöltõdik a
+ <filename>/boot/kernel/geom_mirror.ko</filename>
+ kernelmodul:</para>
+
+ <screen>&prompt.root; <userinput>gmirror load</userinput></screen>
+
+ <note>
+ <para>Ezzel a paranccsal létre kellett jönnie a
+ <devicename>gm0</devicename> eszköznek a
+ <filename role="directory">/dev/mirror</filename>
+ könyvtárban.</para>
+ </note>
+
+ <para>Helyezzünk el egy partíciós táblát és rendszerindító
+ programot az <command>fdisk</command> segítségével az
+ újonnan létrehozott <devicename>gm0</devicename>
+ eszközön:</para>
- <screen>&prompt.root; <userinput>gmirror load</userinput></screen>
+ <screen>&prompt.root; <userinput>fdisk -vBI /dev/mirror/gm0</userinput></screen>
+
+ <para>Most pedig tegyünk fel egy általános címkét a
+ <command>bsdlabel</command> programmal:</para>
- <note>
- <para>This command should have created the
- <devicename>gm0</devicename>, device node under the
- <filename role="directory">/dev/mirror</filename>
- directory.</para>
- </note>
+ <screen>&prompt.root; <userinput>bsdlabel -wB /dev/mirror/gm0s1</userinput></screen>
+
+ <note>
+ <para>Ha több slice-unk és partíciónk is van, az iménti két
+ parancsban máshogy kell megadnunk a paramétereket. Meg kell
+ egyezniük a másik lemezen található slice-al és a
+ partíciójának méretével.</para>
+ </note>
+
+ <para>Használjuk a &man.newfs.8; segédprogramot a
+ <devicename>gm0s1a</devicename> eszközön egy <acronym>UFS</acronym>
+ típusú állományrendszer létesítésére:</para>
+
+ <screen>&prompt.root; <userinput>newfs -U /dev/mirror/gm0s1a</userinput></screen>
+
+ <para>Ennek eredményeképpen kapunk egy halom számot a
+ képernyõn. Nagyon jó! Ellenõrizzük, nem látunk-e a képernyõn
+ valamilyen hibaüzenetet, majd csatlakoztassuk az eszközt a
+ a <filename role="directory">/mnt</filename> pontra:</para>
- <para>Install a generic <command>fdisk</command> label and boot code
- to new <devicename>gm0</devicename> device:</para>
-
- <screen>&prompt.root; <userinput>fdisk -vBI /dev/mirror/gm0</userinput></screen>
-
- <para>Now install generic <command>bsdlabel</command>
- information:</para>
-
- <screen>&prompt.root; <userinput>bsdlabel -wB /dev/mirror/gm0s1</userinput></screen>
-
- <note>
- <para>If multiple slices and partitions exist, the flags for the
- previous two commands will require alteration. They must match
- the slice and partition size of the other disk.</para>
- </note>
-
- <para>Use the &man.newfs.8; utility to construct a default <acronym>UFS</acronym>
- file system on the <devicename>gm0s1a</devicename> device node:</para>
-
- <screen>&prompt.root; <userinput>newfs -U /dev/mirror/gm0s1a</userinput></screen>
-
- <para>This should have caused the system to spit out some
- information and a bunch of numbers. This is good. Examine the
- screen for any error messages and mount the device to the
- <filename role="directory">/mnt</filename> mount point:</para>
-
- <screen>&prompt.root; <userinput>mount /dev/mirror/gm0s1a /mnt</userinput></screen>
-
- <para>Now move all data from the boot disk over to this new file
- system. This example uses the &man.dump.8; and &man.restore.8;
- commands; however, &man.dd.1; would also work with this
- scenario.</para>
-
- <screen>&prompt.root; <userinput>dump -L -0 -f- / |(cd /mnt && restore -r -v -f-)</userinput></screen>
-
- <para>This must be done for each file system. Simply place the
- appropriate file system in the correct location when running the
- aforementioned command.</para>
-
- <para>Now edit the replicated <filename>/mnt/etc/fstab</filename>
- file and remove or comment out the swap file
- <footnote>
- <para>It should be noted that commenting out the swap file entry
- in <filename>fstab</filename> will most likely require you to
- re-establish a different way of enabling swap space. Please
- refer to <xref linkend="adding-swap-space"> for more
- information.</para>
- </footnote>. Change the other file system information to use the
- new disk as shown in the following example:</para>
-
- <programlisting># Device Mountpoint FStype Options Dump Pass#
+ <screen>&prompt.root; <userinput>mount /dev/mirror/gm0s1a /mnt</userinput></screen>
+
+ <para>Ezt követõen pedig mozgassunk át minden adatot a frissen
+ létrehozott állományrendszere arról a lemezrõl, ahonnan
+ elindítottuk a rendszert. Ebben a példában ezt ugyan a
+ &man.dump.8; és &man.restore.8; parancsokkal oldjuk meg,
+ erre a célra viszont a &man.dd.1; is remekül használható.</para>
+
+ <screen>&prompt.root; <userinput>dump -L -0 -f- / |(cd /mnt && restore -r -v -f-)</userinput></screen>
+
+ <para>Ezt el kell végeznünk mindegyik állományrendszerre.
+ Egyszerûen másoljuk be az érintett állományrendszert a
+ megfelelõ helyre az elõbb bemutatott parancsban.</para>
+
+ <para>Ezután írjuk át a duplikált
+ <filename>/mnt/etc/fstab</filename> állományt, és távolítsuk
+ el vagy csak kommentezzük ki belõle a lapozóállományt
+ <footnote>
+ <para>Megjegyezzük, hogy ez az <filename>fstab</filename>
+ állományból kiszedett bejegyzés miatt valószínûleg
+ más módon kell majd engedélyeznünk a lapozóállomány
+ használatát. Errõl bõvebben ld. a
+ <xref linkend="adding-swap-space">.</para>
+ </footnote>.
+ Írjuk felül a másik állományrendszer adatait is az új
+ eszköznek megfelelõ beállításokkal, ahogy a példa is
+ mutatja:</para>
+
+ <programlisting># Device Mountpoint FStype Options Dump Pass#
#/dev/da0s2b none swap sw 0 0
/dev/mirror/gm0s1a / ufs rw 1 1</programlisting>
- <para>Now create a <filename>boot.config</filename> file on both the
- current and new root partitions. This file will
- <quote>help</quote> the system <acronym>BIOS</acronym>
- boot the correct drive:</para>
+ <para>Most pedig hozzunk létre egy <filename>boot.config</filename>
+ állományt mind a jelenlegi, mind pedig az új gyökérpartíciókon.
+ Ez az állomány fogja <quote>segíteni</quote> a rendszerünk
+ <acronym>BIOS</acronym>-ának a megfelelõ meghajtóról történõ
+ elinduláshoz:</para>
+
+ <screen>&prompt.root; <userinput>echo "1:da(1,a)/boot/loader" > /boot.config</userinput></screen>
- <screen>&prompt.root; <userinput>echo "1:da(1,a)/boot/loader" > /boot.config</userinput></screen>
+ <screen>&prompt.root; <userinput>echo "1:da(1,a)/boot/loader" > /mnt/boot.config</userinput></screen>
+
+ <note>
+ <para>A helyes rendszerindulás bebiztosításához megadtuk
+ mind a két gyökérpartíciót. Ha valamilyen ok folytán
+ a rendszer nem lenne képes olvasni az új gyökérpartíciót,
+ így mindig lesz egy biztonsági tartalékunk.</para>
+ </note>
+
+ <para>Gondoskodjunk a <filename>geom_mirror.ko</filename> modul
+ rendszerindítás során történõ betöltésérõl az alábbi
+ parancssal:</para>
- <screen>&prompt.root; <userinput>echo "1:da(1,a)/boot/loader" > /mnt/boot.config</userinput></screen>
+ <screen>&prompt.root; <userinput>echo 'geom_mirror_load="YES"' >> /mnt/boot/loader.conf</userinput></screen>
+
+ <para>Indítsuk újra a rendszert:</para>
- <note>
- <para>We have placed it on both root partitions to ensure proper
- boot up. If for some reason the system cannot read from the
- new root partition, a failsafe is available.</para>
- </note>
+ <screen>&prompt.root; <userinput>shutdown -r now</userinput></screen>
+
+ <para>Ha minden rendben zajlott, akkor a rendszerünk elindult
+ a <devicename>gm0s1a</devicename> eszközrõl, és a
+ <command>login</command> vár minket. Ha valami rosszul sült
+ volna el, tekintsük át a fejezetben található, hibakeresérõl
+ szóló szakaszt. Ezután adjuk hozzá a <devicename>da0</devicename>
+ lemezt a <devicename>gm0</devicename> eszközhöz:</para>
- <para>Ensure the <filename>geom_mirror.ko</filename> module will load
- on boot by running the following command:</para>
-
- <screen>&prompt.root; <userinput>echo 'geom_mirror_load="YES"' >> /mnt/boot/loader.conf</userinput></screen>
-
- <para>Reboot the system:</para>
-
- <screen>&prompt.root; <userinput>shutdown -r now</userinput></screen>
-
- <para>If all has gone well, the system should have booted from the
- <devicename>gm0s1a</devicename> device and a <command>login</command>
- prompt should be waiting. If something went wrong, see review
- the forthcoming troubleshooting section. Now add the
- <devicename>da0</devicename> disk to <devicename>gm0</devicename>
- device:</para>
-
- <screen>&prompt.root; <userinput>gmirror configure -a gm0</userinput>
+ <screen>&prompt.root; <userinput>gmirror configure -a gm0</userinput>
&prompt.root; <userinput>gmirror insert gm0 /dev/da0</userinput></screen>
- <para>The <option>-a</option> flag tells &man.gmirror.8; to use
- automatic synchronization; i.e., mirror the disk writes
- automatically. The manual page explains how to rebuild and
- replace disks, although it uses <devicename>data</devicename>
- in place of <devicename>gm0</devicename>.</para>
+ <para>Az <option>-a</option> paraméter tudatja a &man.gmirror.8;-al,
+ hogy automatikus szinkronizációt használjon, tehát az lemezre
+ írást magától tükrözze. A hozzátartozó man oldal elmagyarázza,
+ hogyan építsük át a tömböt és hogyan cseréljük benne a lemezeket,
+ habár az <devicename>data</devicename> névvel hivatkozik az itt
+ említett <devicename>gm0</devicename> eszközre.</para>
<sect2>
- <title>Troubleshooting</title>
+ <title>Hibakeresés</title>
<sect3>
- <title>System refuses to boot</title>
+ <title>A rendszer nem hajlandó elindulni</title>
+
+ <para>Ha a rendszerünk ehhez hasonló módon
+ indul:</para>
- <para>If the system boots up to a prompt similar to:</para>
-
- <programlisting>ffs_mountroot: can't find rootvp
+ <programlisting>ffs_mountroot: can't find rootvp
Root mount failed: 6
mountroot></programlisting>
- <para>Reboot the machine using the power or reset button. At
- the boot menu, select option six (6). This will drop the
- system to a &man.loader.8; prompt. Load the kernel module
- manually:</para>
+ <para>Indítsuk újra a gépünket a kikapcsoló gomb vagy
+ a reset segítségével. A rendszerindító menüben
+ válasszuk a hatodik opciót (6). Ennek eredményeképpen
+ megkapjuk a &man.loader.8; parancssorát. Töltsük be
+ a kernelmodult manuálisan:</para>
- <screen>OK? <userinput>load geom_mirror</userinput>
+ <screen>OK? <userinput>load geom_mirror</userinput>
OK? <userinput>boot</userinput></screen>
- <para>If this works then for whatever reason the module was not
- being loaded properly. Place:</para>
-
- <programlisting>options GEOM_MIRROR</programlisting>
-
- <para>in the kernel configuration file, rebuild and reinstall.
- That should remedy this issue.</para>
+ <para>Ha ez beválik, akkor valamiért a modult nem sikerült
+ rendesen betölteni. Helyezzük el a</para>
+
+ <programlisting>options GEOM_MIRROR</programlisting>
+
+ <para>sort a rendszermag konfigurációs állományában,
+ fordítsuk újra és telepítsük. Ezzel várhatóan
+ orvosoltuk a problémát.</para>
</sect3>
</sect2>
</sect1>
<sect1 id="geom-ggate">
- <title>GEOM Gate Network Devices</title>
+ <title>Eszközök hálózati illesztése a GEOM-ban</title>
+
+ <para>A GEOM távoli eszközök, pl. lemezek, CD-meghajtók
+ stb. használatát is támogatja a hálózati illesztést
+ szolgáló segédprogramjaival, hasonlóan az
+ <acronym>NFS</acronym>-hez.</para>
+
+ <para>Kezdésként létre kell hozni az megosztást
+ elõsegítõ állományt. Ez az állomány határozza meg, ki
+ és milyen szinten jogosult használni az megosztott
+ erõforrásokat. Mondjuk, ha megosztjuk az elsõ
+ <acronym>SCSI</acronym>-lemezen a negyedik slice-ot,
+ az alábbi <filename>/etc/gg.exports</filename> állomány
+ több, mint tökéletes:</para>
- <para>GEOM supports the remote use of devices, such as disks,
- CD-ROMs, files, etc. through the use of the gate utilities.
- This is similar to <acronym>NFS</acronym>.</para>
+ <programlisting>192.168.1.0/24 RW /dev/da0s4d</programlisting>
+
+ <para>Ezzel a belsõ hálózaton levõ összes számítógép képes
+ lesz elérni a <devicename>da0s4d</devicename> partíción
+ található állományrendszert.</para>
+
+ <para>Az eszköz megosztásához elõször gondoskodnunk kell róla,
+ hogy ne legyen csatlakoztatva, majd ezután indítsuk el a
+ &man.ggated.8; szerver daemonját:</para>
+
+ <screen>&prompt.root; <userinput>ggated</userinput></screen>
+
+ <para>Ezt követõen a <command>mount</command> felhasználásával
+ csatoljuk az eszközt a kliensen, az alábbi parancs
+ kiadásával:</para>
- <para>To begin, an exports file must be created. This file
- specifies who is permitted to access the exported resources and
- what level of access they are offered. For example, to export
- the fourth slice on the first <acronym>SCSI</acronym> disk, the
- following <filename>/etc/gg.exports</filename> is more than
- adequate:</para>
-
- <programlisting>192.168.1.0/24 RW /dev/da0s4d</programlisting>
-
- <para>It will allow all hosts inside the private network access
- the file system on the <devicename>da0s4d</devicename>
- partition.</para>
-
- <para>To export this device, ensure it is not currently mounted,
- and start the &man.ggated.8; server daemon:</para>
-
- <screen>&prompt.root; <userinput>ggated</userinput></screen>
-
- <para>Now to <command>mount</command> the device on the client
- machine, issue the following commands:</para>
-
- <screen>&prompt.root; <userinput>ggatec create -o rw 192.168.1.1 /dev/da0s4d</userinput>
+ <screen>&prompt.root; <userinput>ggatec create -o rw 192.168.1.1 /dev/da0s4d</userinput>
ggate0
&prompt.root; <userinput>mount /dev/ggate0 /mnt</userinput></screen>
- <para>From here on, the device may be accessed through the
- <filename role="directory">/mnt</filename> mount point.</para>
+ <para>Innentõl kezdve az eszköz elérhetõ lesz a
+ <filename role="directory">/mnt</filename> csatlakozási ponton
+ keresztül.</para>
+
+ <note>
+ <para>Fontos kiemelnünk, hogy ez a mûvelet eredménytelen akkor,
+ ha az adott eszközt vagy maga a szerver, vagy pedig valamelyik
+ másik kliens már korábban csatolta.</para>
+ </note>
+
+ <para>Amikor az eszközre már nincs tovább szükségünk, biztonságosan
+ le tudjuk választani a &man.umount.8; paranccsal, hasonlóan
+ bármelyik más lemezes eszközhöz.</para>
- <note>
- <para>It should be pointed out that this will fail if the device
- is currently mounted on either the server machine or any other
- machine on the network.</para>
- </note>
-
- <para>When the device is no longer needed, it may be safely
- unmounted with the &man.umount.8; command, similar to any other
- disk device.</para>
</sect1>
<sect1 id="geom-glabel">
- <title>Labeling Disk Devices</title>
+ <title>A lemezes eszközök címkézése</title>
<indexterm>
<primary>GEOM</primary>
</indexterm>
<indexterm>
- <primary>Disk Labels</primary>
+ <primary>Lemezcímkék</primary>
</indexterm>
+
+ <para>A rendszer indítása közben a &os; rendszermagja a talált
+ eszközöknek megfelelõen létrehoz mindegyikõjüknek egy-egy
+ eszközleírót. Ez a próbálgatásos módszer magával hoz néhány
+ gondot, például mi történik akkor, ha az új lemezes eszközt
+ <acronym>USB</acronym>-n keresztül adjuk a rendszerhez?
+ Nagyon valószínû, hogy ez az eszköz megkapja a
+ <devicename>da0</devicename> nevet és ezzel az eredeti
+ <devicename>da0</devicename> eszköz eltolódik a
+ <devicename>da1</devicename> névhez. Ennek köszönhetõen
+ az <filename>/etc/fstab</filename> állományban felsorolt
+ állományrendszerek csatolása veszélybe kerül, aminek
+ következtében akár meghiúsulhat a rendszerindulás is.</para>
+
+ <para>Az egyik lehetséges megoldása a problémának, ha sorbafûzzük
+ a <acronym>SCSI</acronym> eszközeinket, és így a
+ <acronym>SCSI</acronym>-kártyához kapcsolt újabb eszköz egy
+ addig nem használt számot fog birtokba venni. De mi helyzet
+ az <acronym>USB</acronym>-s eszközökkel, amelyek kiüthetik az
+ elsõdleges <acronym>SCSI</acronym>-lemezeinket? Ez egyébként
+ azért történhet meg, mert az <acronym>USB</acronym>-s eszközöket
+ általában hamarabb keresi a rendszer, mint a <acronym>SCSI</acronym>
+ kártyán levõ eszközöket. Megoldhatjuk úgy ezt a gondot, hogy
+ csak azután csatlakoztatjuk az említett eszközöket, miután a
+ rendszer elindult. De megoldhatjuk úgy is, hogy csak egyetlen
+ <acronym>ATA</acronym>-meghajtót használunk és soha nem soroljuk
+ fel a <acronym>SCSI</acronym> eszközöket az
+ <filename>/etc/fstab</filename> állományban.</para>
- <para>During system initialization, the &os; kernel will create
- device nodes as devices are found. This method of probing for
- devices raises some issues, for instance what if a new disk
- device is added via <acronym>USB</acronym>? It is very likely
- that a flash device may be handed the device name of
- <devicename>da0</devicename> and the original
- <devicename>da0</devicename> shifted to
- <devicename>da1</devicename>. This will cause issues mounting
- file systems if they are listed in
- <filename>/etc/fstab</filename>, effectively, this may also
- prevent the system from booting.</para>
+ <para>Ezeknél kínálkozik azonban egy jobb megoldás! A
+ <command>glabel</command> nevû segédprogrammal a rendszergazda
+ vagy a felhasználó úgy tudja címkézni a lemezmeghajtókat, hogy
+ azok a <filename>/etc/fstab</filename> állományban szereplõ
+ címkéket használják. Mivel a <command>glabel</command> a
+ címkét az adott szolgáltató utolsó szektorában tárolja el, ez
+ a címke megmarad az újraindítás után is. Ha ezt a címkét
+ eszközként használjuk, az állományrendszerek mindig ugyanarról
+ a meghajtóról fognak csatolódni, függetlenül attól, hogy
+ milyen eszközleírón keresztül érjük el õket.</para>
+
+ <note>
+ <para>Egyáltalán nem állítottuk, hogy egy címke csak
+ állandó lehet. A <command>glabel</command> segítségével
+ egyaránt létre lehet hozni állandó és átmeneti címkéket,
+ de csak az állandó címke képes az újraindítás után is
+ megmaradni. A két címketípus közti különbségeket a
+ &man.glabel.8; man oldal tárgyalja részletesebben.</para>
+ </note>
- <para>One solution to this issue is to chain the
- <acronym>SCSI</acronym> devices in order so a new device added to
- the <acronym>SCSI</acronym> card will be issued unused device
- numbers. But what about <acronym>USB</acronym> devices which may
- replace the primary <acronym>SCSI</acronym> disk? This happens
- because <acronym>USB</acronym> devices are usually
- probed before the <acronym>SCSI</acronym> card. One solution
- is to only insert these devices after the system has been
- booted. Another method could be to use only a single
- <acronym>ATA</acronym> drive and never list the
- <acronym>SCSI</acronym> devices in
- <filename>/etc/fstab</filename>.</para>
-
- <para>A better solution is available. By using the
- <command>glabel</command> utility, an administrator or user may
- label their disk devices and use these labels in
- <filename>/etc/fstab</filename>. Because
- <command>glabel</command> stores the label in the last sector of
- a given provider, the label will remain persistent across reboots.
- By using this label as a device, the file system may always be
- mounted regardless of what device node it is accessed
- through.</para>
-
- <note>
- <para>This goes without saying that a label be permanent. The
- <command>glabel</command> utility may be used to create both a
- transient and permanent label. Only the permanent label will
- remain consistent across reboots. See the &man.glabel.8;
- manual page for more information on the differences between
- labels.</para>
- </note>
-
<sect2>
- <title>Label Types and Examples</title>
+ <title>Címketípusok és példák</title>
+
+ <para>A címkéknek két típusa létezik, az általános címke
+ és az állományrendszer-címke. A kettõ közötti eltérés
+ az állandó címkékkel kapcsolatos automatikus detektálás,
+ illetve a tény, hogy ez a típus címke az újraindítás
+ után is megmarad. Ezeknek a címkéknek van egy külön,
+ az állományrendszerük szerint elnevezett könyvtára a
+ <filename class="directory">/dev</filename> könyvtáron
+ belül. Mondjuk az <acronym>UFS</acronym>2
+ állományrendszer-címkék a
+ <filename class="directory">/dev/ufs2</filename>
+ könyvtárban keletkeznek.</para>
+
+ <para>Egy általános címke a következõ induláskor elveszik.
+ Ezeket a címkék a
+ <filename class="directory">/dev/label</filename>
+ könyvtárban keletkeznek, és ideálisak a
+ kísérletezgetésre.</para>
+
+ <para>Állandó címkék az állományrendszereken a
+ <command>tunefs</command> vagy a <command>newfs</command>
+ segédprogramok valamelyikével helyezhetõek el. Ha egy
+ <acronym>UFS</acronym>2 állományrendszerre szeretnénk
+ tenni egy állandó címkét az adataink megsemmisítése
+ nélkül, adjuk ki a következõ parancsot:</para>
- <para>There are two types of labels, a generic label and a
- file system label. The difference between the labels is
- the auto detection associated with permanent labels, and the
- fact that this type of label will be persistent across reboots.
- These labels are given a special directory in
- <filename class="directory">/dev</filename>, which will be named
- based on their file system type. For example,
- <acronym>UFS</acronym>2 file system labels will be created in
- the <filename class="directory">/dev/ufs2</filename>
- directory.</para>
+ <screen>&prompt.root; <userinput>tunefs -L <replaceable>home</replaceable> <replaceable>/dev/da3</replaceable></userinput></screen>
+
+ <warning>
+ <para>Ha az érintett állományrendszeren nincs üres
+ hely, ennek a parancsnak a használata adatvesztéshez
+ vezethet. Ilyen esetben inkább a felesleges állományok
+ eltávolításával kellene törõdnünk, nem pedig címkék
+ hozzáadásával.</para>
+ </warning>
+
+ <para>Ezután egy címkének kell megjelennie a
+ <filename class="directory">/dev/ufs2</filename> könyvtárban,
+ amelyet vegyünk is fel az <filename>/etc/fstab</filename>
+ állományba:</para>
- <para>A generic label will go away with the next reboot. These
- labels will be created in the
- <filename class="directory">/dev/label</filename> directory and
- are perfect for experimentation.</para>
+ <programlisting>/dev/ufs2/home /home ufs rw 2 2</programlisting>
-<!-- XXXTR: How do you create a file system label without running newfs
- or when there is no newfs (e.g.: cd9660)? -->
+ <note>
+ <para>Az állományrendszert tilos csatolni a
+ <command>tunefs</command> futtatása alatt!</para>
+ </note>
+
+ <para>Most már a megszokott módon csatolhatjuk az
+ állományrendszert:</para>
- <para>Permanent labels may be placed on the file system using the
- <command>tunefs</command> or <command>newfs</command>
- utilities. To create a permanent label for a
- <acronym>UFS</acronym>2 file system without destroying any
- data, issue the following command:</para>
+ <screen>&prompt.root; <userinput>mount /home</userinput></screen>
+
+ <para>Az alábbi parancs használható a címke eltüntetéséhez:</para>
>>> TRUNCATED FOR MAIL (1000 lines) <<<
More information about the p4-projects
mailing list