Operating System - Linux
1825730 Members
2630 Online
109687 Solutions
New Discussion

Re: Redhat 5.3 with SAN Connectivity

 
SOLVED
Go to solution
AZayed
Super Advisor

Redhat 5.3 with SAN Connectivity

Dears,
Good day,

I was searching for a FC driver from RH 5.3. but I couldn't find any. I need the package that include hp_rescan tool.

AP770A HP 82B PCIe 8Gb FC Dual Port HBA

Thanks
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
15 REPLIES 15
Ishwar_1
Frequent Advisor

Re: Redhat 5.3 with SAN Connectivity

hp_rescan tool in one of the kits that you should load install from hp. One kit for datamapper, one kit of utilities for your hba. One of kits includes fibreutils.

# rpm -qa --filesbypkg | egrep hp_rescan
fibreutils /opt/hp/hp_fibreutils/hp_rescan
fibreutils /usr/bin/hp_rescan

hp_rescan utility is in the fibreutils-3.0-3 rpm file

hp_rescan -h will give you the syntax and options for use.
AZayed
Super Advisor

Re: Redhat 5.3 with SAN Connectivity

Thanks,
But I cannot find them online. can you post the URL ?
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
S.S.
Super Advisor

Re: Redhat 5.3 with SAN Connectivity

May i know your Server Model and OS Architecture?
AZayed
Super Advisor

Re: Redhat 5.3 with SAN Connectivity

Yes,

I have DL380 G6 running RH 5.3

Thanks
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
Alzhy
Honored Contributor

Re: Redhat 5.3 with SAN Connectivity

You will need Proliant Support Pack (PSP) my friend.

Download from the BSC.

Hakuna Matata.
S.S.
Super Advisor

Re: Redhat 5.3 with SAN Connectivity

Hi Azayed,

Here is the link you can download
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=3884083&prodTypeId=15351&prodSeriesId=3884082&swLang=13&taskId=135&swEnvOID=4006#78221

this is for i686 architecture.

Download whole PSP support pack. In PSP pack you can see the fibreutils rpm package.
then
- Login to server with root previleges
- run "rpm -ivh or
rpm -Uvh
- Check the installed package rpm -aq | grep -i fibre

AZayed
Super Advisor

Re: Redhat 5.3 with SAN Connectivity

Hi,

I cannot install the packages.

fibreutils-2.5-4.x86_64.rpm
hp-lpfc-8.2.0.22-9.rhel5.noarch.rpm

This RPM is not supported on RHEL 5.3 or greater

error: %pre(fibreutils-2.5-4.x86_64) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping fibreutils-2.5-4


What is the issue?
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
AZayed
Super Advisor

Re: Redhat 5.3 with SAN Connectivity

Hi Folks,

I find out that Redhat 5.3 already have FC Card driver and FC utilities so that's why PSP don't install these on the system.

But I don't know how can I do hardware scan. is there any command like : ioscan -c lun ??

Thanks
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
Alzhy
Honored Contributor

Re: Redhat 5.3 with SAN Connectivity

Save to your favourite pathed tools directory (/usr/local/bin for instance) to a file named say "sacndisks"

#!/bin/ksh
#
# San FC HBAS for changes
for hba in `ls -d /sys/class/fc_host/host*`;do
FCHOST=`basename $hba`

echo "Scanning $FCHOST"
echo "- - -" > /sys/class/scsi_host/${FCHOST}/scan
done


Make it executable.

Everytime you present new storage, simply:

root# scandisks
root# multipath -v2
root# multipath -ll
.. and so on and so forth.


(make sure you have HPDM Enablement kit installed too).

Hakuna Matata.
AZayed
Super Advisor

Re: Redhat 5.3 with SAN Connectivity

Thanks Alzhy, I'm going to check if I have this "HPDM Enablement kit" installed with PSP.

I'm would like to ask if there is any documentation about configuring MSA2000 with Redhat 5.3 + can I create LVM LUN in Redhat using command line enabling Multipath e.g. in HP-UX we have vgcreate lvcreate.

Thanks again
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
Wessam Aly
Frequent Advisor

Re: Redhat 5.3 with SAN Connectivity

you have the same tools (vgcreate, lvcreate, etc..) in Linux. Its LVM for linux. you can either use the luns directly by creating a filesystem on them or put them in a volume group using lvm
The manual said the program requires Windows 95 or better, so I installed Linux !
Alzhy
Honored Contributor
Solution

Re: Redhat 5.3 with SAN Connectivity

HPDM is not included with PSP.
You have to download it separately. Latest is 4.4.1.

It allows your SAN LUNs to have "friendly names" instead of /dev/mpath/mpath123 or /dev/dm-13 - you can ask multipath to use "mapper" names like -- /dev/mapper/SAPdisk.

You can now do whatever you like with /dev/mapper/SAPdisk -- it is already multipathed by virtue of what you have in /etc/multipath.conf.

You can parition it with fdisk so you can have a PV - /dev/mapper/SAPdiskp1 that you can use to vgcreate an LVM VG. From there you can lvcreate your desired LV for use as raw disk or to create an ext2,3,4 or whatever filesystem on top.

(Note: if you have MANY SAN disks, you may need to tweak your /etc/lvm/lvm.conf file too so you do not get duplicate PVs).

On mine it is:

filter = [ "a/mapper/.*p1$/", "a|/dev/cciss/*|", "r/.*/" ]

Which means, LVM should only search device mapper disks on partion 1 and HP SMartArray LUNs and ignore all else.


Cheers!
Hakuna Matata.
AZayed
Super Advisor

Re: Redhat 5.3 with SAN Connectivity

Thanks Alzhy,

I have already download and install HPDM 4.4.1 but the funny thing I'm installing it or OEL 5.3 and I'm getting that the package is already installed so I decide to remove it first then reinstall it again and it finish with "Success" but when I hit rpm -q to search for the package I get nothing. On RHEL 4 I installed the package and I can see it.

I don't know what going on but it's giving error on something /sbin/scsi_id

Also I still need to reboot my box to rescan the FC card to see the lun from MSA2000.

Thanks for help
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
Alzhy
Honored Contributor

Re: Redhat 5.3 with SAN Connectivity

Nothing will SHOW in rpm -qa with HPDM installed. The indication it is "installed" is in /etc/multipath.conf

Please read through the release notes as depending on whether you have Emulex or Qlogic, you will need to have some changed to /etc/modprobe.conf added and initrd rebuilt.


I have not tried HPDM on OEL though but I suppose you can .
Hakuna Matata.
AZayed
Super Advisor

Re: Redhat 5.3 with SAN Connectivity

Thank you Alzhy, I think it is Brocade but how can I make sure?
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.