What I do is create clone channels and turn off automatic synching.
When I’m ready to update I perform a manual sync, then run the aforementioned 
script and cleanup to remove all the older packages.
Then I sync the clone with the parent channel and select to sync only new 
packages.
That seems to keep my space down to a reasonable level.

Paul

From: [email protected] <[email protected]> On 
Behalf Of T
Sent: Wednesday, February 2, 2022 11:42 AM
To: [email protected]
Subject: Re: [Spacewalk-list] [EXTERNAL] /var/satellite full (1.2TB). What 
happens if I remove some of the contents?

Hi,
Following up on this.

Spacewalk-data-fsck only cleared a few packages so the drive is still just 
about 100% full. I believe I have to start managing channels somehow...via 
spacecmd or GUI but I cannot get to them.

All of the services are listed as running when I run 
/usr/sbin/spacewalk-service status but when I try to use spacecmd it gives 
ERROR: Failed to connect to https://../rpc/api
The hostname is listed in /etc/hosts for localhost and I can ping the address. 
Other than that I'm not sure where to look to get the api connected. Would you 
guys have any ideas?
Thanks again!
Tony

On Mon, Jan 31, 2022 at 5:05 PM T 
<[email protected]<mailto:[email protected]>> wrote:
Thanks for the help everyone! I was able to get the database up by just 
removing some directories from /var/satellite/redhat/ and systemctl start 
postgresql. The system is currently doing the spacewalk-data-fsck processes.. 
which will take a while. What else are you guys doing for system maintenance? I 
figure I should run the data-fsck command every week.

On Mon, Jan 31, 2022 at 2:46 PM Muhammad Mosleh Uddin 
<[email protected]<mailto:[email protected]>> wrote:
if it is taking way much space, you can clean and sync repo again.

/var/satellite/redhat/*   ->>>this is where you will start deleting
I hope it will help!

On Mon, Jan 31, 2022 at 2:43 PM Waldirio Manhães Pinheiro 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

I can tell you this script is going to use the SW API. Once your system/db is 
down, API will be down as well. Try to cleanup some files first (ISO) or any 
other log that will allow you to start your SW once again, after that, go for 
it.

I hope this helps.

______________
Best
Waldirio
Skype: waldirio
Site: www.waldirio.com.br<http://www.waldirio.com.br>
LinkedIn: https://www.linkedin.com/in/waldirio


On Mon, Jan 31, 2022 at 11:33 AM T 
<[email protected]<mailto:[email protected]>> wrote:
Thank you all - I needed to first clear some space to even wget the script. 
Muhammad, would you please expand on your point? Did you mean resync from repo? 
Do you know what command that is?

On Mon, Jan 31, 2022 at 2:10 PM Dennis Pittman 
<[email protected]<mailto:[email protected]>> wrote:
Check out this article.
https://easyitstuff.wordpress.com/2017/09/19/how-to-remove-old-packages-in-spacewalk/#:~:text=Make%20the.py%20script%20executable%20chmod%20%2Bx%20spacewalk-remove-old-packages.py%20Now%2C,packages%20in%20addition%20to%20your%20Spacewalk%20admin%20details.


-----Original Message-----
From: 
[email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> 
On Behalf Of Peirce, Dean
Sent: Monday, January 31, 2022 2:07 PM
To: [email protected]<mailto:[email protected]>
Subject: Re: [Spacewalk-list] [EXTERNAL] /var/satellite full (1.2TB). What 
happens if I remove some of the contents?

/var/satellite will continue to grow as the repos grow in size, due to packages 
being updated.
I have a separate disk just for satellite that we've bolted on more storage 
yearly.

-Dean

> On Jan 31, 2022, at 2:02 PM, T 
> <[email protected]<mailto:[email protected]>> wrote:
>
> Hi,
> Don't know if there's anyone here still using Spacewalk. We inherited a 
> legacy system so much of the experience and know-how are gone.
>
> Issue:
> Our machine running spacewalk is 100% full. I tracked it down to 
> /var/satellite being completely full. Our option is to clear some space or 
> create more space since postgres is no longer running due to no space.
>
> Other research suggested spacewalk-data-fsck or spacecmd but neither of these 
> work because the database isn't running.
> I am out of ideas so my hail mary is going into /var/satellite/redhat/ and 
> removing random stuff from there. Terrible idea - I know but I'm wondering if 
> others have had this problem, and how did you remedy it?
>
> Thank you,
> Tony
> _______________________________________________
> Spacewalk-list mailing list
> [email protected]<mailto:[email protected]>
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Flistman.redhat.com%2Fmailman%2Flistinfo%2Fspacewalk-list__%3B!!MXVguWEtGgZw!fUjmn72oK3ZYGqutTnAUPB0ib5pkb2aIQCmsV_w7DItGe_SBHn1N8dZZdU9aDOkLHw%24&amp;data=04%7C01%7C%7C4d63e01f9b504149044208d9e4ecf655%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637792528675988152%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=RwwRAtH9Grextq6ZH%2F03SHzURFP4fFU1p2Ad6M2OdVQ%3D&amp;reserved=0


_______________________________________________
Spacewalk-list mailing list
[email protected]<mailto:[email protected]>
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistman.redhat.com%2Fmailman%2Flistinfo%2Fspacewalk-list&amp;data=04%7C01%7C%7C4d63e01f9b504149044208d9e4ecf655%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637792528675988152%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=zBXZeRz5kv45rWCZR88kWYJMtzJldBGJ6ySKmRlI21I%3D&amp;reserved=0


_______________________________________________
Spacewalk-list mailing list
[email protected]<mailto:[email protected]>
https://listman.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________
Spacewalk-list mailing list
[email protected]<mailto:[email protected]>
https://listman.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________
Spacewalk-list mailing list
[email protected]<mailto:[email protected]>
https://listman.redhat.com/mailman/listinfo/spacewalk-list


--




Muhammad Mosleh Uddin





_______________________________________________
Spacewalk-list mailing list
[email protected]<mailto:[email protected]>
https://listman.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________
Spacewalk-list mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to