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

SSSU Commands to remove many luns on a server

SOLVED
Go to solution
Sue Leikam
Occasional Visitor

SSSU Commands to remove many luns on a server

We are running an EVA8000 and would like to use SSSU to delete luns off a server. What commands should I use?

 

P.S. This thread has been moved from  Disk Array to HP Storage System Scripting Utility (SSSU). -HP Forum Moderator

5 REPLIES
Mark Poeschl_2
Honored Contributor
Solution

Re: SSSU Commands to remove many luns on a server

A series of "DELETE VDISK " commands should do the trick.
Dave La Mar
Honored Contributor

Re: SSSU Commands to remove many luns on a server

We are on an older version of CVS, to be upgraded this Saturday.
But, here is how we have been doing it -

/sbin/sssu "FILE $YOUR_FILE_NAME"

Typical YOUR_FILE_NAME -

SET OPTIONS NOCOMMAND_DELAY ON_ERROR=EXIT_ON_ERROR
select manager sma1.corp.gottschalks.com username=administrator password=secret
select cell SAN01
delete lun "\Hosts\HP-UX\Your Host name\50"
delete storage "\Virtual Disks\The host name\lun name\ACTIVE"
exit

Regards,
-dl
"I'm not dumb. I just have a command of thoroughly useless information."
Thomas Callahan
Valued Contributor

Re: SSSU Commands to remove many luns on a server

He/She said delete LUN's, not storage.

Please disregard the "delete storage" command, as that will completely delete the data from the EVA.

If you simply want to unpresent, use "delete lun \Hosts\hostname\lun"

Thanks,
Tom Callahan
Uwe Zessin
Honored Contributor

Re: SSSU Commands to remove many luns on a server

Doing that manually can be a bit of work...
For that case I take the output of the "SHOW LUN" command, store it in a file (show_lun.txt) and run it though a script (one line):

$ sed -e 's/ \\Hosts/delete lun \\Hosts/g' show_lun.txt | grep "^delete" > delete_luns.txt


In case you want to present them later again, do a "CAPTURE CONFIGURATION" before you start working with the EVA and store it in 'config.txt'. Then you can easily extract the mapping commands:

$ grep "^ADD LUN " config.txt > present_vdisks.txt

.
Sue Leikam
Occasional Visitor

Re: SSSU Commands to remove many luns on a server

Thank you!

Sue