LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   scsi device is not available in enclosure after hot plugging (https://www.linuxquestions.org/questions/linux-hardware-18/scsi-device-is-not-available-in-enclosure-after-hot-plugging-782378/)

larsprogressive 01-15-2010 08:24 AM

scsi device is not available in enclosure after hot plugging
 
Hi There!

This is my first post here.

One of my servers contains two scsi enclosures.
After hot removing a disk and hot adding another the new disk gets assigned a device file but the enclosure (in sysfs) doesn't want to see it.

How can I force the enclosure to recognise the hot added disk.

Situation in sysfs:
# ls -l "/sys/class/enclosure/10:0:24:0/SLOT 010"
insgesamt 0
-rw-r--r-- 1 root root 4096 2010-01-15 14:30 active
lrwxrwxrwx 1 root root 0 2010-01-15 12:56 device -> ../../../../../../../port-10:0:11/end_device-10:0:11/target10:0:10/10:0:10:0
-rw-r--r-- 1 root root 4096 2010-01-15 14:31 fault
-rw-r--r-- 1 root root 4096 2010-01-15 14:40 locate
drwxr-xr-x 2 root root 0 2010-01-15 14:01 power
-rw-r--r-- 1 root root 4096 2010-01-15 14:01 status
-r--r--r-- 1 root root 4096 2010-01-15 14:01 type
-rw-r--r-- 1 root root 4096 2010-01-15 14:01 uevent

The link Ğdeviceğ is dead after hot removing the device and keeps vanished after hot adding the new device.
The hot added device gets assigned a device file and it is reachable.
Even
# echo 1 > /sys/bus/scsi/devices/10\:0\:24\:0/rescan
doesn't change anything.

How can I force the link to be updated towards
-> ../../../../../../../port-10:0:26/end_device-10:0:26/target10:0:25/10:0:25:0
???


Is there a detailed description of the sysfs regarding scsi on the web?

Thanks
Lars

larsprogressive 01-18-2010 03:25 AM

Is there someone who could post a link where I could ask further?

Thanks
Lars


All times are GMT -5. The time now is 10:58 AM.