I tested this successfully for both _recent and also case where we want to clone an older snapshot with a timestamp on secondary. The case where we want to clone a non _recent has a slight bug which I am fixing (when we rename recent we use "-" and normally we use "_"). I documented below. Again since this was never intended but like many things with SC just kind of works somehow
Here is what you need to make sure is setup to clone secondary (snapmirror destination)
In my example primary is: bck-filer1:keith_test secondary is: bck-filer2:keith_test2
Make sure all of these things are setup correctly and it should work. Make sure you use the action "clone_vol"
ie: ./snapcreator.pl --config 443 --action clone_vol --policy daily --verboseNote: This only work if you are not using _recent so SNAP_TIMESTAMP_ONLY=Y since when we rename _recents we use a "-" instead of normal "_", I am going to change this so it is consistent and consider that a slight bug.
Let me knof if you get this working. I also tested using older snapshots with timestamp. It works if you set in config file the following:
Note: All snapshots must be taken with SNAP_TIMESTAMP_ONLY=Y for this to work, this is a slight bug I am fixing
########## Gathering Information for bck-filer1:keith_test ########## [Thu Mar 18 13:35:53 2010] INFO: Performing NetApp Snapshot Inventory for keith_test on bck-filer1 [Thu Mar 18 13:35:53 2010] INFO: NetApp Snapshot Inventory of keith_test on bck-filer1 completed Successfully
########## SnapCreator Snapshot (Primary) List for bck-filer1:keith_test #########
### Snapshot Name ### ### Snapshot Timestamp ### db2prd-daily_20100318133226 Mar 18 2010 11:30:57 db2prd-daily_20100318133232 Mar 18 2010 11:31:03
Here we are using the user_defined value to pass in the timestamp so we dont have to update the config file which I think is a cool solution!
From: Tenzer, Keith Sent: Thursday, March 18, 2010 10:30 AM To: Loughmiller, Greg Subject: RE: Create a flexclone without creating a snapshot
You can create a clone on secondary if you are using snapmirror as the transport. Let me help you get that working. When you have some time we can work together on it in your test env...it should work. My onlc concern was using the _recent if that would work with the snapshots disabled.
From: Loughmiller, Greg Sent: Thursday, March 18, 2010 12:15 AM To: Tenzer, Keith Subject: Re: Create a flexclone without creating a snapshot
One issue is I can not create a clone on secondary. Just localI thumbed this on the itty bitty keyboard on my iPhone.
No not by intention but maybe could* be possible (explained below). SnapCreator can only create a clone from a new snapshot not an existing snapshot. We can add this to 3.3. There is a feature list thread for 3.3 in the community, if you want this to be added please explain how you think it should work. We could do what we do with restore, provide a menu to choose volumes and snapshots to clone and then clone them or we could do something else. GUI would have to come later as it always lags cli.
What you could do now if you are using _recent snapshots in theory is set:
Then setup your clone options and select clone_vol, this should just create clone of recent snapshot. For other snapshots you would have to override the SNAP_TIME in the config file:
This would require listing snapshots "--action snaplist" and taking timestamp and adding it in config as SNAP_TIME
I have never tested this so these are just ideas, let me know if it works but like I said if we want this functionality we should figure out how to implement it
From: Loughmiller, Greg Sent: Wednesday, March 17, 2010 1:34 PM To: c-dl-snapcreator Subject: Create a flexclone without creating a snapshot Is there a method to tell SC to create a flexclone without taking a snapshot? If I have the <snapshot name>_recent available-can SC just create a flexclone based on an existing snapshot? Greg Loughmiller Professional Services Consultant, NCIE-SAN PS-North Amer. - East NetApp 678.982.6099 Mobile Phone http://www.netapp.com/www.netapp.com
So can a snapvault snapshot on secondary storage be mounted up to a server and used in a read/write mode? The reason I am asking is for Disaster Recovery purposes. So if the primary storage is down we want to be able to mount up a snapshot to the server and get the system at DR backup and working with the latest data.
Also you will need SC 3.6 and when you clone you can or should be able to pass in the --snapName to clone an existing snapshots. I havent tried this and SV snapshots have a different format but it should work.