From owner-freebsd-doc@FreeBSD.ORG Wed Jun 18 22:23:25 2008 Return-Path: Delivered-To: freebsd-doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F52D1065673; Wed, 18 Jun 2008 22:23:25 +0000 (UTC) (envelope-from hywel@hmallett.co.uk) Received: from lisbon.directrouter.com (lisbon.directrouter.com [72.249.30.130]) by mx1.freebsd.org (Postfix) with ESMTP id 3D2CC8FC0C; Wed, 18 Jun 2008 22:23:24 +0000 (UTC) (envelope-from hywel@hmallett.co.uk) Received: from localhost ([127.0.0.1]) by lisbon.directrouter.com with esmtpa (Exim 4.69) (envelope-from ) id 1K8ydL-0004Ay-EJ; Wed, 18 Jun 2008 09:27:35 -0500 Received: from 82.111.203.2 ([82.111.203.2]) by www.hmallett.co.uk (Horde MIME library) with HTTP; Wed, 18 Jun 2008 15:27:35 +0100 Message-ID: <20080618152735.96ft0bnpk48804os@www.hmallett.co.uk> Date: Wed, 18 Jun 2008 15:27:35 +0100 From: hywel@hmallett.co.uk To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-doc@FreeBSD.org References: <200806181410.m5IEA2m7036587@freefall.freebsd.org> In-Reply-To: <200806181410.m5IEA2m7036587@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_2pc7evbkmg6c" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.6) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - lisbon.directrouter.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hmallett.co.uk X-Source: X-Source-Args: X-Source-Dir: Cc: Subject: Re: docs/124716: Geom RAID1 handbook example only covers boot partition X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2008 22:23:25 -0000 This message is in MIME format. --=_2pc7evbkmg6c Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit Patch attached for perusal. It is to be applied to chapter.sgml in the geom directory. I've merely copied the sgml from the existing article - it may not be standards-compliant. --=_2pc7evbkmg6c Content-Type: text/plain; charset=UTF-8; name="geom.txt.diff.txt" Content-Disposition: attachment; filename="geom.txt.diff.txt" Content-Transfer-Encoding: quoted-printable --- chapter.sgml 2008-06-18 15:23:31.000000000 +0100 +++ chapter.sgml.new 2008-06-18 15:23:52.000000000 +0100 @@ -239,11 +239,77 @@ interruption, and even be physically stored in a data safe. + + Creating a mirror of unformatted ATA disks + + Load the geom_mirror + module: + + &prompt.root; kldload geom_mirror + + + Ensure that a suitable mount point exists, such as /mnt: + + &prompt.root; mkdir /mnt + + + Determine the device names for the disks which will + be mirrored, and create the new mirror device. For example, + to mirror two unused and unpartitioned ATA disks, + for example /dev/ad2 and + /dev/ad3: + + &prompt.root; gmirror label -vb round-robin gm0 = /dev/ad2 /dev/ad3 + + + + + Write a standard label, also known as a partition + table, on the new volume: + + &prompt.root; bsdlabel -w /dev/mirror/gm0 + + + + This process should have created two other devices + in the /dev/mirror + directory in addition to the gm0 device. + Those include gm0a and + gm0c. At this point a file system may be = created + on the gm0a device with the + newfs utility: + + &prompt.root; newfs -U /dev/mirror/gm0a + + 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. + + + + To manually mount the created disk stripe: + + &prompt.root; mount /dev/mirror/gm0a /mnt<= /screen> + + To mount this striped file system automatically during the boot + process, place the volume information in + /etc/fstab file: + + &prompt.root; echo "/dev/mirror/gm0a /mnt ufs rw 2 2" = \ + >> /etc/fstab + + To use gmirror on a root partition, more steps are required for s= etup + To begin, ensure the system has two disk drives of equal size, this exercise assumes they are direct access (&man.da.4;) SCSI disks. - - Begin by installing &os; on the first disk with only two + + Begin by installing &os; on the first disk with only two partitions. One should be a swap partition, double the RAM size and all remaining space devoted to the root (/) file system. --=_2pc7evbkmg6c--