Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258877 - low disk space on osprey /mnt/distfiles
Summary: low disk space on osprey /mnt/distfiles
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-13 20:41 UTC by Zac Medico
Modified: 2014-08-19 13:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gentoo-x86 distfiles breakdown (log,1.11 MB, text/plain)
2010-08-13 09:10 UTC, Brian Harring (RETIRED)
Details
script that lists distfiles not referenced by SRC_URI for all whitelists (distfiles-whitelist-analysis.py,1.91 KB, text/plain)
2010-08-14 10:19 UTC, Zac Medico
Details
output from distfiles-whitelist-analysis.py run on osprey (distfiles_whitelist_analysis.txt,389.31 KB, text/plain)
2010-08-14 10:24 UTC, Zac Medico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2009-02-13 20:41:13 UTC
On osprey is currently only about 7.5 gig of free space on /mnt/distfiles (out of 200 gig). We could probably free some space from /mnt/distfiles/releases-purgatory by removing at least the 2008.0_beta1 and 2008.0_beta2 stages.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-02-13 22:15:50 UTC
I'll move them to my archival later, just on my way out the door now.
Comment 2 Zac Medico gentoo-dev 2009-02-21 19:37:23 UTC
It's down to about 5 gig now.
Comment 3 Zac Medico gentoo-dev 2009-02-24 07:46:17 UTC
I've tweaked the variables inside /home/gmirror/scripts/update_distfiles.sh in order to free some space:

PURGATORY_DEATH_WATCH_INTERVAL=$((7 * 24 * 60 * 60))
DEATH_WATCH_INTERVAL=$((3 * 24 * 60 * 60))

So, files are moved from /mnt/distfiles/distfiles to /mnt/distfiles/distfiles-purgatory after 3 days and then 7 days later they are removed from the purgatory. After making that change we've got almost 8 gig free.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-02-24 10:31:58 UTC
releases-purgatory backed up and cleaned out. 50G now available.
I still need to either transfer the backup to my home box, or find somewhere else with LTO3 that can dump it to tape for me.
Comment 5 Zac Medico gentoo-dev 2010-04-19 04:43:58 UTC
Space is really low again.
Comment 6 Zac Medico gentoo-dev 2010-04-19 04:59:44 UTC
Side note: If we want to save space by making the distfiles mirroring script hardlink files from distfiles-local, the files in distfiles-local will have to be owned by the distfiles user. They are currently have root:root ownership and hardlink creation fails with EPERM (seemingly due to some kernel security feature).
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-04-24 22:44:44 UTC
zmedico:
1. all the files in distfiles-local that are copied from woodpecker are now chowned to distfiles:distilfes.
2. I've got a hardlink in place for local -> main.
3. now we just need hardlink for main/purgatory.

ferringb:
This is the hardlink stuff I wanted to discuss with you, put any comments in this bug.
Comment 8 Zac Medico gentoo-dev 2010-08-13 06:47:21 UTC
It's 100% full right now...
Comment 9 Brian Harring (RETIRED) gentoo-dev 2010-08-13 07:01:08 UTC
Right, I was going to rewrite mirror-dist with hardlinking... 

We solve this now how?
Comment 10 Brian Harring (RETIRED) gentoo-dev 2010-08-13 09:10:23 UTC
Created attachment 242741 [details]
gentoo-x86 distfiles breakdown

Attached is a breakdown of which packages are referencing what percentile of the unique total of distfiles needs.

The interesting thing here is that the total here for distfiles is around 93GB, with 6GB shared (shared between unique pkgs, rather than shared between pkg versions).

Mirror is at 117GB as the current needs, yet the raw distfiles should be around 93GB- something is whacked there.  Assuming mirror-dist isn't screwing up, that puts around 24GB of whitelists...
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-08-13 21:51:20 UTC
Back at 88% now.

ferringb, zmedico: can either of you generate me a list of files that are ONLY still present because they are whitelisted (and not pulled in by anything in the current tree), and which whitelist they are in.
Comment 12 Zac Medico gentoo-dev 2010-08-14 10:19:56 UTC
Created attachment 242905 [details]
script that lists distfiles not referenced by SRC_URI for all whitelists
Comment 13 Zac Medico gentoo-dev 2010-08-14 10:24:05 UTC
Created attachment 242909 [details]
output from distfiles-whitelist-analysis.py run on osprey

(In reply to comment #11)
> ferringb, zmedico: can either of you generate me a list of files that are ONLY
> still present because they are whitelisted (and not pulled in by anything in
> the current tree), and which whitelist they are in.

There's one row for each whitelist and the first column is the whitelist name.
Comment 14 Zac Medico gentoo-dev 2011-01-14 11:11:36 UTC
It's up to 95% right now.
Comment 15 Zac Medico gentoo-dev 2011-03-18 22:32:26 UTC
It filled all the way to 100%. I removed /mnt/distfiles/distfiles-purgatory to free some space. It's got about 1.5G free now, and it's trying to catch up with stuff that failed due to lack of space:

  http://dev.gentoo.org/distfile-mirroring/
Comment 16 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-03-23 15:32:02 UTC
100% full again, I'll bug the arch teams to get moving on /experimental mirroring to offload that service.
Comment 17 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-05-11 16:00:58 UTC
(In reply to comment #16)
> 100% full again, I'll bug the arch teams to get moving on /experimental
> mirroring to offload that service.

0 space free. Robin, please advise on turning off the experimental/releases services. Those have been migrated off osprey. Thanks.
Comment 18 Alex Legler (RETIRED) archtester gentoo-dev Security 2014-08-19 13:45:07 UTC
/dev/md/5             201G  171G   31G  85% /mnt/distfiles

looks alright for the moment