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