So we host some yum repositories for various customers and I'm wondering if there is any way to find out how often package XYZ gets downloaded from our yum repository? Is this something that is tracked at all? Couldn't find anything via google but maybe someone has experience in this?
Danny's questions
I am setting up a Centos machine with Apache running on it for load balancing between two application webservers. Normally I would do all this with an F5 (or other hardware LB) but the customer is not wanting to spend anymore money so I am putting this together with a VM. I have gotten it to work to do regular round robin between two machines, but I need to just have the second server for failover. See my virtual host below:
<VirtualHost *:80>
Options +FollowSymLinks
Include conf/virtualhosts.conf
RewriteEngine on
RewriteLogLevel 9
RewriteLog /var/log/httpd/rewrite_log
RewriteRule ^/?h/(\.[0-9]+)/(string/.*)$ balancer://mycluster/$2?h=$1 [P,QSA]
Header add Set-Cookie "h=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_WORKER_ROUTE
<Proxy balancer://mycluster/>
Order deny,allow
Allow from all
BalancerMember http://server1:8080 route=0
BalancerMember http://server2:8080 route=1 status=+H
</Proxy>
ProxyPreserveHost on
ProxyPass / balancer://mycluster/ stickysession=h nofailover=On
ProxyPassReverse / balancer://mycluster/
ProxyPass /balancer-manager !
<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Allow from all
</Location>
</VirtualHost>
Two questions now that I'm having issues with:
I have set the status=+H option, but when I turn off the web service on server1, it just keeps trying to send me over to that one. Is this because of a cookie on my machine that still wants me to go there? Do I need to set up a health check for a http return value? I'm a little lost at this point. If I take down the whole server, it should work, but then I gotta go downstairs to the server room to reboot the thing :).
I cannot get the balancer_manager to work. When I go to
http://virtualip/balancer-manager
it sends me to one of the web servers and then the web server on server1 will tell me that that link does not exist.
Any help on either issue would be great!
I am trying to modify a Kickstart script so that it does not auto-accept the EULA (which it seems to skip right now.)
I am setting up a few servers for a conference at a hotel. They have setup a separate VLAN for me and gave me 3 static IP's and a DHCP pool of 500.
The issue I have is that the two servers can not ping each other.
Server-1 has 192.168.150.2
Server-2 has 192.168.150.3
From both servers I can ping the gateway (at 192.168.150.1) or any computer using DHCP.
A DHCP using computer can ping both servers.
I have been screwing around with the ifcfg-eth0 file lots and trying various things but can not for the life of me figure it out. I'm more of a systems engineer than an admin and not amazing with the IT side. What can I do to trouble shoot this?
I am having an issue with my own yum repo; I have basic auth on Apache running on a RHEL 6.2 machine on EC2.
It holds the yum repo for both a RHEL 6 machine and a RHEL 5 machine in which I have the RPM's in a separate folder within.
When I do my yum update
on any RHEL 6 machine, it's fine, everything works, but when I run it on a RHEL 5.5 machine, I get the error below;
[Errno 14] HTTP Error 401: Authorization Required.
I know for a fact that I can access the machine and the username and password is correct as I can copy and paste what is in the repo file and it works in a web browser no problem.
I suspect there is an issue with a RHEL6x machine serving up a repo for a 5.x machine but can't find the solution.
What could be the problem and how can I resolve it?
I'm not sure if this is the right stackexchange site to ask this on. But I'm trying to set up a kickstart boot dvd for RHEL5.5. I also want to add some RPM's on it to install after with the %post script section. My question is, how can I add these rpm's as well as my .ks file to the DVD ISO? Is there a program I need to open the ISO, extract all the data, then remake it into an ISO for burning?
I am trying to get the BusID's of each video card stored in a server and putting them in a variable each to be used for an input to a simple find and replace perl script. How would I go about getting the BusID's of each device listed when I run "lspci | grep VGA" for example.
Thanks