Ricardo Maranhao Posted May 22, 2022 Share Posted May 22, 2022 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? Quote Link to comment
meep Posted May 23, 2022 Share Posted May 23, 2022 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/ 1 Quote Link to comment
Ricardo Maranhao Posted May 23, 2022 Author Share Posted May 23, 2022 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? Quote Link to comment
meep Posted May 23, 2022 Share Posted May 23, 2022 (edited) 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, 2022 by meep 1 Quote Link to comment
Ricardo Maranhao Posted May 23, 2022 Author Share Posted May 23, 2022 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? Quote Link to comment
meep Posted May 23, 2022 Share Posted May 23, 2022 Not off hand. If I get a chance I'll try too write up a short blog post later 1 Quote Link to comment
meep Posted May 23, 2022 Share Posted May 23, 2022 (edited) 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, 2022 by meep Added the link and some typos. D'Oh! 1 Quote Link to comment
Ricardo Maranhao Posted May 23, 2022 Author Share Posted May 23, 2022 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!!! Quote Link to comment
Recommended Posts
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.