From owner-freebsd-current@FreeBSD.ORG Fri Oct 29 20:22:38 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 982D516A4CE for ; Fri, 29 Oct 2004 20:22:38 +0000 (GMT) Received: from chello084114137224.1.15.vie.surfer.at (chello084114137224.1.15.vie.surfer.at [84.114.137.224]) by mx1.FreeBSD.org (Postfix) with SMTP id B466043D49 for ; Fri, 29 Oct 2004 20:22:37 +0000 (GMT) (envelope-from 4711@chello.at) Received: (qmail 76120 invoked from network); 29 Oct 2004 20:22:35 -0000 Received: from matrix010.matrix.net (192.168.123.10) by ns.matrix.net with SMTP; 29 Oct 2004 20:22:35 -0000 From: Christian Hiris <4711@chello.at> To: freebsd-current@freebsd.org Date: Fri, 29 Oct 2004 22:22:20 +0200 User-Agent: KMail/1.7 References: <217202CB5FF8AE439E263CE3D48ECB50757E5D@honda.int.hansa.lt> <41828271.60808@tirloni.org> In-Reply-To: <41828271.60808@tirloni.org> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200410292222.35572.4711@chello.at> cc: "Giovanni P. Tirloni" cc: Putinas Piliponis 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:22:38 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 29 October 2004 19:48, Giovanni P. Tirloni wrote: > Putinas Piliponis wrote: > > atacontrol addspare ar0 ad6 should do the trick > > If I try that with the ad6 disk removed I get the following error: > > atacontrol: ioctl(ATARAIDADDSPARE): Device not configured If I remember right, 'raid' should reflect the number of the array, not the devicename: atacontrol addspare 0 ad6. > If I insert the disk I had removed (but this time I formated it > through the BIOS) it panics with the following message: If you are not 100pct sure that FreeBSD supports your raid-controller's hardware bits, don't manipulate an ataraid-created array via the controller's bios. The raid-controller might overwrite your ataraid-bits. > > ar0: 152627MB [19457/255/63] status: READY > subdisks: > disk0 READY on ad4 at ata2-master > disk1 READY on ad6 at ata3-master > SPM: AP CPU #1 Launched! > Mounting root from ufs:/dev/ar0s1a > /: bad dir ino 2 at offset 0: mangled entry > /: bad dir ino 2 at offset 0: mangled entry > /: bad dir ino 2 at offset 0: mangled entry > /: bad dir ino 2 at offset 0: mangled entry > /: bad dir ino 2 at offset 0: mangled entry > init: not found in path /sbin/init:/sbin/oinit:/sbin/init.bak: > /stand/sysinstall > panic: no init > cpuid = 1 > boot() called on cpu#1 > Uptime: 1s > > I'm worried about how am I going to replace a dead disk if it won't > let me boot with a new disk inserted as ad6. Try to overwrite the first few sectors of your spare disk (ad6) with zeroes. Possibly there were some bits from your old ataraid or your raid-controller left. You can do this by using the 'dd' command or a tool from your hardware vendor. If your disk is "clean" retry the addspare and then rebuild your mirror. # dd if=/dev/zero of=/dev/ad6 bs=512 count=128 # atacontrol addspare 0 ad6 # atacontrol rebuild 0 HTH, ch - -- Christian Hiris <4711@chello.at> | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBgqaL09WjGjvKU74RAtI3AJwMvxvD1svk2hJUZQl1Du+5BDlK+QCcD4Xb DtXfm3hUe3Plo6bYjbku00o= =Vvqh -----END PGP SIGNATURE-----