From owner-freebsd-doc@FreeBSD.ORG Wed Jun 18 22:30:04 2008 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C96BA106568E for ; Wed, 18 Jun 2008 22:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B94258FC1D for ; Wed, 18 Jun 2008 22:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m5IMU4di002505 for ; Wed, 18 Jun 2008 22:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m5IMU4TG002504; Wed, 18 Jun 2008 22:30:04 GMT (envelope-from gnats) Date: Wed, 18 Jun 2008 22:30:04 GMT Message-Id: <200806182230.m5IMU4TG002504@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: hywel@hmallett.co.uk 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 Reply-To: hywel@hmallett.co.uk List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2008 22:30:05 -0000 The following reply was made to PR docs/124716; it has been noted by GNATS. From: hywel@hmallett.co.uk To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-doc@FreeBSD.org Cc: Subject: Re: docs/124716: Geom RAID1 handbook example only covers boot partition Date: Wed, 18 Jun 2008 15:27:35 +0100 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--