Re: [CentOS] SSL and virtual hosts?
Am Sonntag, den 20.09.2009, 16:27 +0200 schrieb Benjamin Franz: > > > Christoph Maser wrote: > > Am Sonntag, den 20.09.2009, 11:36 +0200 schrieb Niki Kovacs: > > > >> Hi, > >> > >> I successfully managed to use SSL on a local webserver for testing > >> purposes, following the section "Using SSL" in the Chapter "Using > >> Apache" of the "Definitive Guide to CentOS". Now I wonder: how can I use > >> SSL with virtual hosts? > >> > > > > You can't. At least not with name based virtual hosts and classic SSL. > > See http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#vhosts. > > > That is outdated information. There are at least two ways to use virtual > hosts with SSL on Apache. > > 1) Use a wildcard cert. You can use *.somedomain certs to serve multiple > SSL domains on a single IP so long as they fit in the *.somedomain pattern. > > 2) Use the SNI extension. > http://hvera.wordpress.com/2009/09/02/apache-ssl-with-virtual-hosts-using-sni/ > > Note, however, that SNI does not work with older version of MSIE. I don't consider both options as usable as 1) will not work for different domains and 2) is not compatible with old clients. So in my opinion the information I gave is not outdated at all and actually will never be. financial.com AG Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | Germany Frankfurt branch office/Niederlassung Frankfurt: Messeturm | Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany Management board/Vorstand: Dr. Steffen Boehnert (CEO/Vorsitzender) | Dr. Alexis Eisenhofer | Dr. Yann Samson | Matthias Wiederwach Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender) Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID number/St.Nr.: DE205 370 553 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Thermal information
Agile Aspect wrote: >> As it's a CentOS kernel, then the elrepo.org coretemp module will work >> just fine and will give you nice accurate thermal data for the cpu. >> >> http://elrepo.org/tiki/kmod-coretemp >> > > Does anyone know where I can find the kernel source for coretemp > which does *not* depend on Xen and a PAE kernel, i.e,. other than the > source RPMs from elerepo.org? I'm running a 2.6.18-128.1.10 kernel > on a netbook (Intel Atom N270.) > > Not sure I understand your question. The SRPM from ELRepo.org does not depend on xen or PAE kernels, but it does require xen and PAE kernel-devel packages installed *if* you build it for those variants. Equally you can just build it against a base kernel (non-xen/PAE) with the command line option --define 'kvariants ""'. Alternatively, if you don't like the elrepo SRPM feel free to grab the source code directly from the latest upstream kernel (http://kernel.org) and backport the code for yourself. Does coretemp support Intel Atom processors? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] SSL and virtual hosts?
Tracy Phillips wrote: > > > 1) Use a wildcard cert. You can use *.somedomain certs to serve > multiple > SSL domains on a single IP so long as they fit in the *.somedomain > pattern. > > > This is incorrect. > > apache can't read the headers since the traffic is encrypted. If it > can't read headers, it does not know which vhost to use and thus can > not serve up the correct files > > If you have more than one ssl vhost, you will have to use two IP's. > You can use one SSL vhost with many non SSL vhosts on the same IP with > no issues. Yes you can. I have SSL servers configured precisely like that. They work fine. -- Benjamin Franz ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] sed (or other) magic to get RPM base names ?
Hey folks, Once upon a time I saw some sed magic to take the output of "rpm -qa" and strip away all the version info to give just the RPM base names. And of course I forgot to note it :-/ And have not been able to replicate it myself. e.g. from this : avahi-0.6.16-1.el5 avahi-glib-0.6.16-1.el5 produce this : avahi avahi-glib thanks, -Alan -- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food" ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sed (or other) magic to get RPM base names ?
On Mon, Sep 21, 2009 at 3:06 PM, Alan McKay wrote: > avahi-0.6.16-1.el5 > avahi-glib-0.6.16-1.el5 > > produce this : > > avahi > avahi-glib r...@knodd:~# rpm -qa --queryformat "%{name}\n" avahi\* avahi avahi-compat-libdns_sd avahi-glib r...@knodd:~# Ralph ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sed (or other) magic to get RPM base names ?
Am Montag, den 21.09.2009, 15:06 +0200 schrieb Alan McKay: > Hey folks, > > Once upon a time I saw some sed magic to take the output of "rpm -qa" > and strip away all the version info to give just the RPM base names. > > And of course I forgot to note it :-/ And have not been able to > replicate it myself. > > e.g. from this : > > avahi-0.6.16-1.el5 > avahi-glib-0.6.16-1.el5 > > produce this : > > avahi > avahi-glib > > thanks, > -Alan No need fro sed here use rpms --querformat switch, see manpage of rpm for details. Chris financial.com AG Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | Germany Frankfurt branch office/Niederlassung Frankfurt: Messeturm | Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany Management board/Vorstand: Dr. Steffen Boehnert (CEO/Vorsitzender) | Dr. Alexis Eisenhofer | Dr. Yann Samson | Matthias Wiederwach Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender) Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID number/St.Nr.: DE205 370 553 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Xnest unable to connect with firewall enabled
Hi all, I have worked on both CentOS 5.2 and CentOS 5.3. In CentOS 5.2, I could connect to a remote X-server using Xnest binary provided by the package xorg-x11-server-Xnest-1.1.1-48.41.el5 with firewall settings enabled. I enabled the firewall settings from system-config-securitylevel. Now in CentOS 5.3 with firewall settings enabled, I am unable to connect to the remote X-server using Xnest (xorg-x11-server-Xnest-1.1.1-48.52.el5). To successfully connect, I have to either disable firewall settings or filter the TCP ports on which Xnest connects to the remote server. Is there an issue regarding firewall settings in CentOS 5.3 ? I want to connect to the remote X-server without disabling the firewall settings. How is possible ? Thanks in advance. Siddharth ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] SSL and virtual hosts?
Jerry Franz a écrit : > > Yes you can. I have SSL servers configured precisely like that. They > work fine. > Any way you can copy/paste your Apache configuration? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] How does LVM decide which Physical Volume to write to?
On Sep 19, 2009, at 2:15 AM, Oliver Ransom wrote: > Hi everyone. > > This isn't specifically a CentOS question, since it could apply for > any distro but I hope someone can answer it anyway. > > I took the following steps but was puzzled by the outcome of the test > at the end: > > 1. Create a RAID1 array called md3 with two 750GB drives > 2. Create a RAID1 array called md9 with two 500GB drives > 3. Initialise md3 then md9 as physical volumes (pvcreate) > 4. Create a new volume group called "3ware" with md3 (helps me > remember what controller the disks are on) > 5. Use vgextend and add md9 to the 3ware volume group. > 6. Add a logical volume filling the volume group then create a ext3 > filesystem on the entire volume. > > Now I started moving a lot of data onto the volume and iostat said all > the data was being written to md9. Why that array? How does it decide > which physical volume to write to? > > I could not find any documentation or information online about how > exactly this works. I don't know how it picks a PV, maybe flips a coin, but it isn't suppose to be a concern to the admin. One can explicitly assign a PV during LV creation by specifying the PV behind the VG name. If you want to stripe the PVs look at the -i and - I options to lvcreate. If you have a lot of PVs you can specify which PVs to stripe across by listing them after the VG name. -Ross ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] How does LVM decide which Physical Volume to write to?
Hi, On Sat, Sep 19, 2009 at 02:15, Oliver Ransom wrote: > Now I started moving a lot of data onto the volume and iostat said all > the data was being written to md9. Why that array? How does it decide > which physical volume to write to? This does not exactly explain how it picks them at creation, but you can use the command "lvdisplay -m" or "lvdisplay -m /dev/vgname/lvname" to show which logical blocks are mapped to which physical blocks of the underlying pv. HTH, Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] SSL and virtual hosts?
Hi, On Mon, Sep 21, 2009 at 10:17, Niki Kovacs wrote: > Jerry Franz a écrit : >> Tracy Phillips wrote: >>> Benjamin Franz wrote: 1) Use a wildcard cert. You can use *.somedomain certs to serve multiple SSL domains on a single IP so long as they fit in the *.somedomain pattern. >>> >>> This is incorrect. >> Yes you can. I have SSL servers configured precisely like that. They >> work fine. I also have this configured in a couple of servers. as long as you have a wildcard certificate (*.example.com) and all names are direct subdomains of that domain (www.example.com, secure.example.com, intranet.example.com, wiki.example.com, bugs.example.com, etc.) it works just fine. There are some warnings in Apache's error_log, like those: [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [warn] RSA server certificate CommonName (CN) `*.example.com' does NOT match server name!? But it works regardless of those. > Any way you can copy/paste your Apache configuration? There is nothing to it, you should only make sure that the SSLCertificateFile, SSLCertificateKeyFile and SSLCertificateChainFile point to the same files in all your virtual hosts, and that those files are the ones for the wildcard certificate. If you have to provide SSL for different domains, you can do that using IP-based virtual hosts, there is some documentation on how to do that here: http://httpd.apache.org/docs/2.2/vhosts/ip-based.html If you go that route and start having to assign a very large number of IPs to a single machine, you can assign a whole IP range to a machine by creating an interface alias to the loopback interface, that way you can assign 16, 32, 64, 128, 256 or even more IPs to a machine with one configuration only. Let me know if you would like more information on how to do that. Cheers, Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] SSL and virtual hosts?
Niki Kovacs wrote: > Jerry Franz a écrit : > > >> Yes you can. I have SSL servers configured precisely like that. They >> work fine. >> >> > Any way you can copy/paste your Apache configuration? > There is an example at http://wiki.apache.org/httpd/NameBasedSSLVHosts -- Benjamin Franz ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Xnest unable to connect with firewall enabled
Sid Kapoor wrote: > Is there an issue regarding firewall settings in CentOS 5.3 ? I want to > connect to the remote X-server without disabling the firewall settings. How > is possible ? use X11 forwarding over SSH, more secure, and usually quite a bit faster if you enable compression(-C). nate ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] redirect
Hi, I have an Nginx http proxy server with SSL. What I want to do is: If a client that has a certificate is trying to access the server's address, he is to be redirected to our production server, to certain URL. If a client doesn't have a certificate, he is to be redirected to the same production server, but a different URL. The problem is that if the client doesn't have a certificate, he gets the following error: 400 Bad Request The SSL certificate error nginx/0.6.39 I've tried the following: server { listen 8443; ssl on; ssl_certificate /etc/httpd/ssl/proxy-ssl.cer; ssl_certificate_key /etc/httpd/ssl/server.key; ssl_client_certificate /etc/httpd/ssl/ca-bundle.crt; ssl_verify_client on . . error_page 400 /400.html; location = /400.html { root /usr/share/nginx/html; but the error page 400 statement is simply ignored. Does anyone have an idea how can I do it ? I tried to find the 400 error page, thinking maybe I can make the redirect there, but it is simply not to be found. P.S. my programming/scripting skills aren't any. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] How does LVM decide which Physical Volume to write to?
hi some other informations about lvm structure are stored in /etc/lvm/backup/* /etc/lvm/archive/* enjoy :) fous ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Status of RPMForge || RPMRepo
Are the websites for RPMForge or RPMRepo off line for anyone else? As an aside (since I am just noticing), how long has rpmforge.net redirected to rpmrepo.org/rpmforge? Thanks, Andy ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] redirect
Typo .. error_page400http://URL ZZZ wrote: > Hi, > > I have an Nginx http proxy server with SSL. What I want to do is: > > If a client that has a certificate is trying to access the server's > address, he is to be redirected to our production server, to certain URL. > If a client doesn't have a certificate, he is to be redirected to the > same production server, but a different URL. > The problem is that if the client doesn't have a certificate, he gets > the following error: > > 400 Bad Request > > The SSL certificate error > > > nginx/0.6.39 > > > > > > I've tried the following: > > server { > listen 8443; > > ssl on; > ssl_certificate /etc/httpd/ssl/proxy-ssl.cer; > ssl_certificate_key /etc/httpd/ssl/server.key; > ssl_client_certificate /etc/httpd/ssl/ca-bundle.crt; > ssl_verify_client on > . > . > > error_page 400 /400.html; > location = /400.html { > root /usr/share/nginx/html; > > but the error page 400 statement is simply ignored. Does anyone have an > idea how can I do it ? I tried to find the 400 error page, thinking > maybe I can make the redirect there, but it is simply not to be found. > > > P.S. my programming/scripting skills aren't any. > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Status of RPMForge || RPMRepo
> Are the websites for RPMForge or RPMRepo off line for anyone else? Am too having the same problem ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Receive, process and send email
On Sunday 20 September 2009, "CSB" wrote: > We wish to do the following: > 1. receive an email with an attachment > 2. process the email body to get some information from it > 3. send an outbound email to an email address based on the information > derived from step 2. The email will include the attachment received in > step 1 > > I'm not sure where to start with this one so any suggestions would be > appreciated. If it's a minor amount of processing, you can just pipe it to a script from procmail or even straight from the MTA. I don't really like that mechanism though - too prone to produce bounces in the case of long processing times or errors. It's better to dump them in a Maildir and use it as a queue for a polling script. Perl in particular has a bunch of libraries available to correctly parse MIME messages and extract addresses and attachments and stuff. Don't write your own parser. -- "No animals were harmed in the recording of this episode. We tried but that damn monkey was just too fast." ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Receive, process and send email
2009/9/21 Alan Hodgson > On Sunday 20 September 2009, "CSB" wrote: > > We wish to do the following: > > 1. receive an email with an attachment > > 2. process the email body to get some information from it > > 3. send an outbound email to an email address based on the information > > derived from step 2. The email will include the attachment received in > > step 1 > > > > I'm not sure where to start with this one so any suggestions would be > > appreciated. > > If it's a minor amount of processing, you can just pipe it to a script from > procmail or even straight from the MTA. I don't really like that mechanism > though - too prone to produce bounces in the case of long processing times > or errors. It's better to dump them in a Maildir and use it as a queue for > a polling script. > > Perl in particular has a bunch of libraries available to correctly parse > MIME messages and extract addresses and attachments and stuff. Don't write > your own parser. > talkin' about perl, i remember once i used something called milter for things like this . > > -- > "No animals were harmed in the recording of this episode. We tried but that > damn monkey was just too fast." > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > -- Linux counter #213090 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Status of RPMForge || RPMRepo
CentOS List wrote: >> Are the websites for RPMForge or RPMRepo off line for anyone else? > > Am too having the same problem looks fixed now ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] network not starting and maybe other services in a virtual machine
I am installing centos 5.3 i386 in a virtual machine. I am using kvm-87 (which I use for other images just fine). The box installed fine, it boots up I can login but NONE of the services are starting . When watching the boot up process it goes from the "Welcome to CentOS 5.3 " directly to mounting the partitions and a login prompt. All the services are not being started. What didnt happen at install? or what do I check now. /etc/inittab looks normal. Thanks, Jerry ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Receive, process and send email
cornel panceac wrote: > talkin' about perl, i remember once i used something called milter for > things like this . milters are plugins for sendmail that are used to filter ALL the mail passing through a given sendmail installation. most commonly used for anti-spam and anti-virus plugins. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Driver for Logitech QuickCam E2500 series webcam
On Sat, 2009-09-19 at 12:16 -0700, Akemi Yagi wrote: > On Sat, Sep 19, 2009 at 11:51 AM, Andrew Allen wrote: > > Does anybody know where I can find a driver for a Logitech E2500 webcam. > > I'm running CentOS 5 on my desktop and want to add a webcam for skype > > use. If I can yum install a driver from one of the repos that would be > > great. > > > > Andy > > You may want to check out this CentOS wiki: > > http://wiki.centos.org/AdditionalResources/HardwareList/Webcams Thanks - so do I just yum install dkms.noarch 2.0.22.0-1.el5.rf from rpmforge? > > and also ELRepo's kmod-video4linux driver: > > http://elrepo.org/tiki/kmod-video4linux&highlight=webcam Sorry - I don't understand what the actual package name is for this one and how do I install it? Andy ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] network not starting and maybe other services in a virtual machine
Am Montag, den 21.09.2009, 19:04 +0200 schrieb Jerry Geis: > I am installing centos 5.3 i386 in a virtual machine. I am using kvm-87 > (which I use for other images > just fine). > > The box installed fine, it boots up I can login but NONE of the services > are starting . > > When watching the boot up process it goes from the "Welcome to CentOS > 5.3 " directly to > mounting the partitions and a login prompt. All the services are not > being started. > What didnt happen at install? or what do I check now. > > /etc/inittab looks normal. > > Thanks, > > Jerry Maybe you look at VNC and console is set to serial, or vice versa. financial.com AG Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | Germany Frankfurt branch office/Niederlassung Frankfurt: Messeturm | Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany Management board/Vorstand: Dr. Steffen Boehnert (CEO/Vorsitzender) | Dr. Alexis Eisenhofer | Dr. Yann Samson | Matthias Wiederwach Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender) Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID number/St.Nr.: DE205 370 553 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Driver for Logitech QuickCam E2500 series webcam
On Mon, Sep 21, 2009 at 06:12:43PM +0100, Andrew Allen wrote: > On Sat, 2009-09-19 at 12:16 -0700, Akemi Yagi wrote: > > On Sat, Sep 19, 2009 at 11:51 AM, Andrew Allen > > wrote: > > > Does anybody know where I can find a driver for a Logitech E2500 webcam. > > > I'm running CentOS 5 on my desktop and want to add a webcam for skype > > > use. If I can yum install a driver from one of the repos that would be > > > great. > > > > > > Andy > > > > You may want to check out this CentOS wiki: > > > > http://wiki.centos.org/AdditionalResources/HardwareList/Webcams > > Thanks - so do I just yum install dkms.noarch > 2.0.22.0-1.el5.rf from rpmforge? No, 'yum install dkms-gspca'. That will pick up dkms as well if required. > > and also ELRepo's kmod-video4linux driver: > > > > http://elrepo.org/tiki/kmod-video4linux&highlight=webcam > > Sorry - I don't understand what the actual package name is for this one > and how do I install it? rpm -Uvh http://elrepo.org/elrepo-release-0.1-1.el5.elrepo.noarch.rpm yum install kmod-video4linux You don't want both though - try one, and if that doesn't work uninstall it and try the other. Cheers, Gavin ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Receive, process and send email
John R Pierce wrote: > cornel panceac wrote: >> talkin' about perl, i remember once i used something called milter for >> things like this . > > > milters are plugins for sendmail that are used to filter ALL the mail > passing through a given sendmail installation. most commonly used for > anti-spam and anti-virus plugins. You actually could do it with a milter - especially a comprehensive one like MimeDefang that knows how to deal with attachments. But if they are sent to a single known address it probably makes more sense to pipe to a program or use procmail during delivery. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] network not starting and maybe other services in a virtual machine
Its like the /etc/rc script isnt running. Who or what starts that up? If I run it manually "sh rc" then everything starts up. Where is that? jerry ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Question about iostat output
Hello, We are planning to moving most of our servers to ESX but before buying our SAN, we want to do some I/O stats to see if iSCSI is enough or if we have to go with FC. So I found a plugin for Nagios that can log I/O stats with iostat. So far it's fine with single disk/one partition servers, but on our Oracle Database 10g server, we have two drives in RAID 1 (/dev/sda) and 4 other drives in RAID 10 (/dev/sdb). When I query iostat, I get : [r...@golgoth ~]# iostat Linux 2.6.9-55.ELsmp (golgoth.acaiq-ctb.lan)09/21/2009 avg-cpu: %user %nice%sys %iowait %idle 1.830.003.040.79 94.34 Device:tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn sda 8.4412.2532.40 489731534 1295151278 sda1 0.00 0.00 0.00 21360 7478 sda2 6.6080.9044.41 3234128950 1775185432 sda3 0.05 0.20 0.2378522129358056 sda4 0.00 0.00 0.00 2 0 sda5 41.1638.5995.20 1542695170 3805566528 sdb 2.8472.6328.91 2903208392 1155519494 sdb1 3.6777.1423.90 3083762026 955474128 sdb2 1.62 102.92 5.00 4114412086 200045262 So why sda have a lower TPS and bytes read/write than one of it's partitions (sda5, which is the root partition)? I guess I would have to collect the stats for each partitions to get what the total? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Question about iostat output
Pascal Robert wrote: > Hello, > > We are planning to moving most of our servers to ESX but before buying > our SAN, we want to do some I/O stats to see if iSCSI is enough or if > we have to go with FC. So I found a plugin for Nagios that can log I/O > stats with iostat. So far it's fine with single disk/one partition > servers, but on our Oracle Database 10g server, we have two drives in > RAID 1 (/dev/sda) and 4 other drives in RAID 10 (/dev/sdb). When I > query iostat, I get : I much prefer iostat -x, provides much more information, iostat by itself to me is pretty useless. I don't even trust i/o stat on my bigger systems I query their performance from the array directly where I can get much better performance information where it really counts. nate ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] network not starting and maybe other services in a virtual machine
Jerry Geis wrote: > Its like the /etc/rc script isnt running. Who or what starts that up? > If I run it manually "sh rc" then everything starts up. > > Where is that? > > jerry > actually - after comparing the inittab file with a good one on my server it was corrupt. Not sure why. afterwards I'll reinstall from scratch and see if its messed up again. For now its running as normal. Sorry do have bothered everyone. I thought something was seriously wrong. Jerry ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] NetworkManager invalid numeric argument
Got the following error running the latest yum update, any thoughts? useradd: invalid numeric argument 'avahi-autoipd' error: %pre(NetworkManager-0.7.0-4.el5_3.i386) scriptlet failed, exit status 3 error: install: %pre scriptlet failed (2), skipping NetworkManager-0.7.0-4.el5_3 Brian ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] NetworkManager invalid numeric argument
Hi, On Mon, Sep 21, 2009 at 14:38, Brian Becker wrote: > Got the following error running the latest yum update, any thoughts? > > useradd: invalid numeric argument 'avahi-autoipd' > error: %pre(NetworkManager-0.7.0-4.el5_3.i386) scriptlet failed, exit status 3 > error: install: %pre scriptlet failed (2), skipping > NetworkManager-0.7.0-4.el5_3 You can see the %pre script that NetworkManager-0.7.0-4.el5_3.i386 will install with the following command (assuming you have the rpm file, look for it under /var/cache/yum): $ rpm -qp --script /path/to/.../NetworkManager-0.7.0-4.el5_3.i386.rpm It will show you it is trying to execute this script: preinstall scriptlet (using /bin/sh): # avahi-autoipd stuff /usr/sbin/groupadd -f -r avahi-autoipd /usr/bin/id avahi-autoipd >/dev/null 2>&1 || \ /usr/sbin/useradd -r -g avahi-autoipd -c 'avahi-autoipd' -s /sbin/nologin -d /var/lib/avahi-autoipd avahi-autoipd >From the error message, it seems to be complaining about the "-g avahi-autoipd", which would give you an error message if the "avahi-autoipd" group does not exist. However, that is strange, considering the previous command "groupadd -f -r avahi-autoipd" is trying to create that group, and the "-f" should make it fail (and abort the script) if it cannot create the group... Does the group exist on your system? What does "grep avahi-autoipd /etc/group" return? What does "getent group avahi-autoipd" return? What happens if you execute "/usr/sbin/groupadd -f -r avahi-autoipd" as root on the machine? Does the RPM install successfully after running that command? HTH, Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] NetworkManager invalid numeric argument
On Mon, Sep 21, 2009 at 3:17 PM, Filipe Brandenburger wrote: >$ rpm -qp --script /path/to/.../NetworkManager-0.7.0-4.el5_3.i386.rpm I think that it is --scripts (note the s) This showed: # avahi-autoipd stuff /usr/sbin/groupadd -f -r avahi-autoipd /usr/bin/id avahi-autoipd >/dev/null 2>&1 || \ /usr/sbin/useradd -r -g avahi-autoipd -c 'avahi-autoipd' -s /sbin/nologin -d /var/lib/avahi-autoipd avahi-autoipd postinstall scriptlet (using /bin/sh): if [ "$1" == "1" ]; then /sbin/chkconfig --add NetworkManager fi preuninstall scriptlet (using /bin/sh): if [ $1 -eq 0 ]; then /sbin/service NetworkManager stop >/dev/null 2>&1 killall -TERM nm-system-settings >/dev/null 2>&1 /sbin/chkconfig --del NetworkManager fi > > Does the group exist on your system? No > What does "grep avahi-autoipd /etc/group" return? Nothing > What does "getent group avahi-autoipd" return? Nothing > What happens if you execute "/usr/sbin/groupadd -f -r avahi-autoipd" > as root on the machine? It adds the group > Does the RPM install successfully after running that command? Yes it does > HTH, > Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Driver for Logitech QuickCam E2500 series webcam
Gavin Carr wrote: > On Mon, Sep 21, 2009 at 06:12:43PM +0100, Andrew Allen wrote: >> On Sat, 2009-09-19 at 12:16 -0700, Akemi Yagi wrote: >>> On Sat, Sep 19, 2009 at 11:51 AM, Andrew Allen >>> wrote: Does anybody know where I can find a driver for a Logitech E2500 webcam. I'm running CentOS 5 on my desktop and want to add a webcam for skype use. If I can yum install a driver from one of the repos that would be great. Andy >>> You may want to check out this CentOS wiki: >>> >>> http://wiki.centos.org/AdditionalResources/HardwareList/Webcams >> Thanks - so do I just yum install dkms.noarch >> 2.0.22.0-1.el5.rf from rpmforge? > > No, 'yum install dkms-gspca'. That will pick up dkms as well if required. > > >>> and also ELRepo's kmod-video4linux driver: >>> >>> http://elrepo.org/tiki/kmod-video4linux&highlight=webcam >> Sorry - I don't understand what the actual package name is for this one >> and how do I install it? > > rpm -Uvh http://elrepo.org/elrepo-release-0.1-1.el5.elrepo.noarch.rpm > yum install kmod-video4linux > > > You don't want both though - try one, and if that doesn't work uninstall > it and try the other. > > Cheers, > Gavin > I would go with the elrepo driver (but I'm biased) as it's more recent whereas the older gspca driver is now merged in the V4L/DVB tree. Gavin gave details above on how to install :) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Clarify TTY and virtual consoles
Hi, I need some help to clarify TTY and virtual consoles. Thanks a lot. 1. I learned that to switch from one TTY to another, one must be at the physical machine. Does the same apply to virtual consoles? 2. My /etc/inittab includes the following. Does that mean there's only one instance of TTY on my CentOS? ... # Run gettys in standard runlevels co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav #1:2345:respawn:/sbin/mingetty tty1 #2:2345:respawn:/sbin/mingetty tty2 #3:2345:respawn:/sbin/mingetty tty3 #4:2345:respawn:/sbin/mingetty tty4 #5:2345:respawn:/sbin/mingetty tty5 #6:2345:respawn:/sbin/mingetty tty6 3. My CentOS was installed with Base option only. (This should be the minimum.) I don't plan to use any GUI stuff, and I always connect to my CentOS server using SSH. In this case, do I still need virtual consoles and TTYs defined in /etc/securetty? 4. What does "console" mean in /etc/securetty? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] rescan usb hd
I have a usb hd that I use for backup. Occasionally it dies. scsi 6:0:0:0: rejecting I/O to dead device scsi 6:0:0:0: rejecting I/O to dead device scsi 6:0:0:0: rejecting I/O to dead device scsi 6:0:0:0: rejecting I/O to dead device Buffer I/O error on device sdc1, logical block 0 lost page write due to I/O error on sdc1 EXT2-fs error (device sdc1): read_inode_bitmap: Cannot read inode bitmap - block_group = 129, inode_bitmap = 4227073 scsi 6:0:0:0: rejecting I/O to dead device scsi 6:0:0:0: rejecting I/O to dead device scsi 6:0:0:0: rejecting I/O to dead device Buffer I/O error on device sdc1, logical block 0 lost page write due to I/O error on sdc1 EXT2-fs error (device sdc1): ext2_readdir: bad page in #2 scsi 6:0:0:0: rejecting I/O to dead device scsi 6:0:0:0: rejecting I/O to dead device Buffer I/O error on device sdc1, logical block 0 lost page write due to I/O error on sdc1 EXT2-fs error (device sdc1): ext2_get_inode: unable to read inode block - inode=2, block=1027 scsi 6:0:0:0: rejecting I/O to dead device scsi 6:0:0:0: rejecting I/O to dead device Buffer I/O error on device sdc1, logical block 0 lost page write due to I/O error on sdc1 EXT2-fs error (device sdc1): ext2_readdir: bad page in #2 If i unmount it and try to remount it it says sdc1 does not exist. I am not at the location so physically unplugging then replugging in the drive isn't a convenient option. How can I get the os to rescan the usb device so I can remount? thx bazooka ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] rescan usb hd
On 22/09/2009, at 9:35 AM, Bazooka Joe wrote: > I have a usb hd that I use for backup. Occasionally it dies. > > scsi 6:0:0:0: rejecting I/O to dead device > scsi 6:0:0:0: rejecting I/O to dead device > scsi 6:0:0:0: rejecting I/O to dead device > scsi 6:0:0:0: rejecting I/O to dead device > Buffer I/O error on device sdc1, logical block 0 > lost page write due to I/O error on sdc1 > EXT2-fs error (device sdc1): read_inode_bitmap: Cannot read inode > bitmap - block_group = 129, inode_bitmap = 4227073 > scsi 6:0:0:0: rejecting I/O to dead device > scsi 6:0:0:0: rejecting I/O to dead device > scsi 6:0:0:0: rejecting I/O to dead device > Buffer I/O error on device sdc1, logical block 0 > lost page write due to I/O error on sdc1 > EXT2-fs error (device sdc1): ext2_readdir: bad page in #2 > scsi 6:0:0:0: rejecting I/O to dead device > scsi 6:0:0:0: rejecting I/O to dead device > Buffer I/O error on device sdc1, logical block 0 > lost page write due to I/O error on sdc1 > EXT2-fs error (device sdc1): ext2_get_inode: unable to read inode > block - inode=2, block=1027 > scsi 6:0:0:0: rejecting I/O to dead device > scsi 6:0:0:0: rejecting I/O to dead device > Buffer I/O error on device sdc1, logical block 0 > lost page write due to I/O error on sdc1 > EXT2-fs error (device sdc1): ext2_readdir: bad page in #2 > > If i unmount it and try to remount it it says sdc1 does not exist. > > I am not at the location so physically unplugging then replugging in > the drive isn't a convenient option. > > How can I get the os to rescan the usb device so I can remount? The sg_reset command might work: http://linux.die.net/man/8/sg_reset Oliver > > thx > bazooka > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Xnest unable to connect with firewall enabled
Hi Nate, Thnx for the reply, but I want to connect through Xnest itself... Any clues ? Sid On Mon, Sep 21, 2009 at 8:21 PM, nate wrote: > Sid Kapoor wrote: > > > Is there an issue regarding firewall settings in CentOS 5.3 ? I want to > > connect to the remote X-server without disabling the firewall settings. > How > > is possible ? > > use X11 forwarding over SSH, more secure, and usually quite a > bit faster if you enable compression(-C). > > nate > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > -- Siddharth Kapoor Mobile - 169466 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Xnest unable to connect with firewall enabled (possible bug with 5.3)
Hi, My requirement is to use Xnest only. It was working seamlessly with 5.2 but not with 5.3 I am using this command to connect to the remote X-server. Xnest :1 -geometry 800x600 -query ** Can anyone confirm the same behavior? Or shall I file the bug in bugzilla? Sid On Tue, Sep 22, 2009 at 10:06 AM, Sid Kapoor wrote: > Hi Nate, > > Thnx for the reply, but I want to connect through Xnest itself... Any clues > ? > > Sid > > > On Mon, Sep 21, 2009 at 8:21 PM, nate wrote: > >> Sid Kapoor wrote: >> >> > Is there an issue regarding firewall settings in CentOS 5.3 ? I want to >> > connect to the remote X-server without disabling the firewall settings. >> How >> > is possible ? >> >> use X11 forwarding over SSH, more secure, and usually quite a >> bit faster if you enable compression(-C). >> >> nate >> >> ___ >> CentOS mailing list >> CentOS@centos.org >> http://lists.centos.org/mailman/listinfo/centos >> > > > > -- > Siddharth Kapoor > Mobile - 169466 > -- Siddharth Kapoor Mobile - 169466 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Inquiry:Virtualizer software for Windows guest on CentOS host
Dear All Can you please do me favor and let me know if there is an virtualizer software that allows installing Windows XP as guest on CentOS 5 as host ? Please be informed that my server has been installed with CentOS 5 on x86 platform and I need to have Windows XP on it as well . Let me thank you in advance ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Inquiry:Virtualizer software for Windows guest on CentOS host
hadi motamedi wrote: > Dear All > Can you please do me favor and let me know if there is an virtualizer > software that allows installing Windows XP as guest on CentOS 5 as > host ? Please be informed that my server has been installed with > CentOS 5 on x86 platform and I need to have Windows XP on it as well . either VMware Server or VirtualBox will do that ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos