From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,26951bca97dd63cb X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-01-15 15:02:26 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!fr.clara.net!heighliner.fr.clara.net!news.tele.dk!194.255.56.67!newsfeed101.telia.com!newsrouter.euroconnect.net!news.clinet.fi!news.cc.tut.fi!uutiset.saunalahti.fi!not-for-mail From: Paavo Hartikainen Newsgroups: comp.os.linux.alpha Subject: Re: Hot Swap Hard Drive - How To? Date: 16 Jan 2001 01:01:31 +0200 Organization: Another Debian GNU/Linux Alpha&SPARC user Sender: pahartik@zazu.vip.fi Message-ID: <87ofx8xvw4.fsf@zazu.vip.fi> References: NNTP-Posting-Host: simpukka.saunalahti.fi X-Trace: tron.sci.fi 979599701 14065 195.74.0.20 (15 Jan 2001 23:01:41 GMT) X-Complaints-To: newsmaster@saunalahti.fi NNTP-Posting-Date: 15 Jan 2001 23:01:41 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: supernews.google.com comp.os.linux.alpha:1950 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