From owner-freebsd-questions Fri Jul 31 18:42:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA11139 for freebsd-questions-outgoing; Fri, 31 Jul 1998 18:42:03 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA11085 for ; Fri, 31 Jul 1998 18:41:57 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id LAA06860; Sat, 1 Aug 1998 11:11:39 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id LAA17490; Sat, 1 Aug 1998 11:11:36 +0930 (CST) Message-ID: <19980801111136.P11960@freebie.lemis.com> Date: Sat, 1 Aug 1998 11:11:36 +0930 From: Greg Lehey To: "Daniel T. Hagan" , questions@FreeBSD.ORG Subject: Re: Disk mirroring with ccd References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Daniel T. Hagan on Fri, Jul 31, 1998 at 03:34:37PM -0400 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Friday, 31 July 1998 at 15:34:37 -0400, Daniel T. Hagan wrote: >> From the man page for ccd(8): > > Disk Mirroring > You can configure the ccd to ``mirror'' any even number of disks. > See ccdconfig(8) for how to specify the necessary flags. In an event of a > disk failure, you can use dd(1) to recover the failed disk. Note that a > one-disk ccd is not the same as the original partition. In particular, > this means if you have a filesystem on a two-disk mirrored ccd and one of > the disks fail, you cannot mount and use the remaining partition as > itself; you have to configure it as a one-disk ccd. > > Just to be sure I understand what this is saying, if I have: > > ccd0 ?? CCDF_MIRROR /dev/sd1e /dev/sd2e > > as the configuration, and sd1 fails, can I change the configuration to: > > ccd0 ?? none /dev/sd2e > > And recover the data from ccd0? Correct. > As an added question, how does interleaving affect disk mirroring under > ccd? It spreads the data more evenly, thus balancing the load on the disks. In combination with mirroring, you need at least 4 disks. > Any recommended values? 256 kB. It should be large enough that most requests just go to one stripe, and small enough to balance the access well. You might like to check out Vinum, a replacement for ccd. http://www.lemis.com/vinum.html. Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message