echolaughmk
3 Zinc

Re: How to "refresh" a snapshot using CLI?

Jump to solution

Does an XtremIO Uptime Bulletin exist for XtremIO yet like EMC has for the other products that details the relative percentage of customer adopting the different code levels so customers can compare? This would be very helpful to have in understanding what the latest target code is and the interoperability testing with other products.

If it does exist and I just couldn't find it on the support site, feel free to just shoot me the link. I posted a seperate discussion as well, but figured it played here with the recent replies. Thanks.

0 Kudos
pamy1
1 Copper

Re: How to "refresh" a snapshot using CLI?

Jump to solution

I would like a copy (pam.davis@carle.com)

0 Kudos
disi
1 Copper

Re: How to "refresh" a snapshot using CLI?

Jump to solution

Hello Marvin,  I am able to refresh snapshots successfully in  XIO XMS  Version: 4.0.2 build 80  by  using  this XMSCLI...

create-snapshot-and-reassign from-consistency-group-id="src_cg"  to-snapshot-set-id="target_ss" no-backup

This  command  works  fine  as  long as the  to-snapshot-set-id  is  named   as  "target_ss"

The  issue  I am  running into is that  every time I run  the refresh  it  keeps  giving a new name  for the snapshot set  like "SnapshotSet.1467294388022"

Any idea  how to keep my  original snapshot set name  after  the refresh ?

Thanks

0 Kudos
Avi3
3 Zinc

Re: How to "refresh" a snapshot using CLI?

Jump to solution

The snapshot set name change after the refresh is expected (see this blog<http://blog.docbert.org/xtremio-snapshot-refresh/> for more details of how the snapshot refresh operation works in XtremIO).

However, with XtremIO 4.0.2 - it is possible to refresh a snapshot set from the CLI/API based on a tag. The tag used to do the refresh will be automatically moved to the new snapshot set created as a part of the refresh.

This was done to allow a consistent command to be used to repeatedly refresh the same snapshot set. Previously this wasn¹t possible due to the fact that the newly refresh snapshot volumes were put into a new snapshots set (this is what you observed), which thus meant it had a different name to the old snapshot set. Thus refreshing it a second time required using the new snapshot set name rather than the previous one.

0 Kudos
dynamox
6 Thallium

Re: How to "refresh" a snapshot using CLI?

Jump to solution

Avi wrote:

The snapshot set name change after the refresh is expected (see this blog<http://blog.docbert.org/xtremio-snapshot-refresh/> for more details of how the snapshot refresh operation works in XtremIO).

However, with XtremIO 4.0.2 - it is possible to refresh a snapshot set from the CLI/API based on a tag.  The tag used to do the refresh will be automatically moved to the new snapshot set created as a part of the refresh.

This was done to allow a consistent command to be used to repeatedly refresh the same snapshot set.  Previously this wasn¹t possible due to the fact that the newly refresh snapshot volumes were put into a new snapshots set (this is what you observed), which thus meant it had a different name to the old snapshot set. Thus refreshing it a second time required using the new snapshot set name rather than the previous one.

Avi,

what do you mean "The tag used to do the refresh will be automatically moved to the new snapshot set created as a part of the refresh."  Can you please give an example (pictures would be great)

0 Kudos
Avi3
3 Zinc

Re: How to "refresh" a snapshot using CLI?

Jump to solution

It is now possible to refresh a snapshot set from the CLI/API based on a tag. As I mentioned above, the tag used to do the refresh operation will be automatically moved to the new snapshot set created as a part of the refresh.

For example, you can now add a unique tag (MySS in the picture below) to the snapshot set:

pic1.png

And then repeatedly refresh the snapshot set using a consistent command based on the tag using the to-snapshot-set-tag-id= options. See below for the same command being run three times:

pic2.png

With each refresh, the tag will be moved to the newly created snapshot set ready for the next refresh:

pic3.png

If you have not used Tags in the CLI below, note the format used above. You need to use the full '/SnapshotSet/TagName' format; simply using the tag name itself will result in an object not found error.

Hope this helps.

0 Kudos
dynamox
6 Thallium

Re: How to "refresh" a snapshot using CLI?

Jump to solution

Thanks Avi, so the CLI command you provided above. Am i refreshing the same snapshot set over and over or i am creating brand new snapshot sets ?

0 Kudos
Avi3
3 Zinc

Re: How to "refresh" a snapshot using CLI?

Jump to solution

With the example I provided earlier, you would end up refreshing the same set of volumes every time. A new snapshot set is created with every refresh though (but the tag is kept on the 'latest' snapshot set after every refresh).

The whole point is that you are now able to use the same command everytime/repeatedly for the refresh operations.

0 Kudos