[Spacewalk-list] Spacewalk server disk full - how to clean up via CLI?

Fouts, Christopher Christopher.Fouts at Teradata.com
Thu Apr 13 16:34:18 UTC 2017


Yes, I’m able to log back in the server. (Note to self, don’t mirror debuginfo repos). Thanks again.

Chris

On 4/13/17, 12:31 PM, "spacewalk-list-bounces at redhat.com on behalf of Dimitri Yioulos" <spacewalk-list-bounces at redhat.com on behalf of dyioulos at netatlantic.com> wrote:

    And that freed up disk space?  If so, hurray!
    
    
    -----Original Message-----
    From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Fouts, Christopher
    Sent: Thursday, April 13, 2017 12:22 PM
    To: spacewalk-list at redhat.com
    Subject: Re: [Spacewalk-list] Spacewalk server disk full - how to clean up via CLI?
    
    Thanks! I found them in /var/satellite and did
    
    # find /var/satellite –name “*debuginfo*” –type d | xargs rm –rf
    
    Chris
    
    On 4/13/17, 12:09 PM, "spacewalk-list-bounces at redhat.com on behalf of Dimitri Yioulos" <spacewalk-list-bounces at redhat.com on behalf of dyioulos at netatlantic.com> wrote:
    
        You must know which directory the packages are stored in.  For me, it's /spacewalk/satellite/redhat.  That's just the way I set it up.  YMMV.  Do a search for a couple of packages that you're sure are in one of your repos.
        
        
        -----Original Message-----
        From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Fouts, Christopher
        Sent: Thursday, April 13, 2017 12:01 PM
        To: spacewalk-list at redhat.com
        Subject: Re: [Spacewalk-list] Spacewalk server disk full - how to clean up via CLI?
        
        Which spacewalk dir? I did a “find / -name spacewalk –type d” and none of the resulting directories contained a large amount of data.
        
        Chris
        
        On 4/13/17, 11:01 AM, "spacewalk-list-bounces at redhat.com on behalf of Dimitri Yioulos" <spacewalk-list-bounces at redhat.com on behalf of dyioulos at netatlantic.com> wrote:
        
            Chris,
            
            I don't know if this will be of any help to you, and someone will probably come up with a better solution, but here's what I once did.  I needed to remove Rpmforge repos, as Rpmforge ceased existence.  I deleted the repos, and ran fsck, but the Rpmforge-related packages remained.  Fortunately, "rf" was in the package names from Rpmforge, so I ran the following one-liner in the spacewalk directory:  "find . -type f -name '*.rf.*' -exec rm {} +".  That took care of the problem.  If the packages that you want to remove also have some identifier like "rf", perhaps this will work for you.
            
            Dimitri
            
            -----Original Message-----
            From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Fouts, Christopher
            Sent: Thursday, April 13, 2017 10:37 AM
            To: spacewalk-list at redhat.com
            Subject: Re: [Spacewalk-list] Spacewalk server disk full - how to clean up via CLI?
            
            I did the spacewalk-remove-channel but it did NOT delete packages. I’m now trying to do spacewalk-data-fsck but I get this…
            
            [root at td-spacewalk bin]# spacewalk-data-fsck -r Spacewalk 23672 2017/04/13 10:33:37 -04:00: ERROR LOG FILE: Couldn't open log file /var/log/rhn/spacewalk-data-fsck.log
            Spacewalk 23672 2017/04/13 10:33:37 -04:00: (<type 'exceptions.IOError'>, IOError(28, 'No space left on device')) Bus error
            
            Chicken and the egg probem (
            
            chris
            
            On 4/13/17, 10:19 AM, "spacewalk-list-bounces at redhat.com on behalf of Michael Mraka" <spacewalk-list-bounces at redhat.com on behalf of michael.mraka at redhat.com> wrote:
            
                Fouts, Christopher:
                > I have 100% disk usage on my Spacewalk server, and the Spacewalk site (of course) shows Internal Server Error on any page. How can I delete a repo and a channel (CentOS 7 Debuginfo) via CLI to clean this up?
                
                Hi Christopher,
                
                There are spacewalk-remove-channel and spacewalk-data-fsck commands which
                can help you.
                
                > Chris
                
                Regards,
                
                --
                Michael Mráka
                System Management Engineering, Red Hat
                
                _______________________________________________
                Spacewalk-list mailing list
                Spacewalk-list at redhat.com
                https://www.redhat.com/mailman/listinfo/spacewalk-list
            
            
            _______________________________________________
            Spacewalk-list mailing list
            Spacewalk-list at redhat.com
            https://www.redhat.com/mailman/listinfo/spacewalk-list
            
            _______________________________________________
            Spacewalk-list mailing list
            Spacewalk-list at redhat.com
            https://www.redhat.com/mailman/listinfo/spacewalk-list
        
        
        _______________________________________________
        Spacewalk-list mailing list
        Spacewalk-list at redhat.com
        https://www.redhat.com/mailman/listinfo/spacewalk-list
        
        _______________________________________________
        Spacewalk-list mailing list
        Spacewalk-list at redhat.com
        https://www.redhat.com/mailman/listinfo/spacewalk-list
    
    
    _______________________________________________
    Spacewalk-list mailing list
    Spacewalk-list at redhat.com
    https://www.redhat.com/mailman/listinfo/spacewalk-list
    
    _______________________________________________
    Spacewalk-list mailing list
    Spacewalk-list at redhat.com
    https://www.redhat.com/mailman/listinfo/spacewalk-list





More information about the Spacewalk-list mailing list