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-17 07:37:05 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!logbridge.uoregon.edu!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!newsgate.tandem.com!mailint03.im.hou.compaq.com!pa.dec.com!sniff.shr.dec.com!not-for-mail From: nobody@nowhere.com (Marble Head) Newsgroups: comp.os.linux.alpha Subject: Re: Hot Swap Hard Drive - How To? Date: 17 Jan 2001 15:25:33 GMT Organization: Yes, please Message-ID: References: <87ofx8xvw4.fsf@zazu.vip.fi> NNTP-Posting-Host: sbs-harvey.americas.cpqcorp.net X-Trace: nose.shr.dec.com 979745133 1233102 16.129.12.71 (17 Jan 2001 15:25:33 GMT) X-Complaints-To: usenet@nose.shr.dec.com NNTP-Posting-Date: 17 Jan 2001 15:25:33 GMT User-Agent: Xnews/03.11.14 Xref: supernews.google.com comp.os.linux.alpha:1978 Paavo Hartikainen 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.