VMware

This Question is Answered

10 Replies Last post: Mar 16, 2009 10:28 AM by oreeh  

Move Snapshot location posted: Mar 16, 2009 4:17 AM

Click to view GlennBrett's profile Novice 10 posts since
Mar 16, 2009

Is there a process for moving the location of the snapshot files?

Snapshots can potentially take up a large amount of disk space. We would like to introduce a seperate datastore purely for Snapshot files.

Is this possible?

Assuming it is, is this a reasonable thing to want to do?

Re: Move Snapshot location

1. Mar 16, 2009 4:25 AM in response to: GlennBrett
Click to view depping's profile Champion VMware Employees User Moderators 3,205 posts since
Jan 17, 2005
Welcome to the forums,

Take a look at Eric Sieberts tip: http://vmware-land.com/Vmware_Tips.html#ESX1

I would suggest though to use snapshot moderate. And have 20% free space on a volume for snapshotting. don't let the snapshot be active for days and days, use and commit.


Duncan
VMware Communities User Moderator


Blogging: http://www.yellow-bricks.com
Twitter: http://www.twitter.com/depping

If you find this information useful, please award points for "correct" or "helpful".

Re: Move Snapshot location

3. Mar 16, 2009 5:05 AM in response to: GlennBrett
Click to view djciaro's profile Expert 292 posts since
Sep 24, 2007

The working directory determines the location of swapfiles

Stop your VM logon to Console and edit the VMX for the VM

find the line: workingDir = "DESIRED LOCATION" and enter your new location

if you want to swapfiles to saty in the same directory add or edit the following line: sched.swap.dir = "DESIRED LOCATION"

Edit VM in VI client, check the 2nd tab (options) and make sure that the Virtual machine working location is specified correctly.

then restart your VM. http://communities.vmware.com/images/emoticons/wink.gif

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!

Re: Move Snapshot location

4. Mar 16, 2009 5:23 AM in response to: GlennBrett
Click to view Nick_F's profile Enthusiast 57 posts since
Mar 11, 2008
We just leave 15-20% free on each volume for snapshots, I can see some advantages for having a dedicated snapshot datastore but I'd be worried about issues it may cause in future (although you can ofc just edit the VM settings and change the snapshot location back).

DRS relies on VMotion hence the limitation and yes it's because local storage would only be accessible by the ESX server it was part of so you can't move Vms that rely on that local storage to a different ESX server.

I can't think of any obvious issues with using a dedicated snapshot datastore on shared storage, not sure if Storage-VMotion would work though (a standard VMotion shouldn't be affected as disk locations aren't affected).

Re: Move Snapshot location

6. Mar 16, 2009 9:48 AM in response to: GlennBrett
Click to view oreeh's profile Guru User Moderators vExpert 9,970 posts since
Nov 30, 2005
Beware: Never (!!!) move a VM to another folder or datastore when workingDir and / or fileSearchPath is set as this will break the VM!

Re: Move Snapshot location

8. Mar 16, 2009 10:13 AM in response to: GlennBrett
Click to view oreeh's profile Guru User Moderators vExpert 9,970 posts since
Nov 30, 2005
No, I only said IF you place snapshots at another locatíon then don't move the VM.

Re: Move Snapshot location

10. Mar 16, 2009 10:28 AM in response to: GlennBrett
Click to view oreeh's profile Guru User Moderators vExpert 9,970 posts since
Nov 30, 2005
Vmotion isn't a problem. Storage Vmotion might but I'm not sure as I simply never tried it - and due to the pathname bug in the hosted products I avoid workingDir and fileSearchPath like the plague.

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Incoming Links

Communities