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

How to find a SAN disk space in HP UX

 
Highlighted
Advisor

How to find a SAN disk space in HP UX

Hi,

I have to extend a file sytem and I dont have enough spaace in that VG. I requested for SAN space and I got an email like this from the storage guy.
"I have assigned 72GB SAN space to the server. The device ID is 0202.Please discover appropriately in the server and confirm"

Now my question is how to identify this in the server(HP-UX 11.11) and extend my file system. I tried ioscan -fnC disk and that has not shown any IDs. Please help.. Thanks in advance..
7 REPLIES 7
Highlighted
Advisor

Re: How to find a SAN disk space in HP UX

This is an EMC SYMMETRIX storage Box.
Highlighted
Occasional Advisor

Re: How to find a SAN disk space in HP UX

Hi,
You can try with this:

# ioscan -kfnCdisk|grep EMC

The device Id you can find the some storage command.

or

# ioscan -kfnCdisk|grep EMC
make a note in notepad or take output in some file
#insf -e

# ioscan -kfnCdisk|grep EMC

Differentiate both the ouput you will get the new disk.

# diskinfo /dev/rdsk/c0t0d0

Highlighted
Honored Contributor

Re: How to find a SAN disk space in HP UX

HP-UX native tools won't show the Symmetrix ID easily.

You'll need the SYMCLI tools ("Solutions Enabler", licensed software from EMC) or the free inquiry tool from the EMC web site:

ftp://ftp.emc.com/pub/elab/inquiry/

For HP-UX 11.11:

ftp://ftp.emc.com/pub/elab/inquiry/v7.0.0.0/inq.hpux1100 (for old 32-bit systems)

ftp://ftp.emc.com/pub/elab/inquiry/v7.0.0.0/inq.hpux64 (for 64-bit systems)

First run ioscan, then insf, to discover new disk devices.

If you have the SYMCLI tools, then run "/usr/symcli/bin/symcfg discover" and then "/usr/symcli/bin/sympd list". The second column will show the four-digit Sym ID for each Symmetrix disk.

If you use the inq utility, just run it. The Symmetrix disks will have "EMC" in the Vendor column and "SYMMETRIX" in the ID column. Look at the Ser Num column: there should be a 10-digit string in it. The 4 middle digits are the Symmetrix device ID.

MK
MK
Highlighted
Honored Contributor

Re: How to find a SAN disk space in HP UX

An easy way is to run:

ioscan -fCdisk
insf -eCdisk

Now list the device files in time order:

ls -lart /dev/dsk

The file at the bottom of the list is the new device file. Run these commands:

pvcreate /dev/rdsk/
vgextend vg123 /dev/dsk/

Now to anticipate questions:

-- No new device file? You'll need to work with your SAN administrator.

-- Do NOT use -f in pvcreate. The new device must have nothing on it. Using -f could accidentally trash an existing disk LUN.

-- vgextend may report that the extent size is too smal to accomodate the new disk LUN. That will require a complete rebuild of this VG (for 11.11). The -s option for vgcreate is very commonly overlooked until you have to rebuild a VG.


Bill Hassell, sysadmin
Highlighted
Honored Contributor

Re: How to find a SAN disk space in HP UX

After ioscan and insf, if the solutions anabler installed on the system run the syminq command:

syminq | grep 0202

This is your disk, then you can use it to your VG.

Highlighted
Frequent Advisor

Re: How to find a SAN disk space in HP UX

If not already present get the inq utility from the location Matti provided.

Then run:

1) ioscan -fnCdisk
2) insf
3) inq -sym_wwn |grep 0202 |awk '{print $1}'

This should give you the raw device file for the new disk. (/dev/rdsk/c?t?d?)
Highlighted
Occasional Contributor

Re: How to find a SAN disk space in HP UX

LUN ID's can be found using one of these utilities.

HPUX Veritas Utility:
vxdmpinq
or
EMC utilities:
syminq or inq.