From owner-freebsd-questions@FreeBSD.ORG Thu Jun 30 20:17:09 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0858A16A41C; Thu, 30 Jun 2005 20:17:09 +0000 (GMT) (envelope-from dannyman@toldme.com) Received: from shiva.nextrials.com (shiva.nextrials.com [64.81.74.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDF5243D1D; Thu, 30 Jun 2005 20:17:08 +0000 (GMT) (envelope-from dannyman@toldme.com) Received: from [192.168.1.102] (mito.sr.nextrials.com [192.168.1.102]) by shiva.nextrials.com (Postfix) with ESMTP id 988683C288B; Thu, 30 Jun 2005 13:17:08 -0700 (PDT) Message-ID: <42C45326.3060805@toldme.com> Date: Thu, 30 Jun 2005 13:16:38 -0700 From: Danny Howard User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050607) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "P.U.Kruppa" References: <20050630185836.L46920@www.pukruppa.net> In-Reply-To: <20050630185836.L46920@www.pukruppa.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: rse@FreeBSD.org, freebsd-questions@freebsd.org Subject: Re: raid1 with gmirror (some questions left) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2005 20:17:09 -0000 P.U.Kruppa wrote: > > As far as I can see, booting from gm0 works fine. There are only two > questions left: > 1) I installed FreeBSD 5.4 -RELEASE and thus I put - as > recommended (or was that only for 5.3 ???) - swapoff="YES into > my /etc/rc.conf . > Now my raid1 device doesn't show any swap partition. Is this > o.k., or should it be reactivated somehow? Uhmmm, can you elaborate on that? Here's what my system looks like: 0-13:14 djh@castor ~> gmirror list Geom name: gm0 State: COMPLETE Components: 2 Balance: round-robin Slice: 4096 Flags: NONE SyncID: 2 ID: 2016858745 Providers: 1. Name: mirror/gm0 Mediasize: 250059349504 (233G) Sectorsize: 512 Mode: r6w6e2 Consumers: 1. Name: ad4 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r6w6e3 State: ACTIVE Priority: 0 Flags: DIRTY SyncID: 2 ID: 2809681815 2. Name: ad6 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r6w6e3 State: ACTIVE Priority: 0 Flags: DIRTY SyncID: 2 ID: 2997441133 Geom name: gm0.sync 0-13:14 djh@castor ~> mount /dev/mirror/gm0s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/mirror/gm0s1g on /local0 (ufs, local, soft-updates) /dev/mirror/gm0s1e on /tmp (ufs, local, soft-updates) /dev/mirror/gm0s1f on /usr (ufs, local, soft-updates) /dev/mirror/gm0s1d on /var (ufs, local, soft-updates) 0-13:14 djh@castor ~> swapinfo Device 1K-blocks Used Avail Capacity /dev/mirror/gm0s1b 4167488 0 4167488 0% > 2) In case one of my disks fails (let's say ad2), what is the > correct procedure to exchange it? My guess: > - power down my machine If you have hot-swap drive bays, you can skip this step. > - insert new disk > - # gmirror configure -a gm0 > - # gmirror insert gm0 /dev/ad2 > - wait until > # gmirror list > shows both disks active again You should only need the insert command, and you can certainly use the system while the disks are syncing, you'll just have impaired performance. Cheers, -danny -- http://dannyman.toldme.com/