6yb Posted April 14, 2018 Share Posted April 14, 2018 (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 April 15, 2018 by 6yb Quote Link to comment
jbartlett Posted April 15, 2018 Share Posted April 15, 2018 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. Quote Link to comment
jbartlett Posted April 15, 2018 Share Posted April 15, 2018 Do note that you do NOT want to run your VM's from a spinner. The performance will be abysmal. Quote Link to comment
6yb Posted April 15, 2018 Author Share Posted April 15, 2018 Thank you John, I will not run them from the spinner, I move them because I don't use them for the moment. Quote Link to comment
JonathanM Posted April 15, 2018 Share Posted April 15, 2018 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. 1 Quote Link to comment
6yb Posted April 15, 2018 Author Share Posted April 15, 2018 (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 April 15, 2018 by 6yb Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.