Yesterday morning I got to watch my system as Plex attempted to Optimize Database as a weekly scheduled task, during which it was, I assume, attempting to fix my DB bloat issue (my DB is 85 GB!). However, as mentioned here, for this process to work I need a comfortable amount of free space on my hard drive for Plex to do its thing (i.e., at least 85 GB, plus more for breathing room…I’m guessing 100 GB of free space would do the trick?).
But this is where I am at a loss and could use some advice and guidance. When I look in Windows Explorer to see how much total space is available on my hard drive, it says 222 GB. Currently, on a day-to-day basis, I am using 144 GB of that space. The biggest hogs are:
- Plex Media Server - 106 GB, which includes:
- Plex DB - 85 GB
- Plex DB-WAL - 12 to 15 GB (this was at 0 GB when I first peeked into my system this morning, but then climbed and climbed until the Optimization process crapped out when it ran out of hard drive space)
- Windows files - 25 GB
- Program files - 7 GB
I’ve uninstalled all the programs I can. I don’t think I can delete much if anything in the Windows files, can I? (I’ve done the Windows Disk Cleanup thing to remove unneeded Windows Update files.) I’ve done defragging… I feel like the bloat issue has painted me into a corner - my hard drive isn’t huge but it’s more than big enough for what it’s meant to do (run Plex). But it’s not big enough for Plex to do what it needs to do to fix its own issue…
I did go ahead and download Web Tools-NG and I have that queued up and ready to go to manually run the Optimize Database process as soon as I’m ready. But I just can’t figure out any way to free up enough hard drive space (short of buying a bigger hard drive, but that’s a pretty big out-of-pocket expense to pay, solely to fix a Plex bug).
I do have a great big external hard drive with over a TB of free space (that’s what I use to save all my actual media files). Perhaps there’s a way to temporarily transfer something over there? I feel it’d be extreme to completely move/reinstall my whole Plex Server over there, fix the DB bloat, then move/reinstall it back on my hard drive…but is that an (only) option?
UPDATE - before I posted, I thought I would try the “Compress this drive to save disk space” option as a last resort. I don’t think I want/need that permanently, but it did give me 111 GB of free space, which I thought would be enough. I used Web Tools-NG to run the Optimize Database task yesterday around 1PM, which left Plex unresponsive until bedtime (which was expected), but when I woke up this morning the DB was still at 85 GB. “Compress this drive to save disk space” would have also compressed the Plex DB, not sure if that would cause an issue? Or maybe there’s some other step I’m missing? I’ll wait until late this evening to try again and run Optimize Database again, overnight…I’ll see what happens…