Operating System - Linux
1830620 Members
2793 Online
110015 Solutions
New Discussion

SAN Discovery problems... RHL EL3

 
SOLVED
Go to solution
CadeO
Occasional Contributor

SAN Discovery problems... RHL EL3

I am running RHL EL3 on my 380.

I have a jetstore SAN with all LUNS being presented. This is a test enviroment so very often FC cables are being plugged and unplugged.

Often times I find myself rebooting because some cables were moved and I need to reconnect to the SAN.

If I boot up without the SAN plugged in and then plug it in I cannot get it to recognize the SAN without rebooting.

Is there anyay I can ad the SAN w/o the reboot?

Here is what I have done:

[root@BUGS root]# sg_map -x
Stopping because no sg devices found

[root@BUGS root]# rescan-scsi-bus.sh
NEW: Host: scsi12 Channel: 00 Id: 00 Lun: 00
Vendor: JetStor Model: Volume Set # 00 Rev: R001
Type: Direct-Access ANSI SCSI revision: 03
1 new device(s) found.

[root@BUGS root]# sg_map -x
/dev/sg0 12 0 0 0 0 /dev/sda

It only find one partitian on the SAN. Now I reboot:

[root@BUGS root]# sg_map -x
/dev/sg0 4 0 0 0 0 /dev/sda
/dev/sg1 4 0 0 1 0 /dev/sdb
/dev/sg2 4 0 0 2 0 /dev/sdc
/dev/sg3 4 0 0 3 0 /dev/sdd
/dev/sg4 4 0 0 4 0 /dev/sde
[root@DAFFY root]#

And everything works fine. I have also rmmod my FC card and the sg. Then modprob-ed them and I get the same results....

Anyone have a good way to actually scan the SGs so that they are discouvered better?

Thanks
Cade
8 REPLIES 8
Ivan Ferreira
Honored Contributor

Re: SAN Discovery problems... RHL EL3

You might want to try the hp_rescan command available in the fibreutils package provided by HP.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Alan_152
Honored Contributor

Re: SAN Discovery problems... RHL EL3

try this: "modprobe sg"
CadeO
Occasional Contributor

Re: SAN Discovery problems... RHL EL3

"And everything works fine. I have also rmmod my FC card and the sg. Then modprob-ed them and I get the same results...."

Where can I get the hp_scan package?
Alan_152
Honored Contributor

Re: SAN Discovery problems... RHL EL3

"hp_rescan" comes when you install HP's version of the QLA HBA drivers...
Subramaniyan.S
Advisor

Re: SAN Discovery problems... RHL EL3

Hi,

You can download the fibreutils from the below link.

After installing this, you can execute the "hp_rescan" command.

rgds,

SUBBU
The sole advantage of power is that you can do more good
Subramaniyan.S
Advisor
Solution

Re: SAN Discovery problems... RHL EL3

Hi,

You can download the fibreutils from the below link.

http://h18002.www1.hp.com/support/files/server/us/download/23178.html

After installing this, you can execute the "hp_rescan" command.

rgds,

SUBBU
The sole advantage of power is that you can do more good
CadeO
Occasional Contributor

Re: SAN Discovery problems... RHL EL3

THANKS GUYS.. this did the trick!!! Is there something similar for the non-FC connections? I use the rescan-scsi-bus.sh but it does not seem to work that well. i just plugged a tape library in and unless I reboot it will not be found on the sg_map -x..

The library uses a regular sg port NOT FIBER..

thanks for the help everyone..
Alan_152
Honored Contributor

Re: SAN Discovery problems... RHL EL3

my copy of rescan-scsi-bus.sh is dated as follows:

# (w) 1998-03-19 Kurt Garloff (c) GNU GPL
# (w) 2003-07-16 Kurt Garloff (c) GNU GPL

You might want to contact Mr. Garloff and see if he has an updated version.

The funny thing is, for me, that it works pretty well for RHEL and Solaris stuff, but not so great for Suse. Wierd...