Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jan 2005
    Posts
    26

    Question YUM Cache causing full /var issues.

    I've been experiencing some issues with my /var partition becoming 100% full, preventing email delivery and other issues. Digging deeper, I noticed the /var/cache directory was over 2 gigs in size. With my /var partition set at 5 gigs, you could see where this could be a problem.

    Since all of this began with the cPanel 11 upgrades, I suspected it was package updates. (I'm running CentOS 4.6) When I ran 'yum clean all', lo and behold, /var/cache dropped down to 2 megs.

    My question is this - should I make changes to the yum.conf to prevent the cache from growing to such unwieldy sizes? If so, would there be a downside to this? I must note, the yum.conf is in its default state.

    Thanks for any input you may have.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    I haven't seen a case where the yum cache was that large. I'd only have expected it to grow that significantly if there was a major OS update and would have thought that a quick clean after that happening would be all you need. The yum configuration talks about turning off http caching, but whether that would help depends on what, in the cache, was consuming the space.

    If it's a perpetual problem on that one server, then you could setup a simple cron job to just flush the cache on a regular basis and/or move the cache directory to a more spacious partition.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. /var is 80% full due to /var/log/btmp
    By discovery in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-27-2010, 02:26 AM
  2. Replies: 1
    Last Post: 01-18-2010, 11:37 PM
  3. Can I safely remove /var/cache/yum ?
    By deieno in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-13-2009, 04:54 AM
  4. Yum Broken How can I repair it causing bind error
    By psychodreams in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-17-2007, 06:18 PM
  5. FC4 Release causing YUM install problem?
    By meganet in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-16-2005, 12:39 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube