From owner-freebsd-questions@FreeBSD.ORG Sat Feb 14 16:31:08 2009 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 504DE106566C for ; Sat, 14 Feb 2009 16:31:08 +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 A64FE8FC0C for ; Sat, 14 Feb 2009 16:31:07 +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.3/8.14.3) with ESMTP id n1EGUuEn035195; Sat, 14 Feb 2009 16:30:58 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.1 smtp.infracaninophile.co.uk n1EGUuEn035195 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1234629058; bh=+98oY35O0zSVRDLrNcArtQXpzWQQ30G7yQ8Bss1WTZE=; 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=Message-ID:=20<4996F1BA.1060305@infracaninophile.co.uk>|Date:=20S at,=2014=20Feb=202009=2016:30:50=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.19=20(X11/20090125)|MIME-Vers ion:=201.0|To:=20nrml@att.net|CC:=20freebsd-questions@freebsd.org| Subject:=20Re:=20FreeBSD=20Preferred=20RAID=20controllers|Referenc es:=20<73335.82543.qm@web83808.mail.sp1.yahoo.com>|In-Reply-To:=20 <73335.82543.qm@web83808.mail.sp1.yahoo.com>|X-Enigmail-Version:=2 00.95.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha256= 3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20bound ary=3D"------------enigFB1A82971DBDCBB20040FDE4"; b=N3dk/oOSocjRuKl/amytbXv+xfKfkhet9S7rk/XLYsDbYPMa0evGWogGifGtzXItD HDGAton9YKzLNXyOzk44rlaQByHWB/HQA9QnvAtAVoSKGdcym/DiJtcDmAmHvlmAWY nfhXe7jbnrg8c7Fc/zt7brx4tPSkwMkyvrwVrRI4= Message-ID: <4996F1BA.1060305@infracaninophile.co.uk> Date: Sat, 14 Feb 2009 16:30:50 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.19 (X11/20090125) MIME-Version: 1.0 To: nrml@att.net References: <73335.82543.qm@web83808.mail.sp1.yahoo.com> In-Reply-To: <73335.82543.qm@web83808.mail.sp1.yahoo.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigFB1A82971DBDCBB20040FDE4" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [IPv6:::1]); Sat, 14 Feb 2009 16:30:58 +0000 (GMT) X-Virus-Scanned: ClamAV 0.94.2/8990/Sat Feb 14 04:27:24 2009 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD Preferred RAID controllers 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: Sat, 14 Feb 2009 16:31:08 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFB1A82971DBDCBB20040FDE4 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Gabe wrote: > --- On Mon, 2/9/09, Matthew Seaman wr= ote: >=20 >> From: Matthew Seaman >> Subject: Re: FreeBSD Preferred RAID controllers >> To: nrml@att.net >> Cc: freebsd-questions@freebsd.org >> Date: Monday, February 9, 2009, 3:08 PM >> Gabe wrote: >> >>> Now with a gstripe+gmirror setup, would it be possible >> to fail a >>> specific drive on purpose? I mean fail a (good) drive, >> pull it out, >>> replace it and rebuild(?) it. I know I know, but humor >> me. >> >> Yes. >> >> Cheers, >> >> Matthew >> >> Well, to 'fail' the drive, you'ld have to >> physically pull the drive >> from the chassis which will involve a power cycle unless >> you've got >> hot-swap drives. Of course, you should confirm that your >> system will >> boot with the RAID in a degraded state and that rebuilding >> the RAID will >> continue even if interrupted by a reboot. gmirror(8) >> passes those >> tests. You do have to type some commands to get a mirror >> to rebuild >> (examples are shown in the man page) unlike some hardware >> RAIDs where >> simply inserting an unused disk is sufficient. >> >> -- Dr Matthew J Seaman MA, D.Phil. 7 >> Priory Courtyard >> Flat 3 >> PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate >> Kent, CT11 >> 9PW >=20 > Hello again all, >=20 > So I wanted to test out gmirror on software RAID so I installed a compl= etely vanilla FBSD 7, as base an install as you can get, it hasn't even b= een on the network. Anyway, I did the following upon first boot to get gm= irror going: >=20 > # sysctl kern.geom.debugflags=3D17 >=20 > Then: > # gmirror label -vb round-robin gm0 /dev/ad0 >=20 > Then: > # gmirror load >=20 > Then: > # echo 'geom_mirror_load=3D"YES"' >> /boot/loader.conf >=20 > Then I edited /etc/fstab to show: > /dev/mirror/gm0s1b none swap sw 0 0 > /dev/mirror/gm0s1a / ufs rw 1 1 > /dev/mirror/gm0s1e /tmp ufs rw 0 0 > /dev/mirror/gm0s1f /usr ufs rw 2 2 > /dev/mirror/gm0s1d /var ufs rw 2 2 >=20 > I then rebooted the system, once I setup the mirror: >=20 > # gmirror insert gm0 /dev/ad1 > # gmirror status >=20 > and it shows as COMPLETE. Okay, here comes the annoying part, I've got = hot-swappable bays and I went ahead and pulled the drive. I then tried to= write to the disk so that it realizes the disk is no longer there: >=20 > # touch file >=20 > once I do that and execute: gmirror status it shows as degraded. All fi= ne and dandy. However when it comes time to pop the drive back in the dri= ve is not recognized at all. I mean, the green light on the bay comes on = so it definitely makes a connection but then thats it, atacontrol list do= esn't list it and gmirror status still shows the same, degraded. >=20 > What gives? I wonder if this is hardware related? Bios related even? An= y clues? See atacontrol(8) # atacontrol list shows what your system knows is there # atacontrol attach X where X is the channel number, probes and attaches any devices on that channel in exactly the same way it is done at system boot. See camcontrol(8) if you've got SCSI drives. 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 --------------enigFB1A82971DBDCBB20040FDE4 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.10 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkmW8cAACgkQ8Mjk52CukIwPTQCfdWNHzhVasdVLddp3wkYRULdA ClUAn2yNPKEShgM4aRsIZXfVoNsrV08d =173c -----END PGP SIGNATURE----- --------------enigFB1A82971DBDCBB20040FDE4--