1829114 Members
11586 Online
109986 Solutions
New Discussion

Linux LUN Auto Discovery

 
Fred Kashtiban
Advisor

Linux LUN Auto Discovery

Hi all,

Here is the env.

RH 3, and 4
XP1024

Is there any tool that I can run to auto discover new created LUNs without rebooting the box(s).

Thanks,
9 REPLIES 9
Ivan Ferreira
Honored Contributor

Re: Linux LUN Auto Discovery

You can try hp's fibreutils package (hp_rescan -a), or the rescan-scsi-bus.sh script available at http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Fred Kashtiban
Advisor

Re: Linux LUN Auto Discovery

Ivan, Thanks for your replay, but none of those cmds worked. any other suggestion.

tks.
Andrew Cowan
Honored Contributor

Re: Linux LUN Auto Discovery

Fred,

Its a long shot but does running "kudzu" or "fdisk -l" yield anything interesting?

Fred Kashtiban
Advisor

Re: Linux LUN Auto Discovery

No, unfortunatly that did not not work.
Thanks anyways.
Andrew Cowan
Honored Contributor

Re: Linux LUN Auto Discovery

How about pvscan or vgscan?
Andrew Cowan
Honored Contributor

Re: Linux LUN Auto Discovery

lvmdiskscan is another possibility.

Did you have to install any software for driving your SAN?
Andrew Cowan
Honored Contributor
Alan_152
Honored Contributor

Re: Linux LUN Auto Discovery

for QLA HBAs, there is a tool called "hp_rescan". I also use a script that I downloaded from somewhere called "rescan-scsi-bus.sh"
Craig Gilmore
Trusted Contributor

Re: Linux LUN Auto Discovery

Fred,

Tools depends on what type of HBA's are installed in the system. And the software level on the XP.

hp_rescan is usually effective if you are using the Qlogic cards.

Sometimes a partprobe will work.

Failing these, a restart may be your only option.

Good luck!