November 25, 20214 yr Hello after around two days my cache runs out of space. And I have no idea what it could be. The cache are two 120GB SDD's which are connected to a PCI-E SATA Card JMB363 and run RIAD 1 btrfs. I hope someone can help me ^^. Full Cache: Then I run the btrfs defragmentation (btrfs filesystem defragment -rvf /mnt/cache) and all is good for the next two days. Two more screenshots: Before defragmentation: After defragmentation: Edited November 25, 20214 yr by RichardIstSauer
November 26, 20214 yr Community Expert In the first screenshot there's still plenty of space, but if the free space keeps getting lower without writing new files it's usually lack of discard on vdisks, see here for Windows VMs: https://forums.unraid.net/topic/51703-vm-faq/?do=findComment&comment=557606
November 26, 20214 yr Author 5 hours ago, JorgeB said: but if the free space keeps getting lower without writing new files Yes the data grow's around 100MB per hour. 5 hours ago, JorgeB said: usually lack of discard on vdisks, see here for Windows VMs The only VM I use is based on Qcow2 Home Assistant Image. Could this be the cause for the growing cache space usage?
December 8, 20214 yr Author I added the discard parameter and the fstrim linux service at the vm. But it not changed so much. I had an disk usage at 90GB then I started the fstrim service manually and then only 80GB were used. But that also was too much so I ran the btrfs defragmentation "btrfs filesystem defragment -rvf /mnt/cache" and then the disk usage was only 64GB.
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.