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

Waldirio Manhães Pinheiro waldirio at gmail.com
Fri Apr 28 05:07:56 UTC 2017


Hi Chris,

To complete, you could execute steps below

# su - postgres
$ vacuumdb -af

This one will check / reorganize your db datafile and then you will claim
more disk space.

PS: Do one df -P before and after, then compare the result.

Best Regards

______________
Atenciosamente
Waldirio
msn: waldirio at gmail.com
Skype: waldirio
Site: www.waldirio.com.br
Blog: blog.waldirio.com.br
LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
PGP: www.waldirio.com.br/public.html

On Fri, Apr 14, 2017 at 5:30 AM, <rosario.mattera at accenture.com> wrote:

> 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: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-
> bounces at redhat.com] On Behalf Of Fouts, Christopher
> Sent: giovedì 13 aprile 2017 18:34
> To: spacewalk-list at redhat.com
> 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, "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://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
>             Spacewalk-list at redhat.com
>             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
>             Spacewalk-list at redhat.com
>             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
>         Spacewalk-list at redhat.com
>         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
>         Spacewalk-list at redhat.com
>         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
>     Spacewalk-list at redhat.com
>     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
>     Spacewalk-list at redhat.com
>     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
> Spacewalk-list at redhat.com
> 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
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20170428/6016f956/attachment.htm>


More information about the Spacewalk-list mailing list