Dynamically Expanding VM Disks


Recommended Posts

6 minutes ago, swamiforlife said:

The problem is that disks in Unraid VM's take all the space allocated to them. 

It would be far more efficient if they can grow dynamically.

This is not true!  

 

Under Unraid vdisks are allocated as Linux 'sparse' files which means that the physical space occupied is only allocated as writes to them happen and the file is allowed to grow up to its logical size as needed.  

 

In fact one of the commoner mistakes is over-committing the physical space and getting the VM to start misbehaving when there is no free space on a drive to grow the vdisk.

 

Link to comment
53 minutes ago, swamiforlife said:

Ok, just so i understand this correctly.

For example if i am creating a windows 10 VM and i set the vdisk size to 120GB.

Once that VM is created and then i use a tool like Krusader to backup the disk file. I have to copy a 120GB file even though its only using around 30GB.

So there must be something that i am doing wrong.

You need to use tools that have the option to copy sparse files keeping them sparse.    Standard Linux command line tools like cp and rsync can do this with the appropriate command line options - no idea about whether this is an option in Krusader.

Link to comment

Ok sorry i wasnt able to explain what i am looking for.

When a VM is created and i specify the size of the vdisk to something like 120gb.

When unraid creates the disk it should only take up the space used. So if my vm disk is in my cache disk, my cache shows 120gb used.

So is there a way that in which i can specify a maximum size for the vdisk like 120gb but it would use only what it really is using?

Link to comment
  • 3 years later...

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.