adding new SCSI drives to system without rebooting
I have defined luns on a FC device. Is there a way to probe/reset the FC bus/controller to get the new devices? And, other than doing an ls, <probe< ls, is there a way to see which devices were added (maybe through the messages log?) Thanks eric
On Thu, 2005-06-09 at 09:16 -0700, Eric Wagar wrote:
I have defined luns on a FC device. Is there a way to probe/reset the FC bus/controller to get the new devices? And, other than doing an ls, <probe< ls, is there a way to see which devices were added (maybe through the messages log?)
Don't know what you mean by "FC device" but unless it supports hot plugging drives into it you will have to reboot. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
I have defined luns on a FC device. Is there a way to probe/reset the FC bus/controller to get the new devices? And, other than doing an ls, <probe< ls, is there a way to see which devices were added (maybe through the messages log?)
Don't know what you mean by "FC device" but unless it supports hot plugging drives into it you will have to reboot. Sorry, fibre channel luns.
On 6/9/05, Eric Wagar wrote:
I have defined luns on a FC device. Is there a way to probe/reset the FC bus/controller to get the new devices? And, other than doing an ls, <probe< ls, is there a way to see which devices were added (maybe through the messages log?)
Thanks eric
Assuming a recent kernel, try echo "- - -" > /sys/class/scsi_host/host2/scan And I think /var/log/messages will show the new lun. I don't know what the "- - -" means, but you may be able to only scan specific HPAs. FYI: The main way for userspace to communicate with HPA drivers is via sysfs (ie. /sys). sysfs is similar to /proc in that it does not actually exist on your disk. Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century
I have defined luns on a FC device. Is there a way to probe/reset the FC bus/controller to get the new devices? And, other than doing an ls, <probe< ls, is there a way to see which devices were added (maybe through the messages log?)
Thanks eric
Assuming a recent kernel, try
echo "- - -" > /sys/class/scsi_host/host2/scan
And I think /var/log/messages will show the new lun.
I don't know what the "- - -" means, but you may be able to only scan specific HPAs.
FYI: The main way for userspace to communicate with HPA drivers is via sysfs (ie. /sys). sysfs is similar to /proc in that it does not actually exist on your disk. I tried the above suggestion, and that did not work. I ended up rebooting the system, which then allowed me to acces the newly create cibre channel luns.
Thanks eric
On Thu, 2005-06-09 at 09:16, Eric Wagar wrote:
I have defined luns on a FC device. Is there a way to probe/reset the FC bus/controller to get the new devices? And, other than doing an ls, <probe< ls, is there a way to see which devices were added (maybe through the messages log?)
When I added hardware after an install I just logged in as root and did a Yast hardware detection. As it involved additions to fstab I did reboot. -- ___ _ _ _ ____ _ _ _ | | | | [__ | | | |___ |_|_| ___] | \/
Eric Wagar wrote:
I have defined luns on a FC device. Is there a way to probe/reset the FC bus/controller to get the new devices? And, other than doing an ls, <probe< ls, is there a way to see which devices were added (maybe through the messages log?) I have seen the replies and so far no one has mentioned this one. I had this question in 2000 and found the answer that I needed.
SuSE comes with /bin/rescan-scsi-bus.sh. This command is still there, at least on the SuSE 9.1 that I use. I don't remember the package name but if you use the search option for SCSI, I think you will find it. I think it was something like SCSITOOLS Damon Register
* Damon Register <damon.w.register@lmco.com> [06-10-05 05:31]:
SuSE comes with /bin/rescan-scsi-bus.sh.
This command is still there, at least on the SuSE 9.1 that I use. I don't remember the package name but if you use the search option for SCSI, I think you will find it. I think it was something like SCSITOOLS
scsi-1.7_2.31_1.05_0.10-49.rpm scsi-1.7_2.31_1.05_0.10-49.src.rpm -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery
participants (6)
-
Carl William Spitzer IV
-
Damon Register
-
Eric Wagar
-
Greg Freemyer
-
Ken Schneider
-
Patrick Shanahan