Jump to content

Drive filling up


steve1977

Recommended Posts

This is really odd.  I have a 1TB unassigned drive for VM and docker. I have two VMs (together 810G). I have quite some dockers, but surprised that they now fill up the remaining 190G. Something seems to be wrong.

 

I used to have 100G empty space on this drive. Haven't installed any docker and don't think any of the dockers expanded significantly.

 

What changed though is that I started to fill up the VMs. Are vdisks dynamic and could this be the reason (i.e., dockers may have always taken 190G, but it showed 100G free as the VMs gave some dynamic free space to the drive?).

 

The disk now is literally full-full (just a few kbs left), so this is worrisome and for sure will lead to major issues if I don't solve this quickly.


Any thoughts how to trouble-shoot?

Link to comment
12 minutes ago, steve1977 said:

Are vdisks dynamic and could this be the reason (i.e., dockers may have always taken 190G, but it showed 100G free as the VMs gave some dynamic free space to the drive?).

Yes, by default VM vdisks are created as sparse files, which only consume what is actually in use, but show the total defined size to the guest OS. The biggest issue with sparse vdisks is that they don't automatically shrink their allocation when you delete files in the VM.

Link to comment

If you copy them using a method that understands sparse files you can "resparsify" them when you copy them back to the cache. So, the procedure will look like this.

1. Copy to alternate location, probably an array disk. Verify copy, delete source on cache.

2. Copy back to cache, be sure to specify sparse copy. Verify copy, delete temporary version on array.

BTW, simply deleting files in the VM will not free up the space, you have to tell the VM to write zeroes to the "empty" space.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...