Operating System - HP-UX
1748229 Members
3861 Online
108759 Solutions
New Discussion юеВ

Re: Problem in identifying Disks with Lun ID

 
SOLVED
Go to solution
Dhruva Raj
Advisor

Problem in identifying Disks with Lun ID

Hi All,

I have to identify few disks on the HP box Using LUN ID's and delete them.
These disks are presented from DS 8300 storage (IBM). In AIX i use lscfg -vpl hdisk10 to get the LUN-ID of a Disk but in HPUX i am finding it difficult to identify.
Can anyone help me with this please.

Thanks in Advance.

Regards,
Druva
9 REPLIES 9
Steven E. Protter
Exalted Contributor
Solution

Re: Problem in identifying Disks with Lun ID

Shalom Druva,

Start with ioscan to identify the LUNS.

You may need to use fcmsutil to identify world wide names as well.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dhruva Raj
Advisor

Re: Problem in identifying Disks with Lun ID

Shalom Steven,

Thanks for the response.

I am attaching the ioscan output and the Lun ID from DS8300. How can i match the lun-ID (storage) to IOscan output from HP box.
Can you please elaborate the use fcmsutil cmd to identify the lun-id. I tried this command but no luck :-(.


Regards,
Druva
Anshif
Occasional Contributor

Re: Problem in identifying Disks with Lun ID

Do you use powerpath?
if you are using power path jtry using the command inq -clariion

# inq -clariion -no_dots
this will give you the list of luns with the device path. The second column from the last will the LUN number in Hex.
Sample output

/dev/rdsk/c4t0d0 :DGC :CX3-80WDR5 :HP03 :Ch2 CONT : 144703488: 0: 59:ASSIGNED

59 is the LUN id in Hex

Hopes this helps..
Dhruva Raj
Advisor

Re: Problem in identifying Disks with Lun ID

Anshif,

I think your Storage is not DS 8K or I dont have power path installed. The inq -clariion didn't work.

I had missed attaching the file with IOscan o/p.

Regards,
Druva
S. Ney
Trusted Contributor

Re: Problem in identifying Disks with Lun ID

If you have 11.31 you can run the following command:

scsimgr -p get_attr all_lun -a device_file -a wwid -a

this will show the wwid for each disk as well as its state.
Dhruva Raj
Advisor

Re: Problem in identifying Disks with Lun ID

Unfortunately, my OS is HP11.11 .

Any other way to identify. I think there is some connection with cXtYdZ/hw_path with LUN-ID. But its too tricky.
Can anyone explain on the formula/calculation part to deduce cXtYdZ to Lun id. That will be of greate help.

Regards,
Druva
SoorajCleris
Honored Contributor

Re: Problem in identifying Disks with Lun ID

Hi,

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1275671810127+28353475&threadId=1410613

see Tostern's post.

0/2/0/0.97.4.19.0.1.0 LUN 8

====================^

Take the last "0" and convert into 3 digit binary:

000

then take the "1" and convert too:

0001 000 ==> 0001000bin = 8 dec

This is decimal 8 = LUN 8.

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
S. Ney
Trusted Contributor

Re: Problem in identifying Disks with Lun ID

Druva,

if you have inq on your hpux server this may or may not work for you but you could try ./inq -shark_wwn (since shark is ibm)

not sure what ibm's storage tool would be but most storage types have a tool to find wwid's of luns. (inq-EMC, xpinfo-HP, lunstat-hitachi)
Dhruva Raj
Advisor

Re: Problem in identifying Disks with Lun ID

Hi Ney,

I couldn't find 'inq'. I am going to raise case with IBM, since DS 8k is a IBM storage, hopefully IBM will have a answer.

Regards,
Druva