Operating System - HP-UX
1747985 Members
4831 Online
108756 Solutions
New Discussion юеВ

Re: How to identify new EVA disk devices

 
SOLVED
Go to solution
compiler
Frequent Advisor

How to identify new EVA disk devices


Hi.

I have a question about how to identify new disks presented to the system. All I want is know all the device files (paths) for the new disk.

Currently I'm doing:

# ls тАУla /dev/rdsk/ | awk '{print $10}' | sort -u > disks_before

### Now I create and present disk in the EVA ####

# ioscan -fnC disk

# ls тАУla /dev/rdsk/ | awk '{print $10}' | sort -u > disks_after

# diff disks_before disks_after
12a13
> c2t0d1
16a18
> c3t0d1
20a23
> c4t0d1
24a28
> c5t0d1
28a33
> c6t0d1
32a38
> c7t0d1
36a43
> c8t0d1
40a48
> c9t0d1

So, my 8 paths for the disk are:

/dev/dsk/c2t0d1
/dev/dsk/c3t0d1
/dev/dsk/c4t0d1
/dev/dsk/c5t0d1
/dev/dsk/c6t0d1
/dev/dsk/c7t0d1
/dev/dsk/c8t0d1
/dev/dsk/c9t0d1

I make sure that none of the above paths belong to any working VG:

# for i in `diff disks_before disks_after | grep ">" | cut -f2 -d" "`; do \
vgdisplay -v | grep $i ; \
done


The above works, but my question is: what's the smart and right way of doing the above? I'm sure there is an HP-UX command available I don't know about...

Thanks :)
8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: How to identify new EVA disk devices

Since both disks_* are sorted, you can just use comm(1):
comm -23 disks_before disks_after # only in before
comm -13 disks_before disks_after # only in after

Re: How to identify new EVA disk devices

Get a copy of evainfo. Just search @ hp.com for evainfo and your OS version (11.11/11.23/11.31) and you should find a download in the search results.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Ramaprasad K
Regular Advisor

Re: How to identify new EVA disk devices

Hello,

The easiest way to find the device file path is

#ioscan -fnC disk

Anything under 'description' column mentioning as 'HP HSV*' (* represents model of EVA controller) should be your newly added disks. In the next line, you have device file for the corresponding disk.

Regards,
Ram.
compiler
Frequent Advisor

Re: How to identify new EVA disk devices


> The easiest way to find the device file path is
>
> #ioscan -fnC disk
>
> Anything under 'description' column
> mentioning as 'HP HSV*' (* represents model
> of EVA controller) should be your newly
> added disks. In the next line, you have
> device file for the corresponding disk.

But I have about 10-12 disks already exported from the EVA to the machine and they appear in ioscan as HP HSV200...

How do I distinguish then NEW devices (8 paths for the new device).
Ivan Krastev
Honored Contributor
Solution

Re: How to identify new EVA disk devices

To be absolute sure about new disks do the following:
1. present disks to server and collect the WWN numbers
2. ioscan -fn
3. insf -eC disk
4. evainfo -al > eva.file
4. grep for WWN in eva.file


regards,
ivan
compiler
Frequent Advisor

Re: How to identify new EVA disk devices


I only found this searching for EVAINFO:

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&swItem=co-52750-1&jumpid=reg_R1002_USEN

Is for HP-UX 11.23 PARISC, and I have an Itanium machine ... IIRC it is backwards compatible, isn't it? Is it safe to execute parisc's evainfo under Itanium?

Thanks.
compiler
Frequent Advisor

Re: How to identify new EVA disk devices


I answer myself: evainfo for PARISC works correctly under Itanium.

Thanks everybody for all the info given, I'll close the thread :)
compiler
Frequent Advisor

Re: How to identify new EVA disk devices


SOLUTION:

"evainfo -a" shows me the WWN of the disks, so I can locate and identify /dev/rdsk/ files to create the PV/VG/LV.