Operating System - Linux
1752618 Members
4387 Online
108788 Solutions
New Discussion юеВ

Re: How to view the allocated lun in linux

 
SOLVED
Go to solution
senthil_kumar_1
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
Ivan Ferreira
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?
Suraj K Sankari
Honored Contributor

Re: How to view the allocated lun in linux

Hi,

run this command "hp_rescan"

Suraj
avizen9
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,
senthil_kumar_1
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.?


Ivan Ferreira
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?
senthil_kumar_1
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?
Ivan Ferreira
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?
senthil_kumar_1
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.


Stephen_126
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