From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 25 12:54:53 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85DB116A401 for ; Tue, 25 Apr 2006 12:54:53 +0000 (UTC) (envelope-from gpt@tirloni.org) Received: from outbound-mail-13.bluehost.com (outbound-mail-13.bluehost.com [70.96.188.113]) by mx1.FreeBSD.org (Postfix) with SMTP id D81B543D58 for ; Tue, 25 Apr 2006 12:54:52 +0000 (GMT) (envelope-from gpt@tirloni.org) Received: (qmail 20379 invoked by uid 0); 25 Apr 2006 12:54:52 -0000 Received: from unknown (HELO box85.bluehost.com) (70.103.189.85) by mailproxy1.bluehost.com with SMTP; 25 Apr 2006 12:54:52 -0000 Received: from localhost ([127.0.0.1]) by box85.bluehost.com with esmtp (Exim 4.52) id 1FYN47-0006YZ-R8; Tue, 25 Apr 2006 06:54:51 -0600 X-Originating-IP: [208.24.179.208] Date: Tue, 25 Apr 2006 09:54:51 -0300 Received: from 208.24.179.208 ([208.24.179.208]) (SquirrelMail authenticated user gpt@tirloni.org) by 70.103.189.85 with HTTP; Tue, 25 Apr 2006 09:54:51 -0300 (BRT) Message-ID: <47542.208.24.179.208.1145969691.squirrel@70.103.189.85> In-Reply-To: <20060425151913.63f2463f.vlady@gbservices.biz> References: <20060425151913.63f2463f.vlady@gbservices.biz> From: "Giovanni P. Tirloni" To: "Vladimir Terziev" User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Identified-User: {566:box85.bluehost.com:tirlonio:tirloni.org} {sentby:program running on server} Cc: freebsd-hackers@freebsd.org Subject: Re: gmirror with hot spare X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Apr 2006 12:54:53 -0000 On Tue, April 25, 2006 9:19 am, Vladimir Terziev said: > > Hi hackers, > > is there a way to assign a hot spare disk/partition to a gmirror -ed > disks/partitions ? That's a good question. From the man pages there doesn't seem to exist anything to mark a insert disk as "disabled". Atacontrol has a "addspare" option. Just in case, to replace a faulty (SCSI) disk: gmirror remove gm0 da1 camcontrol stop da1 camcontrol rescan all camcontrol rescan all (after inserting replacement) gmirror insert gm0 da1 The same procedure in atacontrol would be similar to: atacontrol detach 3 atacontrol attach 3 atacontrol addspare ar0 ad6 atacontrol rebuild ar0 Good luck, -- Giovanni P. Tirloni http://www.tirloni.org