NetSUS Storage Usage

etippett
Contributor II

Does anyone know how much storage is required for a NetSUS configured to serve Yosemite updates? I have added this catalog (http://swscan.apple.com/content/catalogs/others/index-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog) to my /var/lib/reposado/preferences.plist (it's the only catalog listed) and had to stop repo_sync because it was filling up the virtual hard drive. In order to request more storage from my VM engineer, I'm going to need an idea of what it's going to top out at. Right now my /srv/sus/html/content/downloads folder is at 248GB--ridiculous! If anyone has ideas on how to cut this down (such as getting rid of un-needed multi-lingual voices) please let me know!

Thanks,
Eric

3 REPLIES 3

etippett
Contributor II

I should point out that I've already run '/var/lib/reposado/repoutil —purge-product all-deprecated' and that has barely helped.

mvught
Contributor

@etippett i found this article:

The SUS part of NetSUS is reposado: https://github.com/wdas/reposado
Docs: https://github.com/wdas/reposado/tree/master/docs

https://github.com/wdas/reposado/blob/master/docs/reposado_preferences.txt
https://github.com/wdas/reposado/blob/master/docs/reference.txt

You can choose which catalogs to replicate; if you want to replicate only 10.8 and 10.9 catalogs you can. You may be disappointed in the savings; those two catalogs are by far the largest.

You'd configure reposado to sync only those catalog by setting AppleCatalogURLs in preferences.plist like so: <key>AppleCatalogURLs</key> <array>
<string>http://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog</string>
<string>http://swscan.apple.com/content/catalogs/others/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog</string> </array>

But if you were to limit syncing to only those catalogs, all updates not in either of those catalogs will appear as "deprecated". You could then remove them and free up disk space:

repoutil --purge-product all-deprecated

etippett
Contributor II

Thanks @mvught . I should have posted back that I was able to track down similar documentation, which enabled me to limit my preferences.plist to only the needed catalog(s) and remove deprecated updates with repoutil.