Sign in to follow this  
6yb

[RESOLVED] Moving VM from cache to standard disk

6 posts in this topic Last Reply

Recommended Posts

Posted (edited)

Hi,

 

All my VMs are located on cache drives (I have 2 SSD with RAID1).
the mount point is /mnt/cache/vms/...
I want to move unused vms to /mnt/user/vms/... to freeup space on the cache drives.
I noticed that the vm I want to move has already a disk file on /mnt/user/vms/...
I guess that is because everything on cache is moved to the array, is it safe to move the vdisk of the vm to /mnt/user/vms/... , edit the xml and just remove everything from this vm from cache?

 

Thanks

Edited by 6yb

Share this post


Link to post

That's what I did to move my VMs off of the cache drive. Copied the drive files to the new location and then updated the path references in the VM editor. I have a m.2 NVMe drive mounted via UD and the VM's running off of it with no issue.

Share this post


Link to post

Do note that you do NOT want to run your VM's from a spinner. The performance will be abysmal.

Share this post


Link to post

Thank you John,

I will not run them from the spinner, I move them because I don't use them for the moment.

Share this post


Link to post
15 hours ago, 6yb said:

Hi,

 

All my VMs are located on cache drives (I have 2 SSD with RAID1).
the mount point is /mnt/cache/vms/...
I want to move unused vms to /mnt/user/vms/... to freeup space on the cache drives.
I noticed that the vm I want to move has already a disk file on /mnt/user/vms/...
I guess that is because everything on cache is moved to the array, is it safe to move the vdisk of the vm to /mnt/user/vms/... , edit the xml and just remove everything from this vm from cache?

 

Thanks

STOP! If you do exactly what you say, you will delete your data.

 

/mnt/cache/vms/ IS /mnt/user/vms/   THEY ARE THE SAME FILE. The first path is the real file, it exists on the cache drive. The second path is the virtual user share path, it only exists in RAM, and points to the drive.

 

What you are actually intending to do, is move the files from /mnt/cache/vms/ to /mnt/diskX/vms/ , both of those will show up together under /mnt/user/vms/

Pick which disk # you want it to live on, and move it from the cache drive to that disk, keeping the full path identical other than the /mnt/cache and /mnt/diskX part.

 

Also, before you do this, you need to set the share vms to cache:only or cache:no, if you leave it on cache:prefer the mover script will undo what you just did.

Share this post


Link to post
Posted (edited)

Hi Jonathan,

 

I wish I had seen your post yesterday because what you said happened already and I have now nothing on /mnt/user/vms of my copy from yesterday.
Hopefully I also took a backup of the VM disk to a share located in /mnt/disk1/vm_backups and I still have that file.
 

Good to know for the next time or for someone reading this post.

Thanks

Cyrille

Edited by 6yb

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Copyright © 2005-2018 Lime Technology, Inc.
unRAID® is a registered trademark of Lime Technology, Inc.