- Community Home
- >
- Storage
- >
- Legacy
- >
- Storage Software
- >
- Re: Request SSSU scripting assistance
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2010 09:30 AM - last edited on тАО02-17-2014 07:35 PM by Lisa198503
тАО01-12-2010 09:30 AM - last edited on тАО02-17-2014 07:35 PM by Lisa198503
Hello all! I have a number of LUNs configured in a mirror set that is fractured most of the day. The main LUN is presented to server1 and the mirror is presented to server2. These LUNs are manipulated by an automated process. Each day, the mirror LUN is removed from server2 and is resynched with the LUN that is presented to server1. The automation waits for a period of time, then fractures the mirror and re-presents the mirrored LUN to server2. We're getting ready to add some more disks to this process and, since the SSSU documentation doesn't go very deep, I thought that I'd present them to the forum. The scripts are attached.
Since there are 49 LUNs currently affected by this process, does SSSU execute each line of the script, wait for completion, then move to the next line? For example, if I have 49 "delete LUN xxxxx" commands, does it pause 49 times waiting for the LUN to be removed from the host, or does it start the process, then move to the next delete statement?
The reason I ask is that this process was created by my predecessor, who is no longer with the company. I'm getting ready to add 6 more LUNs to the 49 currently affected and want to make sure that I have ample time for the mirror to synch up properly. I'm thinking that if the script waits for each line to complete, I should add 10% to the time window.
As I said, the scripts are attached. PSTEP1 is the script that removes the LUN from server2 and re-synchs the LUN. PSTEP2 breaks the mirror and gives the LUN back to server2.
P.S. This thread has been moved from Storage Area Networks (SAN) (Enterprise) to HP Storage System Scripting Utility (SSSU). -HP Forum Moderator
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2010 06:24 PM
тАО01-12-2010 06:24 PM
Re: Request SSSU scripting assistance
The DELETE LUN command removes access to a virtual disk from a host, it does not process anything on the Array, just removes an entry from configuration table, hence this command does not have the option "wait_for_completion".
One option called "command_delay" of SET OPTIONS command is for the number of seconds (0├в 300) to wait between issuing commands when running a script from a FILE command. The default is 10 seconds. This option
has no effect when maually entering commands at the command line.
Currently, looks like, you are using 2 second delay
SET OPTIONS ON_ERROR=exit_ON_ERROR command_delay=2
SET OPTIONS ON_ERROR=continue
But, not sure, why you set to CONTINUE just after setting of EXIT_ON_ERROR for ON_ERROR option.
I guess, you need something like:
SET OPTIONS COMMAND_DELAY=
SET OPTIONS ON_ERROR=CONTINUE
Regards
Susanta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 06:48 AM
тАО01-13-2010 06:48 AM
SolutionAs a general rule (and being bitten a few times with commands not "finishing" on the array before the next one started, like creating a vdisk then failing upon a presentation attempt via SSSU) I would after issuing a command verify the command completed, such as
- Create the vdisk
- ls the vdisk
- then present the vdisk to first host
- ls that lun
- present the vdisk to a second host (in cluster, etc.)
This avoids the need for set time between commands, but rather allows SSSU/ the array to "pace" itself. Some folks have told me this is needlessly conservative, but I would rather be safe than sorry, especially if this is running when someone is not online to do a fix if needed.
However, your resynch process is a bit more troubling, as it seems to wait "for a period of time" rather than checking to see if the mirrorclone is actually resynched (which you can do by parsing an LS of the vdisk, searching for the desired state of the mirrorclone in the output) to be safe. That method will require stepping out of SSSU to some O/S utility, but that is what I would rather do to be safe. The RSM utility/product you get with command view *may* be able to do that as part of it's scripting language, but our experience with running multiple jobs in it has been so poor (don't get me started)we only use SSSU now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2011 09:48 AM
тАО06-02-2011 09:48 AM