Re: [CentOS] Upgrading CentOS 5.3 to 5.4 errors

2009-10-25 Thread Rohan Gilchrist
Hmm no. Time to read the notes. Thanks for your help! On Sat, 24 Oct 2009, Robert wrote: > > > Rohan Gilchrist wrote: >> Hello, >> >> I thought I'd wait a little while before upgrading to 5.4, but am >> running into the following errors: >> >> -> Finished Dependency Resolution >> lvm2-2.02.46-8.

[CentOS] linux/magic.h

2009-10-25 Thread hce
Hi, I had following errors while I was compiling VLC 1.0.2 on CentOS 5.2: modules/access/file.c:52:28: error: linux/magic.h: No such file or directory ../../../modules/access/file.c: In function ‘IsRemote’: ../../../modules/access/file.c:141: error: ‘AFS_SUPER_MAGIC’ undeclared (first use in this

[CentOS] Testing remote machine status in a script ?

2009-10-25 Thread Niki Kovacs
Hi, I'd like to test the status of a remote machine in a script. Something like: IF remote machine is switched on / connected to the network... ... THEN launch backup. How would you go about that? Cheers, Niki ___ CentOS mailing list CentOS@centos.o

Re: [CentOS] Testing remote machine status in a script ?

2009-10-25 Thread Benjamin Donnachie
2009/10/25 Niki Kovacs : > IF remote machine is switched on / connected to the network... Use ping and test the result; perhaps something similar to this: case `ping -qnc 1 10.0.0.2 2>&1` in *'100% packet loss'*) exit 1 ;; esac See the script at the bottom of http://www.digi

Re: [CentOS] kvm package difference - v36 via yum, v83 via DVD

2009-10-25 Thread RedShift
Brian Schueler wrote: > Hi! > > As far as I can see there is no kvm in the base repository but > the older version 36 in CentOS-Extras. Version 83 that belongs > to 5.4 is only found on the install DVD and CD-Set. > So it's different when installing kvm later with yum which results > in kvm-36 tha

[CentOS] Curious behaviour of openvpn

2009-10-25 Thread Timothy Murphy
I noticed that when I went over to CentOS-5.4 on my server (and re-booted), my openvpn connections failed for a couple of hours, and then came back. Has anyone noticed this? What puzzled me was that the tun0 interface was present on all machines (according to ifconfig) but the connections seemed

Re: [CentOS] linux/magic.h

2009-10-25 Thread Ilya Ponetayev
On Sun, 25 Oct 2009 21:58:03 +1100 hce wrote: > Hi, > > I had following errors while I was compiling VLC 1.0.2 on CentOS 5.2: > > modules/access/file.c:52:28: error: linux/magic.h: No such file or directory > .../../../modules/access/file.c: In function ‘IsRemote’: > .../../../modules/access/fi

Re: [CentOS] linux/magic.h

2009-10-25 Thread Jim Perrin
On Sun, Oct 25, 2009 at 6:58 AM, hce wrote: > I had following errors while I was compiling VLC 1.0.2 on CentOS 5.2: Why not use a repository like rpmforge which provides vlc in a nice shiny prebuilt rpm? Also, are you really still on 5.2? If so, you should very much consider updating via yum up

[CentOS] CentOS 5.4 .x86_64 and perl.i386

2009-10-25 Thread Gregory P. Ennis
To All, Thanks to the CentOS guys for 5.4; sure appreciate your work. I have one question. I had to remove perl-5.8.8-18.el5_3.1.i386 on two x86_64 machines in order to get perl.x86_64 4:5.8.8-27.el5 to update. Does this represent a change from 5.3 to 5.4 and should I be concerned about the los

Re: [CentOS] Newsletter feedback

2009-10-25 Thread Mathieu Baudier
>> We have now published the sixth version of the Newsletter and I think >> it is time to ask YOU ( the reader ) what we can improve. The current >> trend is away from really technical details more to a light read and >> entertaining stuff. Is this a good way to go. Or should we focus more >> on th

Re: [CentOS] Newsletter feedback

2009-10-25 Thread Gregory P. Ennis
Frank Thommen wrote: > Hi, > > >> We have now published the sixth version of the Newsletter [...] >> > > What newsletter are you referring to? I cannot find any newsletter > offer on centos.org. > > frank > Its in the wiki http://wiki.centos.org/ --

Re: [CentOS] Testing remote machine status in a script ?

2009-10-25 Thread Les Mikesell
Niki Kovacs wrote: > Hi, > > I'd like to test the status of a remote machine in a script. Something like: > > IF remote machine is switched on / connected to the network... > > ... THEN launch backup. > > How would you go about that? I always recommend backuppc (either from http://backuppc.sou

Re: [CentOS] Running SSH on a different port

2009-10-25 Thread Les Mikesell
Gilbert Sebenste wrote: > On Sat, 24 Oct 2009, Philip Gwyn wrote: > >> On 24-Oct-2009 Oliver Ransom wrote: >>> I don't think there are any ramifications/disadvantages of running the >>> SSH daemon on a non standard port. > > Unless I want to sftp. It always looks for port 22; if I do: > > sftp S

[CentOS] permission script

2009-10-25 Thread Eugeneapolinary Ju
I just wrote a little script, that will echo a message to the user, if it doesn't have enough permission: $ if ! [ "$(env LC_MESSAGES=C ifconfig wlan0 down | grep -i denied)" == "" ]; then echo "no permission"; fi SIOCSIFFLAGS: Permission denied $ sudo su [sudo] password for USER: # if !

Re: [CentOS] Testing remote machine status in a script ?

2009-10-25 Thread Niki Kovacs
Les Mikesell a écrit : > > I always recommend backuppc (either from http://backuppc.sourceforge.net/ or > the > package in epel) because it does all this for you and gets it right. > This looks interesting, and I will take a closer look. I'm right now knee-deep in this : http://www.mikerubel

Re: [CentOS] CentOS 5.4 .x86_64 and perl.i386

2009-10-25 Thread Vnpenguin
Why need perl-5.8.8-18.el5_3.1.i386 on x86_64 box ? On Sun, Oct 25, 2009 at 16:02, Gregory P. Ennis wrote: > To All, > > Thanks to the CentOS guys for 5.4; sure appreciate your work. > > I have one question.  I had to remove perl-5.8.8-18.el5_3.1.i386 on two > x86_64 machines in order to get per

Re: [CentOS] CentOS 5.4 .x86_64 and perl.i386

2009-10-25 Thread Gregory P. Ennis
I asked myself that same question, and when I reviewed my notes on the install I had some packages that would only work with perl.i386 which required me to install it. Unfortunately, I did not document what those packages were, and can not remember which ones required .i386 to test them. 5.0 thr

[CentOS] Running SSH on a different port (with SELinux)

2009-10-25 Thread Jorge Fábregas
Hello everyone, Now after the recent discussion on running SSH on a different port, I decided to start a new thread but with SELinux involved. Assuming that you have SELinux enabled, and that you changed the default port for SSHD, let say for 1234, when I restart SSHD I don't get any AVC denia

Re: [CentOS] Testing remote machine status in a script ?

2009-10-25 Thread Les Mikesell
Niki Kovacs wrote: > Les Mikesell a écrit : >> I always recommend backuppc (either from http://backuppc.sourceforge.net/ or >> the >> package in epel) because it does all this for you and gets it right. >> > > This looks interesting, and I will take a closer look. > > I'm right now knee-deep in

[CentOS] mismatch_cnt after 5.3 -> 5.4 upgrade

2009-10-25 Thread Devin Reade
Saturday I did an upgrade from 5.3 (original install) to 5.4. Saturday night, /etc/cron.weekly reported the following: /etc/cron.weekly/99-raid-check: WARNING: mismatch_cnt is not 0 on /dev/md0 md0 holds /boot and resides, mirrored, on sda1 and sdb1. md1 holds an LVM volume contai

Re: [CentOS] mismatch_cnt after 5.3 -> 5.4 upgrade

2009-10-25 Thread RedShift
Devin Reade wrote: > Saturday I did an upgrade from 5.3 (original install) to 5.4. Saturday > night, /etc/cron.weekly reported the following: > >/etc/cron.weekly/99-raid-check: > >WARNING: mismatch_cnt is not 0 on /dev/md0 > > md0 holds /boot and resides, mirrored, on sda1 and s

Re: [CentOS] mismatch_cnt after 5.3 -> 5.4 upgrade

2009-10-25 Thread Ron Loftin
On Sun, 2009-10-25 at 12:33 -0600, Devin Reade wrote: > Saturday I did an upgrade from 5.3 (original install) to 5.4. Saturday > night, /etc/cron.weekly reported the following: > >/etc/cron.weekly/99-raid-check: > >WARNING: mismatch_cnt is not 0 on /dev/md0 > I had this happen

Re: [CentOS] Running SSH on a different port (with SELinux)

2009-10-25 Thread Ned Slider
Jorge Fábregas wrote: > Hello everyone, > > Now after the recent discussion on running SSH on a different port, I > decided > to start a new thread but with SELinux involved. > > Assuming that you have SELinux enabled, and that you changed the default port > for SSHD, let say for 1234, when I

Re: [CentOS] Running SSH on a different port (with SELinux)

2009-10-25 Thread Jorge Fábregas
On Sunday 25 October 2009 03:06:58 pm Ned Slider wrote: > The SSH daemon runs as an unconfined service in SELinux (at least on > RHEL4 and 5), so SELinux has no effect on SSH. Same as a bash shell runs > unconfined. Thanks Ned! That's it. I missed the following check: # ps -eZ | grep sshd root

[CentOS] Packages in 5.4 older than 5.3 updates, and no 5.4 updates available?

2009-10-25 Thread Stephen Harris
I've been checking the updates tree for 5.4 and notice that they're empty. I checked 4 or 5 different servers and got the same results. This is, in my experience, unusual; there's typically patches for the new release from day one. But it could be that the 5.4 DVD is up to date. So I checked one

Re: [CentOS] Bypass Hung Applications At Boot So System Can Complete The Boot Process

2009-10-25 Thread Mathew S. McCarrell
On Fri, Oct 23, 2009 at 12:12 PM, Kemp, Larry wrote: > I have a CentOS system that is hanging at boot. Sendmail takes forever (and > a few other apps hang as well...mainly network apps). This has proven in the > pas to be a NIC misconfiguration or a network issue. I think that is what it > is on t

Re: [CentOS] Bypass Hung Applications At Boot So System Can Complete The Boot Process

2009-10-25 Thread aurfalien
During boot, you'll see (for a real brief moment), something to the effect "press I for interactive startup...". A few seconds after pressing it, you will be prompted to load services with a y/n. Once in Ubuntu, I entered rescue mode by entering grub startup options at the command prompt,

Re: [CentOS] 5.4 DVD

2009-10-25 Thread Mathew S. McCarrell
On Sat, Oct 24, 2009 at 9:31 AM, mark wrote: > David Suhendrik wrote: > > Still waiting for DVD 5.4 64 bit > > There's a couple of mirrors that have it. I looked through several .edu > site - > I think RIT had one. > >mark > The Clarkson mirror also carries the DVDs. http://mirror.clark

Re: [CentOS] Bypass Hung Applications At Boot So System Can Complete The Boot Process

2009-10-25 Thread Les Mikesell
Kemp, Larry wrote: > I have a CentOS system that is hanging at boot. Sendmail takes forever (and a > few other apps hang as well...mainly network apps). This has proven in the > pas to be a NIC misconfiguration or a network issue. I think that is what it > is on this one too. Is there a way when

Re: [CentOS] Bypass Hung Applications At Boot So System Can Complete The Boot Process

2009-10-25 Thread Rob Townley
On Sun, Oct 25, 2009 at 3:23 PM, wrote: > During boot, you'll see (for a real brief moment), something to the effect > "press I for interactive startup...". > A few seconds after pressing it, you will be prompted to load services with > a y/n. > Once in Ubuntu, I entered rescue mode by entering g

Re: [CentOS] Bypass Hung Applications At Boot So System Can Complete The Boot Process

2009-10-25 Thread aurfalien
> and as it comes back up, hit a key to get the boot prompt, pick the > kernel you > want to boot, hit 'e', then select the kernel line and hit 'e' to > edit and add > 'single' to the end of the line, and 'b' to boot it. Ahh, yes this was it. A handy thing to remember. _

[CentOS] Which /usr/bin/qemu-img to use?

2009-10-25 Thread Camron W. Fox
Alle, We're trying to install kvm on a newly update CentOS5.4 box. Which package should /usr/bin/qemu-img come from, kvm-qemu-img or qemu? When we try to install kvm\* we get the following error: Transaction Check Error: file /usr/bin/qemu-img from install of kvm-qemu-img-83-105.el5.

Re: [CentOS] mismatch_cnt after 5.3 -> 5.4 upgrade

2009-10-25 Thread S.Tindall
On Sun, 2009-10-25 at 14:52 -0400, Ron Loftin wrote: > On Sun, 2009-10-25 at 12:33 -0600, Devin Reade wrote: > > Saturday I did an upgrade from 5.3 (original install) to 5.4. Saturday > > night, /etc/cron.weekly reported the following: > > > >/etc/cron.weekly/99-raid-check: > > > >

Re: [CentOS] Upgrading CentOS 5.3 to 5.4 errors

2009-10-25 Thread ken
On 10/24/2009 05:09 PM Rohan Gilchrist wrote: > Hello, > > I thought I'd wait a little while before upgrading to 5.4, but am > running into the following errors: > > -> Finished Dependency Resolution > lvm2-2.02.46-8.el5.i386 from base has depsolving problems > --> Missing Dependency: device-

Re: [CentOS] Testing remote machine status in a script ?

2009-10-25 Thread Niki Kovacs
Les Mikesell a écrit : > The big win with backuppc is that it will also compress the files and find > matches across multiple machines and hard-link all identical content. Plus > you > get a nice web interface to configure it and browse/restore. > Sound nice. Probably a case of: now I found

Re: [CentOS] Testing remote machine status in a script ?

2009-10-25 Thread Les Mikesell
Niki Kovacs wrote: > Les Mikesell a écrit : > >> The big win with backuppc is that it will also compress the files and find >> matches across multiple machines and hard-link all identical content. Plus >> you >> get a nice web interface to configure it and browse/restore. >> > > Sound nice. P

Re: [CentOS] mismatch_cnt after 5.3 -> 5.4 upgrade

2009-10-25 Thread Devin Reade
RedShift wrote: > What exactly is the mismatch_cnt value? If it's not too much, it is most > likely coming from your swap partition. 128. md0 is /boot only; swap is on md1 which didn't have a problem Devin -- A zygote is a gamete's way of producing more gametes. This may be the purpose of t

Re: [CentOS] mismatch_cnt after 5.3 -> 5.4 upgrade

2009-10-25 Thread Devin Reade
S.Tindall wrote: > mismatch_cnt (/sys/block/md*/md/mismatch_cnt) is the number of > unsynchronized blocks in the raid. Understood. I did the repair/check on sync_action and it got rid of the problem. (Thanks) What I _don't_ understand is why they were unsynchronized to begin with (`cat /proc

Re: [CentOS] Packages in 5.4 older than 5.3 updates, and no 5.4 updates available?

2009-10-25 Thread Ned Slider
Stephen Harris wrote: > I've been checking the updates tree for 5.4 and notice that they're empty. > > Is this merely a case that the 5.4 updates tree hasn't yet been pushed > out and these changes should show up in the near future (when?)... Yes, and the announcement email said 5.4 updates sh

Re: [CentOS] Testing remote machine status in a script ?

2009-10-25 Thread Devin Reade
The ping method or equivalent mechanisms (such as a test ssh into the machine) should answer the original question. However, in the specific context of backups, a few years ago I did for a client an evalution of various backup solutions, including a lot of freeware and commercial products (includ

Re: [CentOS] Which /usr/bin/qemu-img to use?

2009-10-25 Thread Philip Manuel
I ran into this on Friday.I had to remove qemu, disable it from the DAG or other repositories and install kvm-qemu-img, note also that qemu-kvm is in /usr/libexec Hope that helps Camron W. Fox wrote: > Alle, > > We're trying to install kvm on a newly update CentOS5.4 box. Which > package

Re: [CentOS] Which /usr/bin/qemu-img to use?

2009-10-25 Thread Camron W. Fox
Philip Manuel wrote: > I ran into this on Friday.I had to remove qemu, disable it from the DAG > or other repositories and install kvm-qemu-img, note also that qemu-kvm > is in /usr/libexec > > Hope that helps > Given the dependency issue with "yum remove": Removing: qemu

Re: [CentOS] Which /usr/bin/qemu-img to use?

2009-10-25 Thread Philip Manuel
yes I ran into this and decided to clear all of those out and start afresh, ensuring I picked the base packages. Phil. Camron W. Fox wrote: Philip Manuel wrote: I ran into this on Friday.I had to remove qemu, disable it from the DAG or other repositories and install kvm-qemu-img, note also

Re: [CentOS] Switch to measure traffic at IP level?

2009-10-25 Thread Mathew S. McCarrell
On Fri, Oct 23, 2009 at 12:07 PM, Neil Aggarwal wrote: > Matt: > > > depending on what your using for virtualization, you might be able to > pull > all > > of those stats with snmp on the host. > > I am using KVM on CentOS 5.4 > > Let me know if you think it is possible to gather everything > I ne

[CentOS] For building my local repo, how large is 5.4 update?

2009-10-25 Thread Robert Moskowitz
I have run a local repo for Centos updates for some time. I suppose, at this point I could just delete the 5.3 update directory and rsync the 5.4 directory... But how large is the 5.4 update directory? Oh, just for i386, without /debug and is there anything else I should not include? For exam

Re: [CentOS] permission script

2009-10-25 Thread Vinicius Coque
The output message "Permission denied" comes from STDERR not from STDIN. You should redirect stderr to stdin on your command, to make it work. ifconfig wlan0 down 2>&1 | grep -i denied On Sun, Oct 25, 2009 at 2:42 PM, Eugeneapolinary Ju < eugeneapolinar...@yahoo.com> wrote: > I just wrote a li

Re: [CentOS] Switch to measure traffic at IP level?

2009-10-25 Thread aurfalien
Couple of diff ways to go about this. I use Cacti and monitor throughput via SNMP for the dom0. I also enable SNMP on my switch and monitor throughput of individual ports. However if you want granularity like monitoring at the network layer (IP or layer 3), then you can look at the netflow

Re: [CentOS] Switch to measure traffic at IP level?

2009-10-25 Thread Neil Aggarwal
I think I have a solution: In the guests' XML files, I set a target device name so they will always use a known device (Instead of getting an aribtrary vnet* device). Next, using snmp on the host, I can get the interface stats for that device and use cacti to graph it. Thanks to everyone for

Re: [CentOS] CentOS 5.4 .x86_64 and perl.i386

2009-10-25 Thread P Marvin Eberly
On Sun, 2009-10-25 at 10:02 -0500, Gregory P. Ennis wrote: > To All, > > Thanks to the CentOS guys for 5.4; sure appreciate your work. +1 > > I have one question. I had to remove perl-5.8.8-18.el5_3.1.i386 on two > x86_64 machines in order to get perl.x86_64 4:5.8.8-27.el5 to update. I had th

Re: [CentOS] OT: pager pay

2009-10-25 Thread Nifty Cluster Mitch
On Tue, Oct 13, 2009 at 12:02:26PM -0700, Drew wrote: > > Like Max I don't have "pager pay" but I do get paid for call outs. > > My phone is fully paid for (approx $60/m) and call outs are paid at > time and a half (Sunday is double time), minimum one hour. All travel > time is considered call ou

Re: [CentOS] Running SSH on a different port

2009-10-25 Thread Robert Moskowitz
ML wrote: > HI All, > > With my new firewall in place, it has opened my eyes to how much > traffic gets blocked in a single day and also what are the most active > rules. I get *a lot* of requests for port 22. > > How does one switch ssh ports? What is a good port to use? What > ramifications

[CentOS] Seeing messages indicating all new rpms is in the OS tree -- Re: For building my local repo, how large is 5.4 update?

2009-10-25 Thread Robert Moskowitz
So it looks like it is a download of the OS tree, not the UPDATES tree. Great, and how large will that be? Robert Moskowitz wrote: > I have run a local repo for Centos updates for some time. > > I suppose, at this point I could just delete the 5.3 update directory > and rsync the 5.4 directory..

Re: [CentOS] Help! i want to clone my Centos machine to another box..

2009-10-25 Thread Nifty Cluster Mitch
On Thu, Oct 22, 2009 at 01:34:01PM +0200, RoLaNd RoLaNd wrote: >Hello, > >thanks for your prompt reply.. >i was leaving that option as a last resort... >the problem is that this machine is a production machine >so if i rsync, i need to turn off the services in order to copy fil

[CentOS] CentOS DS Transition Issue

2009-10-25 Thread Camron W. Fox
Alle, We are looking to transition from OpenLDAP to CentOS DS. We currently using OpenLDAP V2.3.43-3 with both RHEL 5.4 and Solaris10 clients (auth/netgroup/automount). We restrict user login access to the RHEL and Solaris machines using netgroups. After configuring the CentOS D

Re: [CentOS] For building my local repo, how large is 5.4 update?

2009-10-25 Thread ML
Hi Robert, > I have run a local repo for Centos updates for some time. You actually bring up a good item here. I am starting to learn more and deploy CentOS. I should run a local repo too, save bandwidth, etc. Do you have a tutorial for setting up a local repository? Can one store, say multi

[CentOS] Inquiry:External USB modem and Remote PC Access?

2009-10-25 Thread hadi motamedi
Dear All Please be informed that I checked for the presence of internal modem on my CentOS server , as the followings : #dmesg |grep -i modem #lspci |grep -i modem #lshw |grep -i modem According to the output , it seems that my CentOS client does not contain internal modem . So I decided to add ext

Re: [CentOS] OT: pager pay

2009-10-25 Thread Drew
> For goodness sake keep a log. > "On call" jobs often violate state and federal rules > for exempt and non-exmpt status.   Mileage for the second > trip to the office should be compensated in some cases. I've checked with our Provincial & Federal laws and our "Pager Pay" setup is legal. It should

Re: [CentOS] Inquiry:External USB modem and Remote PC Access?

2009-10-25 Thread John R Pierce
hadi motamedi wrote: > Dear All > Please be informed that I checked for the presence of internal modem > on my CentOS server , as the followings : > #dmesg |grep -i modem > #lspci |grep -i modem > #lshw |grep -i modem > According to the output , it seems that my CentOS client does not > contain i

Re: [CentOS] mismatch_cnt after 5.3 -> 5.4 upgrade

2009-10-25 Thread Mogens Kjaer
On 10/25/2009 07:33 PM, Devin Reade wrote: ... > WARNING: mismatch_cnt is not 0 on /dev/md0 I have two machines with software RAID 1 running CentOS, they both gave this message this weekend. Mogens -- Mogens Kjaer, Carlsberg A/S, Computer Department Gamle Carlsberg Vej 10, DK-2500 Valby,