atacontrol Raid, cannot re-add member to array

2004-06-29 Thread Conrad Burger

Click here to view our e-mail legal notice:
http://www.swistgroup.com/email.htm or call: +27 21 888 7920


Hi all,

I'm investigating atacontrol raid as an alternative to vinum.
So far it has worked great.

That's until I unplugged one of the array members.
The system boots up fine from the second disk, 
but the problem ... I can't get atacontrol to rebuild the mirror onto the disk
that was removed. 

I have tried every command on the atacontrol man page, but to no avail.

OS : FreeBSD 4.10 
System : P3
IDE controller : Intel ICH2 ATA100 controller 
and 2 x 40 GB disks.

On FreeBSD 5  atacontrol has an additional command "addspare" that I have used
with success to 
add a disk to a RAID1 array and rebuild it.

Now that you know some of the details,
here are the questions
1.. How "safe" is the atacontrol raid feature? 
2.. How do I rebuild an atacontrol RAID1 array on FreeBSD 4.10?


Any help would be appreciated, I have been at it the whole day!

Regards 
Conrad Burger 
Support Engineer 
TEBiVO Business Continuity 
Cell: +27 82 442 8760 
conrad[at]tebivo[dot]com 
Tel: +27 21 888 7956 Fax: +27 21 888 7979 
 

Click here to view our e-mail legal notice: 
http://www.tebivo.com/email.htm or call: +27 21 888 7920 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: atacontrol Raid, cannot re-add member to array

2004-07-04 Thread Harald Schmalzbauer
Am Donnerstag, 1. Juli 2004 09:32 schrieb Steve O'Hara-Smith:
> On Tue, 29 Jun 2004 13:40:11 +0200
>
> "Conrad Burger" <[EMAIL PROTECTED]> wrote:
> > That's until I unplugged one of the array members.
> > The system boots up fine from the second disk,
> > but the problem ... I can't get atacontrol to rebuild the mirror onto the
> > disk that was removed.
> >
> > I have tried every command on the atacontrol man page, but to no avail.
>
>   I came across this advice in a December 2003 posting here, I'd be
> interested to know if it works for you.
>
> ---
> From: Harald Schmalzbauer <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED], <[EMAIL PROTECTED]>
> Subject: Re: Problem with Sil 680 RAID card
> Date: Thu, 4 Dec 2003 15:04:41 +0100
>
> 
>
> Rebuilding is a bit complex. You have to do a 'atacontrol detach
> "channelOfTheFailedDrive"'
> and 'atacontrol attach "channelOfTheFailedDrive"' then 'atacontrol rebuild
> ar0'

This was only for the sil0680 chipset. HPT372 e.g. is completley unsupported 
in -stable.
I've never tried ataraid with "non-raid" controllers but I doubt that 
detach/attach would work. I asked Søren about the missing addspare in -stable 
but never got any answer.

I just had extreme problems with ataraid on -current and am awaiting some 
response about these issues, I just can hope that some time ataraid will be 
lifted to what the man page promises.

-Harry

> 


pgpt2aMP0gYGO.pgp
Description: signature


Re: atacontrol Raid, cannot re-add member to array

2004-07-04 Thread Simon L. Nielsen
On 2004.07.04 23:33:28 +0200, Harald Schmalzbauer wrote:

> I've never tried ataraid with "non-raid" controllers but I doubt that 
> detach/attach would work.

It does work, you "just" have to hotswap the disk [1].  I tried it
some time ago, and I successfully did a rebuild, though I did kill one
of the disks shortly after since I tried to plug in the power cable
the wrong way during another test (yes that's stupid, I know :-) ).

> I asked Søren about the missing addspare in -stable 
> but never got any answer.

AFAIK Søren does not update the ata driver in stable since it's
somewhat different than the one in -CURRENT, and he does not have the
time to maintain both codebases.

AFAIR somebody made a patch for addspare functionality on -STABLE not
to long ago.  It should be in GNATS somewhere.

> I just had extreme problems with ataraid on -current and am awaiting some 
> response about these issues, I just can hope that some time ataraid will be 
> lifted to what the man page promises.

Well, I'm using it just fine on my main mailserver (running 5.2.1) but
that's a RAID1 with standard a ATA controller.

[1] WARNING: If you try to hotswap a disk without the proper hardware
you might kill your disk (and possibly other parts of the computer)...

-- 
Simon L. Nielsen
FreeBSD Documentation Team


pgpLB97JaIKEn.pgp
Description: PGP signature


Re: atacontrol Raid, cannot re-add member to array

2004-07-04 Thread Doug Ambrisko
Harald Schmalzbauer writes:
| I've never tried ataraid with "non-raid" controllers but I doubt that 
| detach/attach would work. I asked S?ren about the missing addspare in -stable 
| but never got any answer.

I've add addspare and some other features in my 4.10 Release patches:
http://www.ambrisko.com/doug/ata/ata_stable_sata_5.patch

You might want to give that a try.

Doug A.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: atacontrol Raid, cannot re-add member to array

2004-07-04 Thread Harald Schmalzbauer
Am Montag, 5. Juli 2004 01:21 schrieb Doug Ambrisko:
> Harald Schmalzbauer writes:
> | I've never tried ataraid with "non-raid" controllers but I doubt that
> | detach/attach would work. I asked S?ren about the missing addspare in
> | -stable but never got any answer.
>
> I've add addspare and some other features in my 4.10 Release patches:
>   http://www.ambrisko.com/doug/ata/ata_stable_sata_5.patch
>
> You might want to give that a try.

Ughh, if I knew that 3 days eralier

First, thank you very much for wour work, but since I couldn't get a promise 
Fasttrak100 tx2 over the weekend (which is very well supported by Sørens 
ataraid) I replaced my sil0680 with a hpt372 and played with the original 
HighPoint drivers (http://www.highpoint-tech.com/USA/b372.htm#FreeBSD) and 
although the module I'm using is for 4.9, it works flawlessly on 4.10-stable. 
Via sysctl hpt37x2.status you can use all functions like with the bios, also 
auto rebuild et cetera works perfectly. (alias raidinfo 'sysctl 
hpt37x2.status')
The main reason why I couldn't use the hpt37(2) with 4.10 was that if one 
drive fails, ataraid removes the drive from the raid configuration. If now 
the same drives returnes (like it happens sometimes after a reboot) you have 
two (ar0 and ar1) arrays. Now you have to know which drive failed and which 
one the controller reports as remaining drive for the original array and dd 
(if=/dev/zero of=/dev/ad? count=63) the opposite drive.
Otherwise the system ends up in booting from ar0, which in my case was the 
"failed" disk, returning after a reboot, and so I had a inconsistent several 
weeks old system.

Your patch my be great for all sil0680 useres but hpt370 users really should 
use the manufacturers driver. You can see a dmesg with them at 
http://www.schmalzbauer.de/netz/dmesg.korso

Best regards,

-Harry



>
> Doug A.


pgpMWaRFAIT5b.pgp
Description: signature


Re: atacontrol Raid, cannot re-add member to array

2004-07-04 Thread Harald Schmalzbauer
Am Montag, 5. Juli 2004 01:21 schrieb Doug Ambrisko:
> Harald Schmalzbauer writes:
> | I've never tried ataraid with "non-raid" controllers but I doubt that
> | detach/attach would work. I asked S?ren about the missing addspare in
> | -stable but never got any answer.
>
> I've add addspare and some other features in my 4.10 Release patches:
>   http://www.ambrisko.com/doug/ata/ata_stable_sata_5.patch
>
> You might want to give that a try.

Like said at the list, thank you. But for a few hours the experimenting 
machine from the last three days turned productive (as you can see in the 
header).
I'm really sorry, but I'm not brave enough to try your patch with this system. 
It's really quiet horrible if my internal mta and much more painful my IMAP 
server, which is on that machine, dies.
But if I'll have a chance to test it I'll do it immediately and drop you a 
note. (I have only a spare sil0680 and hopefully a FastTrak100 TX2 but this 
one is perfectly sopported anyway)

Thank you,

-Harry

>
> Doug A.
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pgpro4Yp61oPt.pgp
Description: signature


Re: atacontrol Raid, cannot re-add member to array

2004-07-04 Thread Harald Schmalzbauer
Am Montag, 5. Juli 2004 02:07 schrieb Harald Schmalzbauer:
[...]
> > I've add addspare and some other features in my 4.10 Release patches:
> > http://www.ambrisko.com/doug/ata/ata_stable_sata_5.patch
> >
> > You might want to give that a try.
>
> Like said at the list, thank you. But for a few hours the experimenting
> machine from the last three days turned productive (as you can see in the
[...]

Sorry, it's late here. Should have been a private message.

-Harry


pgpvKN34K4rNV.pgp
Description: signature


Re: atacontrol Raid, cannot re-add member to array

2004-07-04 Thread Paul Mather
On Sun, 2004-07-04 at 18:10, Simon L. Nielsen wrote:
> On 2004.07.04 23:33:28 +0200, Harald Schmalzbauer wrote:
> 
> > I've never tried ataraid with "non-raid" controllers but I doubt that 
> > detach/attach would work.
> 
> It does work, you "just" have to hotswap the disk [1].  I tried it
> some time ago, and I successfully did a rebuild, though I did kill one
> of the disks shortly after since I tried to plug in the power cable
> the wrong way during another test (yes that's stupid, I know :-) ).

So does this mean ATA RAID doesn't work on "non-raid" controllers that
have non-hot swappable drives attached?  (E.g., a drive get hard errors,
is marked as failed and the RAID as DEGRADED, and you have to shut down
the machine to remove and replace it---but ATA RAID won't recognise
it/rebuild onto it when you reboot with the replacement drive.)

If that is the case, the man page really should note that serious
limitation.

I have tried the detach/attach on a non-raid controller to simulate
failure and have *never* managed to get rebuild to work.  I've also
tried the shutdown/remove/replace/reboot method but, again, *never*
managed to get rebuild to work on a "non-raid" controller. :-(

I've never had any hotswap-capable drives to test the hot-swap
replacement/rebuild method. :-(

> Well, I'm using it just fine on my main mailserver (running 5.2.1) but
> that's a RAID1 with standard a ATA controller.

I wish it would work for me. :-)  I have a non-raid controller 5.2.1
system that I tried it on (with non-hot swap drives) that I eventually
had to bail and use Vinum on.  Alas, Vinum seems to be rotting at a fast
pace in CURRENT, so I'm worried about the prospect of being able to
upgrade that system when 5.3 rolls around... :-(

Cheers,

Paul.
-- 
e-mail: [EMAIL PROTECTED]

"Without music to decorate it, time is just a bunch of boring production
 deadlines or dates by which bills must be paid."
--- Frank Vincent Zappa

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"