From owner-freebsd-scsi Tue Sep 30 00:23:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA08966 for freebsd-scsi-outgoing; Tue, 30 Sep 1997 00:23:36 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id AAA08960 for ; Tue, 30 Sep 1997 00:23:33 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id JAA28774; Tue, 30 Sep 1997 09:23:21 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.7/8.8.5) id JAA07882; Tue, 30 Sep 1997 09:20:23 +0200 (MET DST) Message-ID: <19970930092023.NO30665@uriah.heep.sax.de> Date: Tue, 30 Sep 1997 09:20:23 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-scsi@FreeBSD.ORG Cc: pius@ienet.com, terryl@ienet.com Subject: Re: adding SCSI drive to a live system References: <199709292142.OAA14361@iago.ienet.com> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199709292142.OAA14361@iago.ienet.com>; from pius@ienet.com on Sep 29, 1997 14:42:42 -0700 Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As pius@ienet.com wrote: > Can one connect the drive to the SCSI bus and then probe all devices > on the bus again? The -p option to the scsi(8) command claims to be > able to do this, but the "super scsi" device mentioned in the man page > doesn't seem to exist. It does exist, provided you're configuring the `su' and `ssc' pseudo-devices. I was contemplating to add them by default in future releases. However, you don't need /dev/scsisuper if you've got at least one device on any SCSI bus already configured at boot time. (The `super' device is only needed if all SCSI busses were empty at boot time.) Say, your sd0 was already there when booting, so just do scsi -f /dev/rsd0.ctl -r Remember to always use the control devices for this kind of stuff; they are merely a hookup into the SCSI layers without actually touching the device itself already at open() time. NB: there's no method to un-probe some device right now. But, i think you can have more than one device configured at the same target ID. Say, you've once had a direct-access device on ID 4, sd1. Later on, you disconnect this target, and add a sequential target at ID 4. Run a scsi -r, and you should be able to use it as (assume) st0. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)