Storage Software
cancel
Showing results for 
Search instead for 
Did you mean: 

SSSU unpresent VDISK from given SAN

Nate Bruneau
Occasional Visitor

SSSU unpresent VDISK from given SAN

We are using EVA V5.0.3 and I am looking for a way to script a VDISK unpresent on our SAN.

I have been reading up on this and I believe you can do it through SSSU.

Does anyone know a quick script or a place I could get started reading about how to do this procedure.

Thanks,

Nate
6 REPLIES
Adam Garsha
Valued Contributor

Re: SSSU unpresent VDISK from given SAN

You "DELETE" the LUNS. __NOT__ DELETE VDISKS, but DELETE LUNS.

Example:

1. De-activate on host side (unmount/deport/shutdown/etc.)

2. Example portion of a script I used when we migrated from 3.028 to 4.04:

select manager EVA5000 username=administrator password=XXX
select system "Cell 1"
DELETE LUN \Hosts\HP-UX\its-oa1\4
DELETE LUN \Hosts\HP-UX\its-oa1\5
DELETE LUN \Hosts\HP-UX\its-oa1\2
DELETE LUN \Hosts\HP-UX\its-oa1\8
DELETE LUN \Hosts\HP-UX\its-oa1\1
DELETE LUN \Hosts\HP-UX\its-oa1\11
DELETE LUN \Hosts\HP-UX\its-oa1\3
DELETE LUN \Hosts\HP-UX\its-oa1\10
DELETE LUN \Hosts\HP-UX\its-oa1\9
exit

Then, later, after the upgrade, I represented:

elect manager EVA5000 username=administrator password=XXX
select system "Cell 1"
SET VDISK "\Virtual Disks\HP-UX\Apps\FDDDev_App" PREFERRED_PATH="Path_A_Failover"
SET VDISK "\Virtual Disks\HP-UX\Apps\FDDProd_app" PREFERRED_PATH="Path_A_Failover"
SET VDISK "\Virtual Disks\HP-UX\Apps\MFSHRD_App" PREFERRED_PATH="Path_A_Failover"
SET VDISK "\Virtual Disks\HP-UX\Apps\MFSHRD_app-2" PREFERRED_PATH="Path_A_Failover"
SET VDISK "\Virtual Disks\HP-UX\Apps\MFSHRP_app" PREFERRED_PATH="Path_A_Failover"
SET VDISK "\Virtual Disks\HP-UX\Apps\MFSHRP_app-2" PREFERRED_PATH="Path_A_Failover"
SET VDISK "\Virtual Disks\HP-UX\Apps\MFSHRT_app" PREFERRED_PATH="Path_A_Failover"
SET VDISK "\Virtual Disks\HP-UX\Apps\MFSHRT_app-2" PREFERRED_PATH="Path_A_Failover"
SET VDISK "\Virtual Disks\HP-UX\Apps\Oracle_app-its-oa1" PREFERRED_PATH="Path_A_Failover"
SET VDISK "\Virtual Disks\HP-UX\FDDDev_data" PREFERRED_PATH="Path_A_Failover"
SET VDISK "\Virtual Disks\HP-UX\FDDProd_data" PREFERRED_PATH="Path_A_Failover"
ADD LUN 4 VDISK="\Virtual Disks\HP-UX\Apps\FDDDev_App\ACTIVE" HOST="\Hosts\HP-UX\its-oa1"
ADD LUN 5 VDISK="\Virtual Disks\HP-UX\Apps\FDDProd_app\ACTIVE" HOST="\Hosts\HP-UX\its-oa1"
ADD LUN 2 VDISK="\Virtual Disks\HP-UX\Apps\MFSHRD_App\ACTIVE" HOST="\Hosts\HP-UX\its-oa1"
ADD LUN 8 VDISK="\Virtual Disks\HP-UX\Apps\MFSHRD_app-2\ACTIVE" HOST="\Hosts\HP-UX\its-oa1"
ADD LUN 1 VDISK="\Virtual Disks\HP-UX\Apps\MFSHRP_app\ACTIVE" HOST="\Hosts\HP-UX\its-oa1"
ADD LUN 11 VDISK="\Virtual Disks\HP-UX\Apps\MFSHRP_app-2\ACTIVE" HOST="\Hosts\HP-UX\its-oa1"
ADD LUN 3 VDISK="\Virtual Disks\HP-UX\Apps\MFSHRT_app\ACTIVE" HOST="\Hosts\HP-UX\its-oa1"
ADD LUN 10 VDISK="\Virtual Disks\HP-UX\Apps\MFSHRT_app-2\ACTIVE" HOST="\Hosts\HP-UX\its-oa1"
ADD LUN 9 VDISK="\Virtual Disks\HP-UX\Apps\Oracle_app-its-oa1\ACTIVE" HOST="\Hosts\HP-UX\its-oa1"
ADD LUN 6 VDISK="\Virtual Disks\HP-UX\FDDDev_data\ACTIVE" HOST="\Hosts\HP-UX\its-oa1"
ADD LUN 7 VDISK="\Virtual Disks\HP-UX\FDDProd_data\ACTIVE" HOST="\Hosts\HP-UX\its-oa1"
exit
Adam Garsha
Valued Contributor

Re: SSSU unpresent VDISK from given SAN

Note that (on recommendation from members in this forum) you can get a good template (to build your script from "capture configuration".

Note also that there is a manual for sssu that can be found by navigating HP's web presence and looking for documentation for commandview.
Adam Garsha
Valued Contributor

Re: SSSU unpresent VDISK from given SAN

Finally, it takes a lot longer to depresent/represent then you would think... so plan accordingly.
Nate Bruneau
Occasional Visitor

Re: SSSU unpresent VDISK from given SAN

thanks that worked
Sheldon Smith
Honored Contributor

Re: SSSU unpresent VDISK from given SAN

It should not take much time for the SSSU script to run. The default is a 10 second delay between each command in the FILE script. Do you have the following command at or near the beginning of your SSSU script?

set options nocommand_delay

Note: While I work for Hewlett Packard Enterprise, all of my comments (whether noted or not), are my own and are not any official representation of the company.
----------
If my post was useful, click on my KUDOS! thumb below!
DeafFrog
Valued Contributor

Re: SSSU unpresent VDISK from given SAN

Hi , how was this mapping of vdisk and lunid created. i did captchure configuration , but it's overwhelming. Regards, RT
FrogIsDeaf