And that freed up disk space?  If so, hurray!

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Fouts, Christopher
Sent: Thursday, April 13, 2017 12:22 PM
To: [email protected]
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, "[email protected] on behalf of Dimitri 
Yioulos" <[email protected] on behalf of 
[email protected]> 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: [email protected] 
[mailto:[email protected]] On Behalf Of Fouts, Christopher
    Sent: Thursday, April 13, 2017 12:01 PM
    To: [email protected]
    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, "[email protected] on behalf of 
Dimitri Yioulos" <[email protected] on behalf of 
[email protected]> 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: [email protected] 
[mailto:[email protected]] On Behalf Of Fouts, Christopher
        Sent: Thursday, April 13, 2017 10:37 AM
        To: [email protected]
        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@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, "[email protected] on behalf of 
Michael Mraka" <[email protected] on behalf of 
[email protected]> 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
            [email protected]
            https://www.redhat.com/mailman/listinfo/spacewalk-list
        
        
        _______________________________________________
        Spacewalk-list mailing list
        [email protected]
        https://www.redhat.com/mailman/listinfo/spacewalk-list
        
        _______________________________________________
        Spacewalk-list mailing list
        [email protected]
        https://www.redhat.com/mailman/listinfo/spacewalk-list
    
    
    _______________________________________________
    Spacewalk-list mailing list
    [email protected]
    https://www.redhat.com/mailman/listinfo/spacewalk-list
    
    _______________________________________________
    Spacewalk-list mailing list
    [email protected]
    https://www.redhat.com/mailman/listinfo/spacewalk-list


_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to