Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Paavo Hartikainen <pahartik@sci.fi>
Subject: Re: Hot Swap Hard Drive - How To?
Date: 16 Jan 2001 01:01:31 +0200	[thread overview]
Message-ID: <87ofx8xvw4.fsf@zazu.vip.fi> (raw)
In-Reply-To: Xns90268C5B7nobodynowherecom@16.121.112.222

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


  parent reply	other threads:[~2001-01-15 23:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2001-01-17 15:25   ` Marble Head
read-only archive

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