System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to view the allocated lun in linux

 
SOLVED
Go to solution
Super Advisor

How to view the allocated lun in linux

Hi

I am using Suse 9 Enterprise linux. qlogic card is connected.

Now a LUN has been assigned to the this server.

I used following command to view the new lun.
But i am not able to see the new LUN.

Ex:
1) fdisk -l
2) lsscsi

What is the command is used to view the newly allocated LUN with out restarting the linux server.

or can we see the newly allocated LUN defenitely after rebooting the linux server?



11 REPLIES 11
Honored Contributor
Solution

Re: How to view the allocated lun in linux

Please see this thread:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1060267
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Honored Contributor

Re: How to view the allocated lun in linux

Hi,

run this command "hp_rescan"

Suraj
Esteemed Contributor

Re: How to view the allocated lun in linux

Hello Senthil,

you should run hp_rescan to first see the luns.

then can use fdisk or parted command to creaet new partition as per requirement, thanks,
Super Advisor

Re: How to view the allocated lun in linux

Hi Friends,

Thanks a lot,

Now i am able to see the availabel LUN using the command "hp_rescan".

is this command "hp_rescan" installed by default with suse and redhat?

if not, how to install this in suse and redhat linux.?


Honored Contributor

Re: How to view the allocated lun in linux

No, the command is part of the fibreutils package provided by HP with the Proliant Support Pack. You can download the package from the HP site.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Super Advisor

Re: How to view the allocated lun in linux

Hi Ivan Ferreira,

Before i did not worked in hp servers.

do we need to install "Proliant support pack" after installing the linux?

is this "proliant support pack" is used to setup HBA card?

we are using qlogic card.

can this "proliant support pack" be used to setup any HBA card other than qlogic?

is qlogic hp product?
Honored Contributor

Re: How to view the allocated lun in linux

>> do we need to install "Proliant support pack" after installing the linux?

It's recommended

>>> is this "proliant support pack" is used to setup HBA card?

Yes, it contains drivers/modules for HBA's

>>> we are using qlogic card.

Normally, the HP provided HBA's are qlogic cards with different part numers

>>> can this "proliant support pack" be used to setup any HBA card other than qlogic?

Not sure

>>> is qlogic hp product?

HP provides QLOGIC HBAs with different part numbers.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Super Advisor

Re: How to view the allocated lun in linux

Hi Ivan Ferreira,


>>> is qlogic hp product?

HP provides QLOGIC HBAs with different part numbers.


Pls explain me about different part numbers.


Occasional Advisor

Re: How to view the allocated lun in linux

MUST - Install the latest PSP -MUST.

Your commands then of interest for SAN disks are:

hp_rescan - covered above
lssd [ -l ] (or is it -v ?)
lssg [ -l ] (same.. -v)
maybe you should use #yast2 for LSM/ext3 config.

other:
lsscsi - creates dev files (rescan does this too)
blkid - shows disk UUIDs