Frustrations
VSA Community Forum
LeftHand VSA Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Frustrations Expand / Collapse
Author
Message
Posted Thursday, June 26, 2008 11:44 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Friday, August 22, 2008 2:27 PM
Posts: 5, Visits: 17
OK, coming from what I am starting view as a "full-featured enterprise storage" background (read there, "NetApp"), I'm becoming increasingly frustrated with the LeftHand appliance's entire methodology for snapshotting.

We're writing a script so that a centralized host can take a list of volumes, use the scripting API (a rant for a different time and place...) to make snapshots of all them, mount the snapshots centrally, back them up, and then unmount and desnap them all.

Except if I create a snapshot manually, the VSA, in its infinite wisdom, decides it should auto-add the snapshot to the parent volume's VL. This is NOT acceptable behavior. The parent volume and the snapshot have the same UUID (because they're snapshots), so if the parent volume's mounting host decides to rescan its iSCSI bus for whatever reason, it might become thoroughly confused by the same UUID appearing in two different places, possibly trying to mount the snapshot as its "main" volume.

Is there any way to configure the VSA *not* to think it knows best, and to do "what it is told and nothing more"? specifically, not to have the manually created snapshot auto-joined to a volume list
Post #253
Posted Thursday, June 26, 2008 2:11 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Yesterday @ 2:22 PM
Posts: 101, Visits: 354
I assume that you are using the "volume_snapshot" command.
As the scripting readme states, the "volume_snapshot_no_acl" command will do the same thing but not inherit the volume list.

Samples of both commands and the readme for scripting are on our website under SAN/iQ Software Downloads.
I'm pasting the SAN/iQ 7 SP1 sample of the volume_snapshot_no_acl command here.

@echo off
REM **************************************************
REM script to: *
REM Create Snapshot *
REM *
REM requires: *
REM LeftHand Networks supplied files *
REM java runtime environment *
REM commandline.CommandLine in *
REM UI.jar *
REM *
REM this script is provided as an example only *
REM *
REM this script works with SAN/iQ 6.6 or higher *
REM *
REM **************************************************

REM LeftHand Networks SAN/iQ variable definition
SET admin_name=admin
SET admin_passwd=lefthandnetworks
SET manager_ip=A.B.C.D
SET volume_name=Volume_Name
SET snapshot_name=Snapshot_Name
SET snapshot_description="Snapshot Description"
SET timeout=30
SET java_path="C:\Program Files\LeftHand Networks\UI\jre\bin\java.exe"
SET jar_path="C:\Program Files\LeftHand Networks\UI\UI.jar"

REM create snapshot on the IP-SAN
%java_path% -cp %jar_path% commandline.CommandLine %admin_name% %admin_passwd% %manager_ip% volume_snapshot_no_acl %volume_name% %snapshot_name% %snapshot_description% %timeout%
IF NOT %errorlevel% == 0 (
ECHO Trouble creating snapshot
GOTO :EOF )


Adam C
Product Manager
LeftHand Networks
Post #254
Posted Thursday, June 26, 2008 2:17 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Friday, August 22, 2008 2:27 PM
Posts: 5, Visits: 17
Is there any actual "documentation" to the command line interface? Having to pore over every single sample script hoping to glean out the useful bits is not the best way to work. :-)

Probably would have saved me a rant. hehehe

Post #255
Posted Thursday, June 26, 2008 2:47 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Yesterday @ 2:22 PM
Posts: 101, Visits: 354
Yes, there is a readme. It is limited to listing all the commands and in brief what they do.
Depending on how you got to the sample scripts off our website the readme should be right next to / above it.
A search for "SAN/iQ scripting" on our website will find it and only a handful of other items.
If that search returns nothing then you are probably not logged into the website with sufficient permissions to get scripts.


Adam C
Product Manager
LeftHand Networks
Post #256
« Prev Topic | Next Topic »


All times are GMT -6:00, Time now is 5:58pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.031. 10 queries. Compression Disabled.