1837195 Members
2495 Online
110115 Solutions
New Discussion

SSSU scripting

 
Tod Bryant
New Member

SSSU scripting

I'm trying to script fail over of my disks from one node to another node. Does anyone know the SSSU syntax to present / un-present drives to a host?
9 REPLIES 9
Michael Leu
Honored Contributor

Re: SSSU scripting

According to the Docs it seems to be "ADD LUN". But i have never used it.

Syntax:
ADD LUN VDISK= HOST=
Uwe Zessin
Honored Contributor

Re: SSSU scripting

You're right.

"ADD LUN" is used to present an EVA virtual disk to a host.

"DELETE LUN" is used for removal of the mapping.
.
Ranjith_5
Honored Contributor

Re: SSSU scripting

Hi Bryant,

Creating and Presenting a Virtual Disk
=========================================

Here are the steps to follow to create a virtual disk and present the system to a
host.
â   Select the newly created system
â   Add a virtual disk (ADD VDISK) to the storage system
â   Add a host to the system (ADD HOST)
â   Add a LUN using a host and a VDISK

1. Use the SELECT SYSTEM command to select the system you just created.
NoSystemSelected> SELECT SYSTEM Yekao
Yekao>
The prompt changes to reflect the object selected, in this case the system
Yekao.

2. Create a virtual disk using the ADD VDISK command, supplying the virtual
disk name and size in whole GBs.
Yekao> ADD VDISK Enicar SIZE=4
Yekao>
This example creates a 4-GB virtual disk named Enicar with a Vraid0
redundancy.

Note: The virtual disk (storage) can be between 2 GB (minimum) and 2000

To present this newly created virtual disk, you need to have at least one host
within the storage system. This host must be added to the storage system
configuration.

You can use the SHOW WORLD_WIDE_NAME command to see the available
Fibre Channel Adapter World Wide Names.

3. Use the ADD HOST command to add a host to the storage system, supplying
the World Wide Name (WWN) for the host port (FCA).
Use caution with WWN assignments as these are not verified against the
existing adapter when assigned.
Yekao> ADD HOST \Hosts\SVT165
WORLD_WIDE_NAME=1000-0000-c923-6735
Yekao> SET HOST \Hosts\SVT165
ADD_WORLD_WIDE_NAME=1000-0000-c923-6736

4. Add the LUN to the host by using the ADD LUN command, supplying the
full path to the virtual disk and the host machine.
Yekao> ADD LUN 15 VDISK=â \Virtual Disks\Enicar\ACTIVEâ
HOST=\Hosts\SVT165
Remember, for any path or name that contains spaces, you must enclose the
entire string in double quotes, as in the example above.

Now LUN 15 is presenting the VDISK to the ho
Ranjith_5
Honored Contributor

Re: SSSU scripting

Hi Bryant,

Creating and Presenting a Virtual Disk
=========================================

Here are the steps to follow to create a virtual disk and present the system to a
host.
Select the newly created system
Add a virtual disk (ADD VDISK) to the storage system
Add a host to the system (ADD HOST)
Add a LUN using a host and a VDISK

1. Use the SELECT SYSTEM command to select the system you just created.
NoSystemSelected> SELECT SYSTEM Yekao
Yekao>
The prompt changes to reflect the object selected, in this case the system
Yekao.

2. Create a virtual disk using the ADD VDISK command, supplying the virtual
disk name and size in whole GBs.
Yekao> ADD VDISK Enicar SIZE=4
Yekao>
This example creates a 4-GB virtual disk named Enicar with a Vraid0
redundancy.

Note: The virtual disk (storage) can be between 2 GB (minimum) and 2000

To present this newly created virtual disk, you need to have at least one host
within the storage system. This host must be added to the storage system
configuration.

You can use the SHOW WORLD_WIDE_NAME command to see the available
Fibre Channel Adapter World Wide Names.

3. Use the ADD HOST command to add a host to the storage system, supplying
the World Wide Name (WWN) for the host port (FCA).
Use caution with WWN assignments as these are not verified against the
existing adapter when assigned.
Yekao> ADD HOST \Hosts\SVT165
WORLD_WIDE_NAME=1000-0000-c923-6735
Yekao> SET HOST \Hosts\SVT165
ADD_WORLD_WIDE_NAME=1000-0000-c923-6736

4. Add the LUN to the host by using the ADD LUN command, supplying the
full path to the virtual disk and the host machine.
Yekao> ADD LUN 15 VDISK=â \Virtual Disks\Enicar\ACTIVEâ
HOST=\Hosts\SVT165
Remember, for any path or name that contains spaces, you must enclose the
entire string in double quotes, as in the example above.

Now LUN 15 is presenting the VDISK to the host.

regards
Uwe Zessin
Honored Contributor

Re: SSSU scripting

Interesting, I thought the EVA can create a virtual disk as small as 1 GigaByte. During the last 3 years I have always been able to create such a small one.
.
Ranjith_5
Honored Contributor

Re: SSSU scripting

Hi,

Above what I mentioned is as per the SSSU guide. I have never tried creating lun less than 2GB using SSSU.

regards,
Syam
Uwe Zessin
Honored Contributor

Re: SSSU scripting

Ah, I see. Document AA-RU5HC-TE, right? If you go to page 46, you will see it mentions 1 - 2000 GigaBytes.

The former portion is obviously wrong (I have just tried and could create a 1 GigaByte virtual disk using SSSU).
.
Ranjith_5
Honored Contributor

Re: SSSU scripting

Hi Uwe,

Yes Im referring the same. I got the correction in page 47.

It was told to me during my eva training that we can specify size in GBs but then, I got confused after seeing this contradiction in an official doc. I have tried creating 1GB with CV-EVA, but never tried using SSSU for creating a volume <1GB.

You are more experienced..Thanks for the info.

regards,
Syam
Tod Bryant
New Member

Re: SSSU scripting

Thanks to everyone for the timely and informative answers to my first forum post!!
The script is working!