May 22, 20224 yr I run in my unraid server a VM of Home Assistant with the FRIGATE NVR addon. I have 3 cameras in frigate, recording 1 day of all MOTION + 5 days of PERSON detection. But the size of the VM always rise, i have to expand it a lot... but the frigate auto delete the old videos that have passed the date limit of my configuration. Once the frigate has saved the video, even after it delete it, the alocation size is not downsized?
May 23, 20224 yr Qcow2 images don’t auto-shrink when data is removed, afaik. i found this on the inter web describing how trimming is possible if the vm is set up just right. I’ve never tried it in unRAID, but it should work. There may be other solutions as well; https://kparal.wordpress.com/2017/10/06/automatically-shrink-your-vm-disk-images-when-you-delete-files/
May 23, 20224 yr Author 3 minutes ago, meep said: Qcow2 images don’t auto-shrink when data is removed, afaik. i found this on the inter web describing how trimming is possible if the vm is set up just right. I’ve never tried it in unRAID, but it should work. There may be other solutions as well; https://kparal.wordpress.com/2017/10/06/automatically-shrink-your-vm-disk-images-when-you-delete-files/ Maybe can i do like docker and set a folder inside a VM to a share in the array?
May 23, 20224 yr Yes, inside your vm, you can mount any unRAID share just like you would from a regular PC. It behaves just like a network volume. This is a good solution. I run blueiris in a Windows VM for my security cameras. I have an unassigned disk passed through to the VM for recording storage / scratch The VM sees this as a locally mounted HD. I also have a an unRAID share mounted in the VM as a network drive. Here, BlueIris moves ‘motion’ tagged clips nightly. Works really well. Edited May 23, 20224 yr by meep
May 23, 20224 yr Author 13 minutes ago, meep said: Yes, inside your vm, you can mount any unRAID share just like you would from a regular PC. It behaves just like a network volume. This is a good solution. I run blueiris in a Windows VM for my security cameras. I have an unassigned disk passed through to the VM for recording storage / scratch The VM sees this as a locally mounted HD. I also have a an unRAID share mounted in the VM as a network drive. Here, BlueIris moves ‘motion’ tagged clips nightly. Works really well. Do you know any tutorial on how to do that?
May 23, 20224 yr Hi @Ricardo Maranhao I managed to cobble together a quick tutorial. Let me know if that's clear, helpful, or if you have any further questions that I could address in the article. https://mediaserver8.blogspot.com/2022/05/mapping-additional-and-network-drives.html Edited May 23, 20224 yr by meep Added the link and some typos. D'Oh!
May 23, 20224 yr Author 1 minute ago, meep said: Hi @Ricardo Maranhao I managed to cobble together a quick tutorial. Let me know if that's clear, if you have any further questions that I could address in the article. https://mediaserver8.blogspot.com/2022/05/mapping-additional-and-network-drives.html You are the man!! Thanks a lot!!!
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.