Hi,
you can try to execute the following

spacewalk-repo-sync -l  just to check the channel label to delete

Then

spacewalk-remove-channel  -c CHANNEL-LABEL  if you want to delete a child 
channel
Or
spacewalk-remove-channel -a channel-label  if you want to delete a base 
channel with all its child

So,

spacewalk-data-fsck -r -S -C -O  to clean up the filesystem from the orphan 
packages

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Fouts, Christopher
Sent: giovedì 13 aprile 2017 18:34
To: [email protected]
Subject: Re: [Spacewalk-list] Spacewalk server disk full - how to clean up via 
CLI?

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, "[email protected] on behalf of Dimitri 
Yioulos" <[email protected] on behalf of 
[email protected]> wrote:

    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://urldefense.proofpoint.com/v2/url?u=https-3A__www.redhat.com_mailman_listinfo_spacewalk-2Dlist&d=DwIGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=IwCprbXurW_UyKCkbPR-2-kq6Zxded3znI-lOKTtI9g&m=0GtBy2BwRmc5-vI9V6FhMyK8GxaM1Ui9lim-_Bg8F1o&s=KvbxeqSHpvtcgUhdbYz7YyShxrLU0xwWibM8yUxYgtU&e=


            _______________________________________________
            Spacewalk-list mailing list
            [email protected]
            
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.redhat.com_mailman_listinfo_spacewalk-2Dlist&d=DwIGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=IwCprbXurW_UyKCkbPR-2-kq6Zxded3znI-lOKTtI9g&m=0GtBy2BwRmc5-vI9V6FhMyK8GxaM1Ui9lim-_Bg8F1o&s=KvbxeqSHpvtcgUhdbYz7YyShxrLU0xwWibM8yUxYgtU&e=

            _______________________________________________
            Spacewalk-list mailing list
            [email protected]
            
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.redhat.com_mailman_listinfo_spacewalk-2Dlist&d=DwIGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=IwCprbXurW_UyKCkbPR-2-kq6Zxded3znI-lOKTtI9g&m=0GtBy2BwRmc5-vI9V6FhMyK8GxaM1Ui9lim-_Bg8F1o&s=KvbxeqSHpvtcgUhdbYz7YyShxrLU0xwWibM8yUxYgtU&e=


        _______________________________________________
        Spacewalk-list mailing list
        [email protected]
        
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.redhat.com_mailman_listinfo_spacewalk-2Dlist&d=DwIGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=IwCprbXurW_UyKCkbPR-2-kq6Zxded3znI-lOKTtI9g&m=0GtBy2BwRmc5-vI9V6FhMyK8GxaM1Ui9lim-_Bg8F1o&s=KvbxeqSHpvtcgUhdbYz7YyShxrLU0xwWibM8yUxYgtU&e=

        _______________________________________________
        Spacewalk-list mailing list
        [email protected]
        
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.redhat.com_mailman_listinfo_spacewalk-2Dlist&d=DwIGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=IwCprbXurW_UyKCkbPR-2-kq6Zxded3znI-lOKTtI9g&m=0GtBy2BwRmc5-vI9V6FhMyK8GxaM1Ui9lim-_Bg8F1o&s=KvbxeqSHpvtcgUhdbYz7YyShxrLU0xwWibM8yUxYgtU&e=


    _______________________________________________
    Spacewalk-list mailing list
    [email protected]
    
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.redhat.com_mailman_listinfo_spacewalk-2Dlist&d=DwIGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=IwCprbXurW_UyKCkbPR-2-kq6Zxded3znI-lOKTtI9g&m=0GtBy2BwRmc5-vI9V6FhMyK8GxaM1Ui9lim-_Bg8F1o&s=KvbxeqSHpvtcgUhdbYz7YyShxrLU0xwWibM8yUxYgtU&e=

    _______________________________________________
    Spacewalk-list mailing list
    [email protected]
    
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.redhat.com_mailman_listinfo_spacewalk-2Dlist&d=DwIGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=IwCprbXurW_UyKCkbPR-2-kq6Zxded3znI-lOKTtI9g&m=0GtBy2BwRmc5-vI9V6FhMyK8GxaM1Ui9lim-_Bg8F1o&s=KvbxeqSHpvtcgUhdbYz7YyShxrLU0xwWibM8yUxYgtU&e=


_______________________________________________
Spacewalk-list mailing list
[email protected]
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.redhat.com_mailman_listinfo_spacewalk-2Dlist&d=DwIGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=IwCprbXurW_UyKCkbPR-2-kq6Zxded3znI-lOKTtI9g&m=0GtBy2BwRmc5-vI9V6FhMyK8GxaM1Ui9lim-_Bg8F1o&s=KvbxeqSHpvtcgUhdbYz7YyShxrLU0xwWibM8yUxYgtU&e=

________________________________

This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise confidential information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the e-mail by you is prohibited. Where allowed by local law, electronic 
communications with Accenture and its affiliates, including e-mail and instant 
messaging (including content), may be scanned by our systems for the purposes 
of information security and assessment of internal compliance with Accenture 
policy.
______________________________________________________________________________________

www.accenture.com

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

Reply via email to