From owner-freebsd-questions@FreeBSD.ORG Tue Jun 10 16:01:23 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CC2610656A9 for ; Tue, 10 Jun 2008 16:01:23 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id C43AB8FC2B for ; Tue, 10 Jun 2008 16:01:22 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m5AG1Epf045295; Tue, 10 Jun 2008 17:01:15 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.5.5 smtp.infracaninophile.co.uk m5AG1Epf045295 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1213113676; bh=LbieTZQMkHEAzh T9HBn4zy2dCH/M1e8ZCYRFZCjurgo=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<484EA545.8090305@infracaninophile.co.uk>|Date:=20Tue,=2 010=20Jun=202008=2017:01:09=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.14=20(X11/20080607)|MIME-Version:=201 .0|To:=20Erik=20Trulsson=20|CC:=20DA=20Fors yth=20,=20freebsd-questions@freebsd.org|Subje ct:=20Re:=20xRAID=20disks....|References:=20<484EACEB.7169.43FE1258 @iwrtech.iwr.ru.ac.za>=20<20080610145926.GA66984@owl.midgard.homeip .net>|In-Reply-To:=20<20080610145926.GA66984@owl.midgard.homeip.net >|X-Enigmail-Version:=200.95.6|Content-Type:=20multipart/signed=3B= 20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"application/pgp-signat ure"=3B=0D=0A=20boundary=3D"------------enig2F5E6D9DD44A75508FE0B68 8"; b=a/4TctgI5p/kCDAHhY/BKS8OQr/haaUryF5Y4t7WCtBlDesZfIg5xZcve6PMX Kp1tFV2cmznHihj0SclamvlQqWVDoTVXGJPCWLY9qewtZnQ9pXUpdsvaofBnuGRK5Z/ 9mHh726D47fxl6IYsnbpZlkRNamAc2DQGdTXzQFzr8U= Message-ID: <484EA545.8090305@infracaninophile.co.uk> Date: Tue, 10 Jun 2008 17:01:09 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.14 (X11/20080607) MIME-Version: 1.0 To: Erik Trulsson References: <484EACEB.7169.43FE1258@iwrtech.iwr.ru.ac.za> <20080610145926.GA66984@owl.midgard.homeip.net> In-Reply-To: <20080610145926.GA66984@owl.midgard.homeip.net> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig2F5E6D9DD44A75508FE0B688" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Tue, 10 Jun 2008 17:01:16 +0100 (BST) X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org, DA Forsyth Subject: Re: xRAID disks.... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2008 16:01:23 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2F5E6D9DD44A75508FE0B688 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Erik Trulsson wrote: > On Tue, Jun 10, 2008 at 04:33:47PM +0200, DA Forsyth wrote: >> Hiya >> >> I've had this for a while now and have done many searches for info=20 >> but have not yet come up with the right question, hence have not got=20 >> the answer. >> >> My main server has an Adaptec IDE raid card. A couple of years ago I = >> took disks that had been a mirror pair on that card out of the server = >> and put them into my test server, not as a raid pair since the test=20 >> server has no raid hardware. >> >> During boot I see this >> ad0: 19092MB at ata0-master UDMA66 >> ad1: 76319MB at ata0-slave UDMA66 >> ad2: 76319MB at ata1-master UDMA66 >> ad3: 19092MB at ata1-slave UDMA66 >> ar0: 76319MB status: BROKEN >> ar0: disk0 DOWN no device found for this subdisk >> ar0: disk1 DOWN no device found for this subdisk >> >> The pair of ex-RAID disks are ad1 and ad2 and obviously are no longer = >> a raid pair, yet 'something' is telling the ar() driver to try and=20 >> pair them and failing because there is no raid hardware in that box. >> >> Now I am reconfiguring that machine a bit and would like to fix this, = >> both on these existing drives and on the 320MB drive I have just=20 >> removed from a RAID1 pair and will be putting into the box instead of = >> ad3 (the other 320GB from the pair is in a USB enclosure for other=20 >> purposes and has not shown any signs of knowing it was in a raid=20 >> pair) >> >> I suspect the raidinfo is stored on the disk somewhere and a suitable = >> 'dd' command can erase it. but where and how? >=20 > That kind of information is usually stored last on the disk (where it i= s > least likely to be overwritten by filesystems, partitioning info, or bo= ot > loaders), so if you overwrite the last couple of KBs on those disks you= will > probably be fine. > (If you want to be certain you can always use 'dd' to nuke all the > information on the disk. That will take longer time, but you get the e= xtra > advantage of testing all the blocks on the disk so that they work > correctly.) >=20 > For the first you could do something like: > dd if=3D/dev/zero of=3D/dev/ad1 bs=3D1m skip=3D76318 > which should overwrite the last MB of ad1 with zeros. >=20 > To erase all of the disk: > dd if=3D/dev/zero of=3D/dev/ad1 bs=3D1m It's rather easier and quite a lot less risky to simply do: # atacontrol delete ar0 Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig2F5E6D9DD44A75508FE0B688 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkhOpUoACgkQ8Mjk52CukIwOrgCeKqFF6s+kzxbB7P647qtZTLRX gu0An2Vpf73o214FzVEW+FHELYskIJqj =0DM7 -----END PGP SIGNATURE----- --------------enig2F5E6D9DD44A75508FE0B688--