Jump to content

Freeze VM?


Recommended Posts

Yes but not automatically, you use a script though, make a copy of the vdisk when the VM is shutdown in the state you want, then just copy back overwriting existing one before VM start, if using btrfs you can do this with reflinks so copy takes a couple of seconds and also it will use much less space, only the differences between them.

Link to comment
9 minutes ago, glockmane said:

So basically I install OS and everything I want, make a copy of the vdisk once and copy back this backup everytime before vm starts?

Yep.

 

Btrfs can be more finicky, especially with hardware issues, xfs is supposed to support reflinking in the near future, maybe it already does, not sure since I don't keep up with xfs development.

Link to comment
51 minutes ago, johnnie.black said:

[...] if using btrfs you can do this with reflinks so copy takes a couple of seconds and also it will use much less space, only the differences between them.

Does this mean I have to do something else to use the reflink feature? If I understand correctly filesystem does everything by itself, so if I copy a file reflink will automatically be used and if it gets modified only changed blocks will be written?

 

According to this thread (second last post) reflinking is enabled with xfs by default with the newer Unraid releases.. So I guess I should stay with xfs for the moment..

 

https://forums.unraid.net/bug-reports/prereleases/unable-to-format-new-drives-system-locks-up-rc5-r732/page/2/

 

(you also replied there ;))

Link to comment

I know they were doing the work for xfs to support reflinking, not sure if it's already working, easy to try though, just copy a large file/vdisk, if the copy is instantaneous and no extra space is used it's already working.

 

cp --reflink=always /path/to/souce /path/to/dest

 

Note: filesystem needs to have been recently created, with Unraid 6.8.x

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...