From owner-freebsd-current@FreeBSD.ORG Fri Oct 29 20:39:58 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D303F16A4CE for ; Fri, 29 Oct 2004 20:39:58 +0000 (GMT) Received: from srv1a-cta.bs2.com.br (srv1a-cta.bs2.com.br [200.203.183.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A1DA43D1F for ; Fri, 29 Oct 2004 20:39:58 +0000 (GMT) (envelope-from gpt@tirloni.org) Received: from localhost (srv1a-cta.bs2.com.br [200.203.183.35]) by srv1a-cta.bs2.com.br (Postfix) with ESMTP id 862431C6727; Fri, 29 Oct 2004 17:39:55 -0300 (BRST) Received: from [192.168.0.97] (200-138-094-229.mganm7002.dsl.brasiltelecom.net.br [200.138.94.229]) by srv1a-cta.bs2.com.br (Postfix) with ESMTP id DA6481C6671; Fri, 29 Oct 2004 17:39:54 -0300 (BRST) Message-ID: <4182AA9A.8020406@tirloni.org> Date: Fri, 29 Oct 2004 17:39:54 -0300 From: "Giovanni P. Tirloni" User-Agent: Mozilla Thunderbird 0.8 (X11/20040926) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Putinas Piliponis References: <217202CB5FF8AE439E263CE3D48ECB50757E5D@honda.int.hansa.lt> In-Reply-To: <217202CB5FF8AE439E263CE3D48ECB50757E5D@honda.int.hansa.lt> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: current@freebsd.org Subject: Re: atacontrol and SATA RAID X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2004 20:39:58 -0000 Giovanni P. Tirloni wrote: > Putinas Piliponis wrote: > >> atacontrol addspare ar0 ad6 should do the trick Yay, it worked. Here are the steps that I've followed to simulate a disk failure. I hope this helps anyone having the same problem. I'm using FreeBSD 5.3-RC1 with two Seagate SATA 160GB disks. 1. Turned machine off 2. Removed ad6 3. Turned it on 4. Ok, everything working fine (array in degraded mode) 5. Turned it off Now I'm going to format ad6 through the BIOS 1. Inserted ad6 cable again 2. Turned machine on 3. Entered Adaptec HostRAID BIOS 4. Formated ad6 5. FreeBSD boots, array in degraded mode 6. atacontrol detach 3 (system says ad6 was removed from config) 7. atacontrol attach 3 8. atacontrol addspare ar0 ad6 9. atacontrol rebuild ar0 On another terminal "atacontrol status ar0" returns: ar0: ATA RAID1 subdisks: ad4 ad6 status: REBUILDING 3% completed I did this process in multi-user mode then I began to think about what would happen if I changed the files somehow. Would that cause data corruption too? I think I should have done this in single-user mode. Thanks, -- Giovanni P. Tirloni