Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Hot Swap Hard Drive - How To?
@ 2001-01-11 18:30 Marble Head
  2001-01-14  3:34 ` Byron Ala
  2001-01-15 23:01 ` Paavo Hartikainen
  0 siblings, 2 replies; 4+ messages in thread
From: Marble Head @ 2001-01-11 18:30 UTC (permalink / raw)


I have a machine running dual ev6, that has all the appropriate hardware 
for hot swapping hard drives.
Running RH 6.2, using the smp kernel.

I would like to add and remove a hard drive on the fly.  When I plug it in, 
the hardware reacts, but the software doesn't.

Can anybody tell me how (if) to let the kernel know that there is another 
hard drive, and then how to tell the kernel to stop using it, so it can 
safely be removed?

Of course, I am familiar with mount, umount, swapon, swapoff.  It's just a 
matter of having the kernel (or scripts) do something for me, and I don't 
know what...

Thanks in advance.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Hot Swap Hard Drive - How To?
  2001-01-11 18:30 Hot Swap Hard Drive - How To? Marble Head
@ 2001-01-14  3:34 ` Byron Ala
  2001-01-15 23:01 ` Paavo Hartikainen
  1 sibling, 0 replies; 4+ messages in thread
From: Byron Ala @ 2001-01-14  3:34 UTC (permalink / raw)


I am assuming that you have a 3 channel Mylex card for your hotswap config.
If you do not have a Mylex ( DAC960 for Alpha ) then all bets are off. Make
sure that when you run the RA200RCU in " ALPHABIOS " that controller
settings are set for recovery. Then, there is nothing for the software to
do. As far as it is concerned, it only sees what you've told the controller
to let it see. If you want to add a drive, you will have to bring down the
system and rerun RA200RCU. If this is not your configuration, and you are
using a third party RAID controller, this won't help you. If you have a
normal SCSI controller and you want to be able to hat swap drives, you are
taking your chances. The act of inserting or removing a drive in one of
these, causes SCSI Bus transitions, which can corrupt your data during the
transfer. If you stop all I/O on that bus before you remove or insert a
drive, you are safe. Do not expect any software to recognize the new drive
though. You will have to create the device drivers before you can do
anything with it.

Marble Head <nobody@nowhere.com> wrote in message
news:Xns90268C5B7nobodynowherecom@16.121.112.222...
> I have a machine running dual ev6, that has all the appropriate hardware
> for hot swapping hard drives.
> Running RH 6.2, using the smp kernel.
>
> I would like to add and remove a hard drive on the fly.  When I plug it
in,
> the hardware reacts, but the software doesn't.
>
> Can anybody tell me how (if) to let the kernel know that there is another
> hard drive, and then how to tell the kernel to stop using it, so it can
> safely be removed?
>
> Of course, I am familiar with mount, umount, swapon, swapoff.  It's just a
> matter of having the kernel (or scripts) do something for me, and I don't
> know what...
>
> Thanks in advance.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Hot Swap Hard Drive - How To?
  2001-01-11 18:30 Hot Swap Hard Drive - How To? Marble Head
  2001-01-14  3:34 ` Byron Ala
@ 2001-01-15 23:01 ` Paavo Hartikainen
  2001-01-17 15:25   ` Marble Head
  1 sibling, 1 reply; 4+ messages in thread
From: Paavo Hartikainen @ 2001-01-15 23:01 UTC (permalink / raw)


Marble Head writes:

> I would like to add and remove a hard drive on the fly.  When I plug
> it in, the hardware reacts, but the software doesn't.

> Can anybody tell me how (if) to let the kernel know that there is
> another hard drive, and then how to tell the kernel to stop using
> it, so it can safely be removed?

These work fine on my AXPpci 33 with built-in SCSI controller (and on
my SPARCstations) for finding SCSI devices that were not available
when the kernel was started:

  echo "scsi add-single-device 0 1 2 3" > /proc/scsi/scsi
  echo "scsi remove-single-device 0 1 2 3" > /proc/scsi/scsi
  # with "0 1 2 3" replaced by your "Host Channel Id Lun"

Device information shows up on "dmesg" and "/proc/scsi/scsi" after
successful probe.  I do not have SCA hardware, so it is not
recommended to connect and disconnect SCSI devices while the system is
up and running.

Look at lines 1666 and 1720 on Linux 2.4.0 source file
"/usr/src/linux/drivers/scsi/scsi.c" or lines 2363 and 2421 on Linux
2.2.18 source.

-- 
 "pienena   /  Paavo "Rainbow Rat" Hartikainen
  minusta  /  E-mail: pahartik@sci.fi
  tulee   /  URL: http://www.sci.fi/~pahartik/
  rotta" /  EFnet: pahartik at #Atari and #LionKing


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Hot Swap Hard Drive - How To?
  2001-01-15 23:01 ` Paavo Hartikainen
@ 2001-01-17 15:25   ` Marble Head
  0 siblings, 0 replies; 4+ messages in thread
From: Marble Head @ 2001-01-17 15:25 UTC (permalink / raw)


Paavo Hartikainen <pahartik@sci.fi> wrote in <87ofx8xvw4.fsf@zazu.vip.fi>:

>Marble Head writes:
>
>> I would like to add and remove a hard drive on the fly.  When I plug
>> it in, the hardware reacts, but the software doesn't.
>
>> Can anybody tell me how (if) to let the kernel know that there is
>> another hard drive, and then how to tell the kernel to stop using
>> it, so it can safely be removed?
>
>These work fine on my AXPpci 33 with built-in SCSI controller (and on
>my SPARCstations) for finding SCSI devices that were not available
>when the kernel was started:
>
>  echo "scsi add-single-device 0 1 2 3" > /proc/scsi/scsi
>  echo "scsi remove-single-device 0 1 2 3" > /proc/scsi/scsi
>  # with "0 1 2 3" replaced by your "Host Channel Id Lun"
>
>Device information shows up on "dmesg" and "/proc/scsi/scsi" after
>successful probe.  I do not have SCA hardware, so it is not
>recommended to connect and disconnect SCSI devices while the system is
>up and running.
>
>Look at lines 1666 and 1720 on Linux 2.4.0 source file
>"/usr/src/linux/drivers/scsi/scsi.c" or lines 2363 and 2421 on Linux
>2.2.18 source.
>

Byron and Paavo, thank you both very much.
I have a DS20, and until now I never questioned the wisdom of 
adding/removing a drive with the system running.  Mostly because another 
sys admin showed me how to do it on Tru64.
...
I'll go do some more research, and try to get a grip on this.
Thanks again.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-01-17 15:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-11 18:30 Hot Swap Hard Drive - How To? Marble Head
2001-01-14  3:34 ` Byron Ala
2001-01-15 23:01 ` Paavo Hartikainen
2001-01-17 15:25   ` Marble Head

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox