PG music

Q: Why is this folder so large? 125 GB.

I run a lab and all of a sudden, my hard drive began filling up overnight. After some investigation I suspect Software Update is the culprit. I have turned it off now on the server and all student stations, but I still have a large folder at this location:

 

/private/var/db/swupd/html/content/downloads

 

The folder size is 125GB. I have run SW Update so everything is current. How do I get rid of this?

 

 

Also, in checking my server log, I see that ClamAV was trying to do a daily update. I never installed ClamAV. Does it come with some other program?

Mac Pro, Mac OS X (10.6.8)

Posted on Apr 18, 2012 10:30 PM

Close

Q: Why is this folder so large? 125 GB.

  • All replies
  • Helpful answers

  • by Peter Borbonus,Helpful

    Peter Borbonus Peter Borbonus Apr 18, 2012 10:54 PM in response to PG music
    Level 2 (165 points)
    Servers Enterprise
    Apr 18, 2012 10:54 PM in response to PG music

    Hi!

    What you can do to clean your SoftwareUpdateServer (SUS) is:

    Use these steps to remove the older updates:

    1. Open Server Admin.

    2. Stop the Software Update service.

    3. Click the Settings tab.

    4. The storage directory for your software updates is listed next to "Store updates in:". Locate this folder in the Finder.

    5. Delete the folder named "html" inside it. You will need to use the sudo command or enter an administrator password in the Finder.

    6. Start the Software Update service in Server Admin.

    (taken from Article: HT5198, March 22th, 2012)

     

    After restart SUS, your Server will download all the Updates again. The content of the folder of my server is around 50-60GB!

     

    ClamAV is preinstalled with MacOSX Server. It is a virus-scanning software.

     

    Peter.


  • by PG music,

    PG music PG music Apr 19, 2012 8:42 AM in response to Peter Borbonus
    Level 1 (0 points)
    Apr 19, 2012 8:42 AM in response to Peter Borbonus

    Thank you, Peter.

     

    Still having trouble, though. I cannot turn off SW Update in Server Admin. Every time I go to save changes, it reverts to on. Also, I am not finding the storage directory under settings tab.

  • by Peter Borbonus,

    Peter Borbonus Peter Borbonus Apr 19, 2012 8:49 AM in response to PG music
    Level 2 (165 points)
    Servers Enterprise
    Apr 19, 2012 8:49 AM in response to PG music

    That sounds not good...

    Take a look at my screenshot (it is in german, but you should understand what it is at your server!)

    Bildschirmfoto 2012-04-19 um 17.47.11.png

    Is yours looking like this too?

  • by Peter Borbonus,Solvedanswer

    Peter Borbonus Peter Borbonus Apr 19, 2012 9:11 PM in response to PG music
    Level 2 (165 points)
    Servers Enterprise
    Apr 19, 2012 9:11 PM in response to PG music

    OK, maybe you want to reset your SUS?

    Try this:

    1. Verify it's not trying to do a sync by launching activity monitor and selecting all processes and type sync in the Filter field, nothing should be listed if it's not trying to update

     

    2. Stop the SUS Service

     

    3.Remove the following files from the server:

    (In order to view the contents of hidden directories such as /etc, use the Go -> Go to Folder Menu Item in Finder.)

     

    /etc/swupd/swupd.conf DO NOT DELETE

    /etc/swupd/swupd.plist DO NOT DELETE

    /etc/swupd/.last_run

    /etc/swupd/.start_time

    /etc/swupd/.sync_done

    /etc/swupd/com.apple.server.swupdate.plist

    /etc/swupd/com.apple.server.swupdate.plist.previous

    The contents of /var/db/swupd/html ( DO NOT delete this folder, only the contents )

     

    Alternative, if you prefer to use the Terminal:

    sudo rm /etc/swupd/.last_run

    sudo rm /etc/swupd/.start_time

    sudo rm /etc/swupd/.sync_done

    sudo rm /etc/swupd/com.apple.server.swupdate.plist

    sudo rm /etc/swupd/com.apple.server.swupdate.plist.previous

    sudo rm /etc/swupd/swupd.plist

    sudo rm -R /var/db/swupd/html

     

    4. Restart the server

     

    5. Once the reboot has taken place, use ServerAdmin to re-configure and start the Software Update Service. Allow the server time to re-download the software updates (this could take anywhere from 3-30 hours depending on connection speed of the server). Wait until it is finished (watch the log!)

     

    6. Test Client update against server.

     

    Hope this helps,

    Peter,

  • by PG music,

    PG music PG music Apr 20, 2012 1:14 PM in response to Peter Borbonus
    Level 1 (0 points)
    Apr 20, 2012 1:14 PM in response to Peter Borbonus

    Thank you so much, Peter. Hugely helpful. It seems to have resolved. I'll know on Monday if my drive hasn't filled to capacity again. So far, so good.

     

    Dave

  • by PG music,

    PG music PG music Apr 23, 2012 3:19 PM in response to Peter Borbonus
    Level 1 (0 points)
    Apr 23, 2012 3:19 PM in response to Peter Borbonus

    I think my problem is solved! Thanks again!!

  • by Peter Borbonus,

    Peter Borbonus Peter Borbonus Apr 23, 2012 5:41 PM in response to PG music
    Level 2 (165 points)
    Servers Enterprise
    Apr 23, 2012 5:41 PM in response to PG music

    Nice to read, David!

    I'm glad, that I could help you.

     

    Greetings,

    Peter