From: "Lars Täuber" <taeuber@bbaw.de>
To: linux-scsi@vger.kernel.org
Subject: scsi device is not available in enclosure any more after hot plugging
Date: Mon, 18 Jan 2010 11:46:24 +0100 [thread overview]
Message-ID: <20100118114624.fea646be.taeuber@bbaw.de> (raw)
Hi there!
One of my servers contains two scsi enclosures.
After hot removing a disk and hot adding another in the same slot 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
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2010-01-18 10:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-18 10:46 Lars Täuber [this message]
2010-01-20 8:57 ` entries in sysfs regarding enclosures seem not being updated after hot plugging Lars Täuber
2010-01-22 15:28 ` James Bottomley
2010-01-22 15:48 ` Lars Täuber
2010-02-19 8:08 ` Lars Täuber
-- strict thread matches above, loose matches on Subject: below --
2010-01-18 9:29 scsi device is not available in enclosure any more " Lars Täuber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100118114624.fea646be.taeuber@bbaw.de \
--to=taeuber@bbaw.de \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox