Re: Hot swap IDE

2000-10-06 Thread Andre Tomt

I know, replying "to the wrong person" is a little weak, but I lost the
original post in a hardware lockup on my workstation (2.4-test9, latest DRI
CVS code, mga HALlib), so this has to go. And please forgive me about
posting from MS Outlook Express this time, it's only temp :-)

> On Thu, 5 Oct 2000, Mitchell Hicks wrote:

> > there does not seem to be a command to reset the IDE buss(this is
mentioned
> > in the raid howto's) can i compile the IDE drivers as a module and
> > remove/install then while the system is running on the raid(i think
not)...
> > I'm booting from a 20 meg none raid drive (to be raid 1 in final
production)

A utility called "idectl" is bundled in the contrib directory of the hdparm
source. With this utility you can disable, enable and reset IDE channels
without rebooting or doing module inserts/removals. But I have to warn you -
it's highly experimental.

At home I have a RAID 1 setup, two IDE drives and one SCSI in my
coda/nfs/smb server. It's set up to have a spare MBR/bootblock on all
drives, so the BIOS can do failover to the next drive on failure. I have a
lilo.conf for each drive, with some tricks to make lilo happy when
installing the bootloader. It's working like a charm, using a RAID patch for
Linux 2.2 (2.4 RAID code mostly)

I did test hotswapping (alough the chipset or disks does not support it
native, standard VIA UDMA33 chipset), pulling random drives while the server
was running, with raidhotadd and idectl, it went along without a hitch. I DO
NOT hotswap IDE drives usually, this was only a test of what the setup was
able to handle. :)

--
André Tomt
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Hot swap IDE

2000-10-06 Thread Andre Hedrick


Unless you have a special bay that tri-states the buss or a host that does
it for the requested channel (yes that disables both devices) you can do
this once per mainboard.

There was a proposal for tri-stating the buss, but that was held for 2.5.
There is a partial reset IOCTL in 2.4, but it needs more additions to
recover the drive state.

Regardless, it can/has/currently can be done, just the general kernels can
not do it yet.

There is a cool card by Iwill that is HPT368 based that does this nicely.

You stoke the card the right way and the drive power goes away, then
stroke it a different way to tri-state the channel...etc
Pull ribbon first then power connector and change drives.

Reconnect power first to set interface to tri-state (obviously the gound
lines define the state) then the ribbon, stroke channel active, then
stroke the power.

Init device rescan (missing), revalidation (present), etc ..

Forgot the rest but it is written somewhere in the cave.

 
On Thu, 5 Oct 2000, Mitchell Hicks wrote:

> Lots of great info on the list thank you all!!!
> after reading i think most of the software raid howto's and hardware one's 
> also..
> I've Built a box with 3 drives and a hot spare..
> 
> p iii 500 256meg ram aus mother board (i think via chip set)
> two promise ata66 cards and 5 30 gig maxtor drives in promise ata66 hot 
> swap drive bays.
> 
> windows nt... just kidding... linux2.4.0-test9 and it's working great... 
> worked in test8 test6 was not good
> I have not had to rebuild the array from scratch since moving to test8 (the 
> hotremove did not work)
> 
> if i compile the promise drivers then when i power off a drive for testing 
> a failure the system freezes(i might not have done the sysrq correctly) i 
> have to power off the system
> 
> if i don't compile the promise drivers i can enable DMA (and am very happy 
> very FAST).
> 
> there does not seem to be a command to reset the IDE buss(this is mentioned 
> in the raid howto's) can i compile the IDE drivers as a module and 
> remove/install then while the system is running on the raid(i think not)... 
> I'm booting from a 20 meg none raid drive (to be raid 1 in final production)
> 
> i can replace the drive but it must be with the same type of drive... but 
> the system's not really happy about the drive change and complains if the 
> drive was partioned ..
> 
> ide software raid seems soo close to ready for production...
> 
> I have turned the system OFF several times and just turned off one drive... 
> then the system while it's rebuilding the array... even booted with a 
> failed drive...
> 
> I tried some of this stuff with 2.2.16 redhat it was ugly..  as in 
> complete reinstall and the system could not boot  if a drive was failed (i 
> accepect that this could be me)
> 
> Thank you for your time... and a GREAT OS
> 
> Mitchell Hicks
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [EMAIL PROTECTED]
> Please read the FAQ at http://www.tux.org/lkml/
> 

Andre Hedrick
The Linux ATA/IDE guy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Hot swap IDE

2000-10-06 Thread Andre Hedrick


Unless you have a special bay that tri-states the buss or a host that does
it for the requested channel (yes that disables both devices) you can do
this once per mainboard.

There was a proposal for tri-stating the buss, but that was held for 2.5.
There is a partial reset IOCTL in 2.4, but it needs more additions to
recover the drive state.

Regardless, it can/has/currently can be done, just the general kernels can
not do it yet.

There is a cool card by Iwill that is HPT368 based that does this nicely.

You stoke the card the right way and the drive power goes away, then
stroke it a different way to tri-state the channel...etc
Pull ribbon first then power connector and change drives.

Reconnect power first to set interface to tri-state (obviously the gound
lines define the state) then the ribbon, stroke channel active, then
stroke the power.

Init device rescan (missing), revalidation (present), etc ..

Forgot the rest but it is written somewhere in the cave.

 
On Thu, 5 Oct 2000, Mitchell Hicks wrote:

 Lots of great info on the list thank you all!!!
 after reading i think most of the software raid howto's and hardware one's 
 also..
 I've Built a box with 3 drives and a hot spare..
 
 p iii 500 256meg ram aus mother board (i think via chip set)
 two promise ata66 cards and 5 30 gig maxtor drives in promise ata66 hot 
 swap drive bays.
 
 windows nt... just kidding... linux2.4.0-test9 and it's working great... 
 worked in test8 test6 was not good
 I have not had to rebuild the array from scratch since moving to test8 (the 
 hotremove did not work)
 
 if i compile the promise drivers then when i power off a drive for testing 
 a failure the system freezes(i might not have done the sysrq correctly) i 
 have to power off the system
 
 if i don't compile the promise drivers i can enable DMA (and am very happy 
 very FAST).
 
 there does not seem to be a command to reset the IDE buss(this is mentioned 
 in the raid howto's) can i compile the IDE drivers as a module and 
 remove/install then while the system is running on the raid(i think not)... 
 I'm booting from a 20 meg none raid drive (to be raid 1 in final production)
 
 i can replace the drive but it must be with the same type of drive... but 
 the system's not really happy about the drive change and complains if the 
 drive was partioned ..
 
 ide software raid seems soo close to ready for production...
 
 I have turned the system OFF several times and just turned off one drive... 
 then the system while it's rebuilding the array... even booted with a 
 failed drive...
 
 I tried some of this stuff with 2.2.16 redhat it was ugly..  as in 
 complete reinstall and the system could not boot  if a drive was failed (i 
 accepect that this could be me)
 
 Thank you for your time... and a GREAT OS
 
 Mitchell Hicks
 
 -
 To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
 the body of a message to [EMAIL PROTECTED]
 Please read the FAQ at http://www.tux.org/lkml/
 

Andre Hedrick
The Linux ATA/IDE guy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Hot swap IDE

2000-10-06 Thread Andre Tomt

I know, replying "to the wrong person" is a little weak, but I lost the
original post in a hardware lockup on my workstation (2.4-test9, latest DRI
CVS code, mga HALlib), so this has to go. And please forgive me about
posting from MS Outlook Express this time, it's only temp :-)

 On Thu, 5 Oct 2000, Mitchell Hicks wrote:
snip
  there does not seem to be a command to reset the IDE buss(this is
mentioned
  in the raid howto's) can i compile the IDE drivers as a module and
  remove/install then while the system is running on the raid(i think
not)...
  I'm booting from a 20 meg none raid drive (to be raid 1 in final
production)

A utility called "idectl" is bundled in the contrib directory of the hdparm
source. With this utility you can disable, enable and reset IDE channels
without rebooting or doing module inserts/removals. But I have to warn you -
it's highly experimental.

At home I have a RAID 1 setup, two IDE drives and one SCSI in my
coda/nfs/smb server. It's set up to have a spare MBR/bootblock on all
drives, so the BIOS can do failover to the next drive on failure. I have a
lilo.conf for each drive, with some tricks to make lilo happy when
installing the bootloader. It's working like a charm, using a RAID patch for
Linux 2.2 (2.4 RAID code mostly)

I did test hotswapping (alough the chipset or disks does not support it
native, standard VIA UDMA33 chipset), pulling random drives while the server
was running, with raidhotadd and idectl, it went along without a hitch. I DO
NOT hotswap IDE drives usually, this was only a test of what the setup was
able to handle. :)

--
André Tomt
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/