1824809 Members
4104 Online
109674 Solutions
New Discussion юеВ

SAN setup

 
SOLVED
Go to solution
Franky Leeuwerck_2
Super Advisor

SAN setup

Hi everyone,

I have two HP-UX boxes at my disposal, both are connected to a SAN ( HP StorageWorks eva3K 2C2D-C CTO 8x72 GB/15k ALL upgraded with 2x 72GB 15k RPM 2Gb FC HDD).

Further, I can access the boxes as root and know the IP-address of the SAN Mgt Appliance.

I need to setup a number of volumegroups on the SAN.

What is the procedure or the series of commands to do so ?

I've set up volumegroups on an unix box before, but not on a SAN.

Regards and thanks for any input.
Franky
59 REPLIES 59
Rainer von Bongartz
Honored Contributor
Solution

Re: SAN setup

Some bit of work here:

Install SecurePath on hp-ux

Update (or let update) the zoning on the SAN switches so that the hp-ux boxes are able to see the LUN's

Create LUN's using Command View EVA and present them to the hp-ux boxes

ioscan and insf

check with spmgr (SecurePathManager) if you have devices file for the LUN's

use pvcreate and lvcreate to create a lvol on the device files presented by SecurePath

create lvols as needed.


That's (in very short) the tasks that have to be performed.

Regards
Rainer


He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Leif Halvarsson_2
Honored Contributor

Re: SAN setup

Hi
There is no difference with setting up a volumegroup with SAN volumes or a volumegroup of local disks (from HP-UX point of view).

What is different is configuring the LUNs in the EVA.

I assume the FC-HBAs is installed and the switches is zoned so the HP-UX host can "see" the EVA disk array.

Basically you have to do as follow:

Log in to the Appliance server and start the administration tool (Command View) .

Create a Host group, Add the HP-UX host to the host group, select an OS for the host, assign the HBAs to the host.

Create a Disk group, create a Vdisk (LUN) in that group.
Present the Vdisk to the host, created in the previous step.

Now, the LUN should be visible to the HP-UX host and, could be configured just as a local disk.
Stuart Abramson
Trusted Contributor

Re: SAN setup

As Leif said, the creation of the VG uses the same commands in a SAN environmnet as in a direct-connect environment:

pvcreate /dev/dsk/cXtYdZ
mkdir /dev/VGNAME
mknod /dev/VGNAME/group c 64 MinorNumber
vgcreate -p 150 -l 255 -e 3264 -s 32 VGNAME /dev/dsk/cXtYdZ
lvcreate
newfs
etc..

The trick is creating the LUNS, presenting them to the servers, discovering them, etc.
Cem Tugrul
Esteemed Contributor

Re: SAN setup

Frank,
As an addition the other replies;

you can do it both from your Mgt Appliance
and also from your Ux-box...Of course
MA is a GUI based and it is very easy to
creating LUN's &montitoring hosts etc...
but if you want to do it from your hp-ux
box then a software needs SSSU(Storage System
Scripting Uttility)

My traditional steps from MA;
if i want create new LUN for a UX-box then;

i-ioscan -fnCdisk>temp.file (on ux box)
ii-Decide your Disk grp &create the LUN and
present this to HOSt(your ux box)
iii-run again ioscan -fnCdisk
iv-note your new created disk address(ux box)
v-mknod for this new LUN
vi-vgcreate
vii-Fs created
viii-mount FS mount_point

if you want to use SSSU from your ux box
please take a little bit care
and here is the attachment about using SSSU
if you want furthermore information please
keep writing back.
Good Luck,


Our greatest duty in this life is to help others. And please, if you can't
Franky Leeuwerck_2
Super Advisor

Re: SAN setup

Hello everyone,

Thanks all for your replies so far.

On one of the boxes, in SAM 'Disks', I see :
Hardware : 255/255/0/0.1
Number of Paths : 1
Use : Unused
Volumegroup : --
Total Mbytes : 256000
Description : hp StorageWorks enterprise virtual array 3000

The ioscan -fn command shows me several entries like this one :
ext_bus 14 0/5/1/0.1.1.0.0 fcparray CLAIMED INTERFACE FCP Array Interface


I'll go through your suggestions and let you know later about the outcome (won't forget assigning points for your contribution).

Regards,
Franky
Cem Tugrul
Esteemed Contributor

Re: SAN setup

Franky,

Did you created a LUN and present to your host(ux) if so;
run
#ioscan -fnCdisk
and please send us the output of this command...

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Franky Leeuwerck_2
Super Advisor

Re: SAN setup

Hello again,

In the meantime I learned from the HPCE that left the systems and the SAN behind, that apparently a server or a desktop must be setup up with two fiber boards and with software (Command View) to talk to the SAN.
That explains a lot.
I myself am remotely working on the unixes ( as a 3th party ) and have not seen the setup with my own eyes yet.

So, I guess, untill the setup is completed, I can not proceed with configuring the SAN volumegroups.

Thanks and regards,
Franky
Gavin Clarke
Trusted Contributor

Re: SAN setup

All you need is the SAN management appliance, which has commandview on it.

Can you get a terminal services session on the SAN managment appliance?
Gavin Clarke
Trusted Contributor

Re: SAN setup

Ah, fingers faster than brain.

The HP-UX host can't see the VDISK/LUN on the EVA because it isn't attached to the SAN, I've got it now.

Sorry about that.
Franky Leeuwerck_2
Super Advisor

Re: SAN setup

Hi guys,

Here I am back again.
Thanks for the further updates.

First question :

This is the output of ioscan -fnC disk :
# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/3/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-B

/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GMAS3735N
C
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
/dev/dsk/c2t0d0s1 /dev/rdsk/c2t0d0s1
/dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s3
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373453
LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0s1
/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s3
disk 4 255/255/0/0.1 sdisk CLAIMED DEVICE HSV100 HP
/dev/dsk/c15t0d1 /dev/rdsk/c15t0d1

This is the output in SAM :


Hardware Number Volume Total
Path of Paths Use Group Mbytes Description
/---------------------------------------------------------------------------\
| 0/0/3/0.0.0.0 1 Unused -- 0 DVD-ROM Drive (sl ^
| 0/1/1/0.0.0 1 LVM vg00 70007 HP 73.4GMAS3735NC
| 0/1/1/0.1.0 1 LVM vg00 70007 HP 73.4GST373453L
| 255/255/0/0.1 1 Unused -- 256000 hp StorageWorks e



So, it looks like the server can see the EVA.

I guess, the next step is to use SAM and define volumegroups on it, wright ?



A second question :
I learned from the local IT responsable, that the Command View software is available, but that also a dedicated server is required with fiber channel connections to the EVA to run the software to manage the EVA.
This is very new to me, so I wonder why should I further need this extra host with Command View software ?

Regards,
Franky
Cem Tugrul
Esteemed Contributor

Re: SAN setup

Franky,

if you have created LUN's from MA and
presented to your host so when you do
ioscan -fnCdisk
you have to see someting like;
disk 13 255/255/0/1.1 sdisk CLAIMED DEVICE HSV110 (C)COMPAQ
/dev/dsk/c20t1d1 /dev/rdsk/c20t1d1
(example from my system above...)
According to your output there is only
disk 4 255/255/0/0.1 sdisk CLAIMED DEVICE HSV100 HP

so i see your eva3k use HSV100 extension.
Ok.

Could you please try to find out on your
host whether secure path software installed or not?
swlist|grep -i CPQ
and must return something like;
CPQswsp A.3.0E.00F.00F HP StorageWorks Secure Path Device Driver and utilities for HSx class of Disk Arrays

if you are not installed this software on your host so when you do ioscan -fnCdisk
you can see some duplicates hardware address
which refers same disks.

Please go on feedback...



Our greatest duty in this life is to help others. And please, if you can't
Cem Tugrul
Esteemed Contributor

Re: SAN setup

A second question :
I learned from the local IT responsable, that the Command View software is available, but that also a dedicated server is required with fiber channel connections to the EVA to run the software to manage the EVA.
This is very new to me, so I wonder why should I further need this extra host with Command View software ?

Yes that's true but when i bought my EVA5000
it came with MA machine...so it may depends
on your purchasing agreement between HP.
Our greatest duty in this life is to help others. And please, if you can't
Cem Tugrul
Esteemed Contributor

Re: SAN setup

Hey Uwe!!!
Where are you???
Please come&join us and enlighten more...
:-))
Our greatest duty in this life is to help others. And please, if you can't
Franky Leeuwerck_2
Super Advisor

Re: SAN setup

Hi Cem,

Back here again.

# swlist | grep -i CPQ
CPQswsp A.3.0E.00F.00F HP StorageWorks Secure Path Devic
e Driver and utilities for HSx class of Disk Arrays

Further, I can tell you that I did not create the LUN's on the EVA. I suppose that the HPCE did it.
Please tell me if I can proceed without having a dedicated host, connected to the EVA, for running Command View .

Regards,
Franky
Rainer von Bongartz
Honored Contributor

Re: SAN setup

until a couple of month ago, HP requested a Storage Management appliance for Command View EVA.

Read the new statemant:

Flexible management for Microsoft Windows deployment: Now you can control EVA management from a single console, increasing productivity and responsiveness of the IT administrative staff. The Command View EVA software suite supports a variety of Windows deployment options including; running the software to manage EVA directly on a Windows server for host-based management deployment, on a HP OpenView Storage Management Appliance, and/or on a HP ProLiant Storage Server. You can now directly connect a Windows Server via fibre channel to an Enterprise Virtual Array for lower cost fibre channel solutions.

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Cem Tugrul
Esteemed Contributor

Re: SAN setup

Franky,

could you please run the command below on your host(ux-box)?

#spmgr display

output please!!!
Our greatest duty in this life is to help others. And please, if you can't
Franky Leeuwerck_2
Super Advisor

Re: SAN setup

# spmgr display
Server: x
Report Created: Thu, Sep 01 05:38:18 20
05
Command: spmgr display
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Storage: 5000-1FE1-5004-F960
Load Balance: Off Auto-restore: Off
Path Verify: On Verify Interval: 30
HBAs: td0 td1
Controller: P66C5E3AARK074, Operational
P66C5E3AARK06P, Operational
Devices: c15t0d1

TGT/LUN Device WWLUN_ID H/W_Path #_Paths
0/ 1 c15t0d1 6005-08B4-0010-46F0-0000-5000-005C-0000 8
255/255/0/0.1
Controller Path_Instance HBA Preferred? Path_Status

P66C5E3AARK074 no
c16t0d2 td0 no Active
c13t0d2 td1 no Available
c9t0d2 td0 no Available
c20t0d2 td1 no Available

Controller Path_Instance HBA Preferred? Path_Status

P66C5E3AARK06P no
c11t0d2 td0 no Standby
c18t0d2 td0 no Standby
c14t0d2 td1 no Standby
c21t0d2 td1 no Standby


#
Gavin Clarke
Trusted Contributor

Re: SAN setup

Your ioscan tells me that there is a LUN presented to your host from your EVA, you are ready to proceed with setting up a volume group as if you had the disk locally attached.

You also have securepath installed, which is why you can only see one disk (if you didn't you might see two or four copies of the same disk).

If you could get a terminal services session on your management appliance you could then see how the LUN on your EVA is configured. Which you might want to do at some point.

I think you are near the finish line.
Rainer von Bongartz
Honored Contributor

Re: SAN setup

from the output:

your WWLUN ID is: 6005-08B4-0010-46F0-0000-5000-005C-0000

this ID should also be found in command view EVA as presented to this host

Secure Path did assign the device file /dev/dsk/c15t0d1
to this LUN

go on with:
mknod /dev//group c 64 0xabcdef
pvcreate /dev/rdsk/c15t0d1
vgcreate vgel /dev/dsk/c15t0d1
lvcreate ...
lvcreate ...

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Cem Tugrul
Esteemed Contributor

Re: SAN setup

Franky,

As Rainer mentioned ,
you have a LUN created from MA so;
disk 4 255/255/0/0.1 sdisk CLAIMED DEVICE HSV100 HP
/dev/dsk/c15t0d1 /dev/rdsk/c15t0d1

also spmgr display refers this LUN;
.....
Devices: c15t0d1

Now,if you want to learn the size of this LUN
(1,2,5,10,50 GB?????)

on your host;run;
#diskinfo /dev/rdsk/c15t0d1

You can easily see the SIZE of this created LUN;

so from now on?Do you want to create VG for
this LUN?????
if so we may go on...

Our greatest duty in this life is to help others. And please, if you can't
Franky Leeuwerck_2
Super Advisor

Re: SAN setup

Hi all again.

Cem, this is the diskinfo output :

# diskinfo /dev/rdsk/c15t0d1
SCSI describe of /dev/rdsk/c15t0d1:
vendor: HP
product id: HSV100
type: direct access
size: 262144000 Kbytes
bytes per sector: 512
#

In SAM I tried to create a volumegroup on this disk of 250 GB. It looks like it will work.

But .. I need several volumegroups that, depending on the situation, can be mounted/unmounted separately on host 1 or host 2.

I understand that, with this single disk, I can not create multiple volumegroups that can be switched from one host to the other.

Right ?

In other words I'll have to reconfigure the eva for multiple LUNS. And therefore, I need the dedicated host with the Command View software, directly connected to the EVA.
Correct ?

Regards,
Franky

Cem Tugrul
Esteemed Contributor

Re: SAN setup

Franky,

Also must be talked here...i think there is
something wrong on your controllers path;

P66C5E3AARK074 no
c16t0d2 td0 no Active
c13t0d2 td1 no Available
c9t0d2 td0 no Available
c20t0d2 td1 no Available

Controller Path_Instance HBA Preferred? Path_Status

P66C5E3AARK06P no
c11t0d2 td0 no Standby
c18t0d2 td0 no Standby
c14t0d2 td1 no Standby
c21t0d2 td1 no Standby

Normally if you have 2 controllers on your EVA and 2 HBA on your host(ux) and installed
secure path software;

We have to see something like for your created LUN(c15t0d1);;;;

P66C5E3AARK074
cXt0d0 td0 STANDBYE
cyt0d0 td1 STANDBYE

P66C5E3AARK06P
czt0d0 td0 ACTIVE
cWt0d0 td1 ACTIVE

so this means your physical LUN (c15t0d1)
should get 4 addresses over of your 2 EVA controllers because you also have 2 HBA

so you also have to talk this situation with
your HP support...

Our greatest duty in this life is to help others. And please, if you can't
Franky Leeuwerck_2
Super Advisor

Re: SAN setup

Hello Cem,

Thanks for your further remarks. As said, I am an Ingres System and Database Admin, so I'll try to understand what you are saying. What is an HBA ?

Also, I refer to my last question.
If I must reconfigure the eva for multiple LUNS, do I need the dedicated host with the Command View software, directly connected to the EVA? Or can it be done with commands or SAM on the unix box ?


Regards,

Franky
Rainer von Bongartz
Honored Contributor

Re: SAN setup

Franky

You WILL neeed Command View now.

Once installed you will be able to present this LUN to a second system.

You can't do this with SAM because presenting a LUN to a host is a task that must be performed on the EVA.

Btw.

a HBA is a Host Bus Adapter

Regards
Rainer


He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...