[opensuse] rescan-scsi-bus.sh outdated?
All, I've been doing some config changes on our FC-SAN, and tried using rescan-scsi-bus.sh to pick up the changes - without much luck. I started digging through the script, and it seems to me that the check for return codes from sg_turs in testonline() is not correct. I'm tempted to open a report on that. Has anyone here used rescan-scsi-bus recently? Is there some other tool that should be used instead? /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2008-10-13 at 18:35 +0200, Per Jessen wrote:
All,
I've been doing some config changes on our FC-SAN, and tried using rescan-scsi-bus.sh to pick up the changes - without much luck. I started digging through the script, and it seems to me that the check for return codes from sg_turs in testonline() is not correct. I'm tempted to open a report on that.
Has anyone here used rescan-scsi-bus recently? Is there some other tool that should be used instead?
I would think this happens automatically with udev. I know that in some systems I have with removable media, the devices are detected without intervention. I do have a udev rule to make some devices show up as certain symlinks in /dev. But that is still only after the devices have been detected. To see what is currently connected, use lsscsi. Maybe you will be surprised and see your devices automatically. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 And remember: It is RSofT and there is always something under construction. It is like talking about large city with all constructions finished. Not impossible, but very unlikely. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Roger Oberholtzer wrote:
On Mon, 2008-10-13 at 18:35 +0200, Per Jessen wrote:
All,
I've been doing some config changes on our FC-SAN, and tried using rescan-scsi-bus.sh to pick up the changes - without much luck. I started digging through the script, and it seems to me that the check for return codes from sg_turs in testonline() is not correct. I'm tempted to open a report on that.
Has anyone here used rescan-scsi-bus recently? Is there some other tool that should be used instead?
I would think this happens automatically with udev. I know that in some systems I have with removable media, the devices are detected without intervention. I do have a udev rule to make some devices show up as certain symlinks in /dev. But that is still only after the devices have been detected.
To see what is currently connected, use lsscsi. Maybe you will be surprised and see your devices automatically.
OK, tried that, and it doesn't show the correct output. I've removed 6 LUNs, but they still appear. Also under /dev/disk/by-path. # lsscsi [0:0:0:0] storage DEC HSG80CCL V87F - [0:0:0:10] disk DEC HSG80 V87F /dev/sdb [0:0:0:13] disk DEC HSG80 V87F /dev/sda [0:0:0:20] disk DEC HSG80 V87F /dev/sdj [0:0:0:21] disk DEC HSG80 V87F /dev/sdi [0:0:0:22] disk DEC HSG80 V87F /dev/sdh [0:0:0:23] disk DEC HSG80 V87F /dev/sdg [0:0:0:24] disk DEC HSG80 V87F /dev/sdf [0:0:0:25] disk DEC HSG80 V87F /dev/sde [0:0:0:26] disk DEC HSG80 V87F /dev/sdd [0:0:0:30] disk DEC HSG80 V87F /dev/sdc [0:0:0:31] disk DEC HSG80 V87F /dev/sdk [1:0:0:0] storage DEC HSG80CCL V86F - [1:0:0:10] disk DEC HSG80 V86F /dev/sdl [1:0:0:11] disk DEC HSG80 V86F /dev/sdm [1:0:0:12] disk DEC HSG80 V86F /dev/sdn [1:0:0:13] disk DEC HSG80 V86F /dev/sdo [1:0:0:14] disk DEC HSG80 V86F /dev/sdp [1:0:0:15] disk DEC HSG80 V86F /dev/sdq [1:0:0:16] disk DEC HSG80 V86F /dev/sds [1:0:0:17] disk DEC HSG80 V86F /dev/sdt [1:0:0:18] disk DEC HSG80 V86F /dev/sdu [1:0:0:19] disk DEC HSG80 V86F /dev/sdv [1:0:0:40] disk DEC HSG80 V86F /dev/sdr The devices I removed were sdd,sde,sdf,sdg,sdh,sdi and sdj. /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen wrote:
I've been doing some config changes on our FC-SAN, and tried using rescan-scsi-bus.sh to pick up the changes - without much luck. I started digging through the script, and it seems to me that the check for return codes from sg_turs in testonline() is not correct. I'm tempted to open a report on that.
To answer my own question - yes, rescan-scsi-bus is way outdated. I retrieved the latest version from http://www.garloff.de/kurt/linux/ Which worked just fine. (for devices removed anyway). See https://bugzilla.novell.com/show_bug.cgi?id=434894 /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen wrote:
To answer my own question - yes, rescan-scsi-bus is way outdated. I retrieved the latest version from
http://www.garloff.de/kurt/linux/
Which worked just fine. (for devices removed anyway).
Adding devics worked fine too. /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Per Jessen
-
Roger Oberholtzer