Opened 2 years ago
Closed 2 years ago
#2853 closed task (fixed)
tracsvn ran out of disk space
Reported by: | robe | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | Sysadmin Contract 2022-II |
Component: | SysAdmin | Keywords: | |
Cc: |
Description
Tracsvn ran out of disk space again. I deleted a snapshot to clear space.
I'm going to check if there is something eating up space.
So this broke both gitea and trac since when server runs out of disk space, PostgreSQL goes into panick mode and shuts itself down to prevent data corruption. Both use PostgreSQL
Note:
See TracTickets
for help on using tickets.
I didn't see anything out of the ordinary. gitea's git folder is taking up 66GB and /var/www/svn takes up about 25GB. Those are the biggest eaters of disk space. Followed by /var/log which is about 2.5GB
So I assume it's just churn of data. I looked at the snapshots which the 500GB I had allocated was partly used for. I deleted a couple more snapshots and upped the capacity from 400G to 700GB. using
So now there is 241G available.
Command to check snapshot usage is below for future reference
The snapshot sizes are averaging anywhere from 2GB - 19 GB and we have a retention of 30 days. as shown below
So worsed case 30*20 = 600Gb for snapshot and actual container is using 110GB. So we'd need 600 + 110GB = 710GB to handle worsed case scenario.