From owner-freebsd-geom@FreeBSD.ORG Sat Mar 25 14:40:43 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87C2616A429 for ; Sat, 25 Mar 2006 14:40:43 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAF3843D68 for ; Sat, 25 Mar 2006 14:40:38 +0000 (GMT) (envelope-from cochard@gmail.com) Received: by nproxy.gmail.com with SMTP id q29so624332nfc for ; Sat, 25 Mar 2006 06:40:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:references; b=reFEvCzn447Ha34Bn6j6a9pC58IpjDl0NRsZIUb2k2ZkXZo6FPI+P+MigtHnAVI9wDZ3igM6zv3CtTk2GR2gxAnCsGXx/RO95EAVIn0bSlM+BQ6mwSy8rjFqVo9oNCTKZWjohFEqe8zRQ/HmOZm/i+jgzkiShT9jV6yikzias2Q= Received: by 10.48.163.5 with SMTP id l5mr802971nfe; Sat, 25 Mar 2006 06:14:17 -0800 (PST) Received: by 10.48.216.14 with HTTP; Sat, 25 Mar 2006 06:14:16 -0800 (PST) Message-ID: <3131aa530603250614m7d815306l@mail.gmail.com> Date: Sat, 25 Mar 2006 15:14:16 +0100 From: "Olivier Cochard" Sender: cochard@gmail.com To: freebsd-geom@freebsd.org In-Reply-To: MIME-Version: 1.0 References: <3131aa530603111021x183cdb67y@mail.gmail.com> <3131aa530603141459ge9bf401u@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: gvinum: problem for adding drives X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Olivier Cochard List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Mar 2006 14:40:43 -0000 I try to use the 'sd length 0' for mirroring 2 disks of different size. - ad0 is a 102Mb hard drive - ad1 is a 204Mb hard drive Then I use "concat" for obtain mirroring (chapter 19.6.2 "Increased Resilience: Mirroring" of the FreeBSD handbook). Here is the config file: $ cat /var/etc/raid.conf drive disk_ad0 device /dev/ad0s1a drive disk_ad1 device /dev/ad1s1a volume titi plex org concat sd length 0 drive disk_ad0 plex org concat sd length 0 drive disk_ad1 Normally, I should have one volume of 102Mb... But gvinum create a volume of 204Mb... Software RAID information and status: 2 drives: D disk_ad1 State: up /dev/ad1s1a A: 0/204 MB (0%) D disk_ad0 State: up /dev/ad0s1a A: 0/102 MB (0%) 1 volume: V titi State: up Plexes: 2 Size: 204 MB 2 plexes: P titi.p1 C State: up Subdisks: 1 Size: 204 MB P titi.p0 C State: up Subdisks: 1 Size: 102 MB 2 subdisks: S titi.p1.s0 State: up D: disk_ad1 Size: 204 MB S titi.p0.s0 State: up D: disk_ad0 Size: 102 MB Then here are my question: - Is 'concat' equivalent to mirroring ? - Can I use a 'sd lenght 0' for disk with different size for 'concat' ? Thanks, Olivier 2006/3/15, Lukas Ertl : > > On Tue, 14 Mar 2006, Olivier Cochard wrote: > > > Is the 'sd length 0 drive' works for all RAID type ? > > Yes. > > regards, > le > > -- > Lukas Ertl http://homepage.univie.ac.at/l.ertl/ > le@FreeBSD.org http://people.freebsd.org/~le/ >