- Community Home
- >
- Storage
- >
- HPE Nimble Storage
- >
- Array Performance and Data Protection
- >
- Re: How to restore/clone a vm from vvol?
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
тАО09-22-2016 08:23 AM
тАО09-22-2016 08:23 AM
I am playing around with VVols and really like them so far. Too bad the max volume limit on Nimbles is so low since it will only allow me to get about half our VMs on to vvols.
I was looking at snapshots and storage policies and how to recover.
Currently with traditional VMFS data stores to recover a VM I do this:
Use the Nimble vCenter plugin to clone the data store from snapshot.
Shutdown and rename the VM in vcenter
start the VM from the cloned data store
vmotion it out
use the plugin to delete the data store and clone.
Now with VVols there is no options for the vvol data store in the plugin so can't do it that way.
snapshot manager on a vm shows no snaps
clone a vm doesn't have the snaps
I tried to clone the volume collection of the main config vvol of my vm but they then looked like normal volumes - not vvol volumes.
So the question is - how do you use nimble snapshots to restore a VM that is using vvols?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2016 09:44 AM
тАО09-22-2016 09:44 AM
SolutionHi Cade,
With VMFS datastores, the workflow you describe above is ideal. Because the datastore contains multiple VM's, we wouldn't just do a snapshot restore, as that would affect all of the other VMs on the datastore in addition to the one we were interested in. So we clone the datastore, import the VM, and then move it back to the original datastore with svmotion.
With VVols, we don't have this constraint since each VMDK is its own volume on the array.
The way to recover a VM from snapshot is to simply revert the volume(s) to that snapshot. If you have a managed (taken from vSphere) snapshot, you can do this in the vSphere snapshot manager. If the snapshots are created from the array side, which it sounds like the case here, you simply do the following:
- Power off the VM
- Revert volume snapshots on the array for all of the VVols associated with the VM. (Or selectively revert them, it's up to you.)
- Power on the VM
If you've deleted a VM, you can recover it within 24 hours by using the vm --restore command on the array. Also, if you're not sure which volumes make up the VM, you can use the vm --list and vm --info commands to find out.
Cheers,
Julian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2016 09:59 AM
тАО09-22-2016 09:59 AM
Re: How to restore/clone a vm from vvol?
Thanks for the info.
One issue with that we have run into (not often) is a developer will be working on something that day and screw up the DB or something and we have to revert.
I save the old "bad" vm in case they come back with needing new files on the old machine. With the procedure of using an array snapshot as a new data store is I can keep the old vm for a couple days if I need to bring it backup to get stuff off it.
What about cloning from an array snapshot?
We will clone a prod datastore and VM to test an upgrade before we try prod.
Normally we just clone the nightly array snapshot, mount it, bring the VM up, test, delete.
I assume now we just clone when needed via vcenter?
Can you even clone the array snapshots as a new machine?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2016 10:06 AM
тАО09-22-2016 10:06 AM
Re: How to restore/clone a vm from vvol?
Also sounds like a nice enhancement to the plugin.
Right click the VM, go to the nimble plugin, revert VM from array snapshot.
For that matter clone from snapshot too
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2016 05:01 AM
тАО12-08-2016 05:01 AM
Re: How to restore/clone a vm from vvol?
I also spoke to Nimble support, and in addition to Julian's steps they recommended removing the VM from inventory after you power it off. Then add it back to inventory after you finished restoring the snapshot.
- Power off the VM
- Remove from inventory
- Revert volume snapshots on the array for all of the VVols associated with the VM. (Or selectively revert them, it's up to you.)
- Add back to inventory
- Power on the VM
Regards,
Chad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2017 10:35 PM
тАО01-12-2017 10:35 PM
Re: How to restore/clone a vm from vvol?
The issue I'm having is how to revover individual files. Scenario: You have a VM backed by Vvols and a user has deleted some files. I don't want to completely restore the VM back to its last snap but just mount the snap to revover the files out of place. How is this done?
Regards,
Mark.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2017 12:11 AM
тАО02-08-2017 12:11 AM
Re: How to restore/clone a vm from vvol?
Hi Mark,
The short answer: create a clone and map it to the VVol VM via RDM, you will need to set a VMFS datastore for the descriptor but that is the quickest way.
Steps:
Create a clone from the snapshot you need.
Apply ACL (select the same as the VVol VM or an initiator group that has the ESX host iqn in it).
Rescan the ESX host.
Edit the VVol VM ( or any other VM you want to add the volume to ).
Add new device: RDM Disk
Select the new device (tip: eui = volume serial number )
You can't complete at this point as the pointer requires a VMFS datastore:
Expend the new RDM.
Location: store with virtual machine >> expend and select browse >> select VMFS datastore. (this is a VMware limitation)
On the guest OS, open disk mgmt and online the new device, this will mount the volume.
Let me know if it worked for you.
Thanks,
Moshe.