Re: [CentOS] httpd stopped working under SELinux so I had to turn SELinux off. libxml2.so.2: failed to map segment from shared object: Permission denied

2010-03-25 Thread A. Kirillov
> CentOS 5.4 64-bit with SELinux, happily running for over a year, suddenly > httpd fails to start up, getting an error message like: > > Starting httpd: Syntax error on line X of /etc/httpd/conf.d/php.conf: > Cannot load /etc/httpd/modules/libphp5.so into server: libxml2.so.2: > failed to map seg

Re: [CentOS] find /etc -size -1G return only empty files

2010-03-25 Thread Nicolas Thierry-Mieg
Ala1n Sp1neu8 wrote: > Hello > find /etc -size -1G > > should return all files less than 1Giga byte in /etc, but return a > list of empty file (size=0) > > find /etc -size -2G > > work fine and return all the files > > This works the same on my fedora11 and my centos 5 ! > > Did I miss something o

Re: [CentOS] find /etc -size -1G return only empty files

2010-03-25 Thread Nicolas Thierry-Mieg
Nicolas Thierry-Mieg wrote: > Ala1n Sp1neu8 wrote: >> Hello >> find /etc -size -1G >> >> should return all files less than 1Giga byte in /etc, but return a >> list of empty file (size=0) >> >> find /etc -size -2G >> >> work fine and return all the files >> >> This works the same on my fedora11 and

Re: [CentOS] find /etc -size -1G return only empty files

2010-03-25 Thread Mike McCarty
Nicolas Thierry-Mieg wrote: > Nicolas Thierry-Mieg wrote: >> Ala1n Sp1neu8 wrote: >>> Hello >>> find /etc -size -1G >>> >>> should return all files less than 1Giga byte in /etc, but return a >>> list of empty file (size=0) >>> >>> find /etc -size -2G >>> >>> work fine and return all the files >>> >

Re: [CentOS] find /etc -size -1G return only empty files

2010-03-25 Thread Nicolas Thierry-Mieg
Mike McCarty wrote: > Nicolas Thierry-Mieg wrote: >> Nicolas Thierry-Mieg wrote: >>> Ala1n Sp1neu8 wrote: Hello find /etc -size -1G should return all files less than 1Giga byte in /etc, but return a list of empty file (size=0) find /etc -size -2G work fi

[CentOS] Kickstart 8TB partition limit?

2010-03-25 Thread lhecking
I found a kickstart installation with part pv.10 --size=1 --grow volgroup vol0 pv.10 creates a partition with a size of 8TB even though more than 9TB is available. I need to go in manually with gdisk to destroy the partition and recreate it with all available space. No filesystem i

Re: [CentOS] Kickstart 8TB partition limit?

2010-03-25 Thread nate
lheck...@users.sourceforge.net wrote: > No filesystem is specified be cause want to use xfs, which kickstart does > not > support out of the box. This is under 5.2, but the 5.3/5.4 relnotes do not > indicate that this problem has been fixed. Or has it? partition manually using %pre or %post ?

Re: [CentOS] mysql-python

2010-03-25 Thread JohnS
On Thu, 2010-03-25 at 14:14 +0800, Christopher Chan wrote: > Is it me or does the MySQLdb module in Centos not support python's DBAPI > 2.0 --- Well you give no clue to the code your using. Post what type your using, It uses cursors so it it is compliant as far as I see. I get you installed i

[CentOS] /mnt/sysimage/dev folder in rescue mode

2010-03-25 Thread Mogens Kjaer
If I boot C5 from DVD in rescue mode, chroot to /mnt/sysimage, and try to do a grub-install /dev/sda it will fail because the /dev folder is empty (in the chroot environment). Until now I've then created the missing nodes manually, but is there a smarter way of doing this? Some devfs that needs to

Re: [CentOS] /mnt/sysimage/dev folder in rescue mode

2010-03-25 Thread Nicolas Thierry-Mieg
Mogens Kjaer wrote: > If I boot C5 from DVD in rescue mode, > chroot to /mnt/sysimage, and try to do a > grub-install /dev/sda it will fail because > the /dev folder is empty (in the chroot environment). > > Until now I've then created the missing nodes manually, > but is there a smarter way of doi

Re: [CentOS] /mnt/sysimage/dev folder in rescue mode

2010-03-25 Thread Dan Burkland
> -Original Message- > From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On > Behalf Of Nicolas Thierry-Mieg > Sent: Thursday, March 25, 2010 8:55 AM > To: CentOS mailing list > Subject: Re: [CentOS] /mnt/sysimage/dev folder in rescue mode > > Mogens Kjaer wrote: > > If I

Re: [CentOS] Kickstart 8TB partition limit?

2010-03-25 Thread Jeff Hefner
hopefully this helps I have quite a few systems in the same boat. really large volume formated as xfs for storing backup data. Here is a simplified snippet from my kickstart files. part pv.2 --noformat --ondisk=sdb --size=1 --grow volgroup lg_largevol --pesize=32768 pv.2 %packages kmod-xfs xfsp

Re: [CentOS] /mnt/sysimage/dev folder in rescue mode

2010-03-25 Thread Mogens Kjaer
On 03/25/2010 02:55 PM, Nicolas Thierry-Mieg wrote: ... > won't this work? > grub-install --root-directory=/mnt/sysimage /sbin/grub: Not found Mogens -- Mogens Kjaer, Carlsberg A/S, Computer Department Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark Phone: +45 33 27 53 25, Mobile: +45 22 12 53 2

Re: [CentOS] /mnt/sysimage/dev folder in rescue mode

2010-03-25 Thread Mogens Kjaer
On 03/25/2010 03:23 PM, Dan Burkland wrote: ... > a) mount /dev/sda1 /mnt/sysimage/ (replace /dev/sda1 with your root partition > or logvol) > b) mount -o bind /dev /mnt/sysimage/dev > c) mount -o bind /sys /mnt/sysimage/sys > d) mount -o bind /proc /mnt/sysimage/proc > e) chroot /mnt/sysimage Th

[CentOS] generate certiciate help

2010-03-25 Thread adrian kok
Hi I try to use "cd /etc/pki/tls/certs; make sendmail.pem" or cd /usr/share/ssl/certs; make sendmail.pem to make certificate but I don't have this path /usr/share/ssl/ I check I have openssl rpm installed How can I do it? Thank you Send instant messages to your online friends http://uk.m

Re: [CentOS] generate certiciate help

2010-03-25 Thread Miguel Medalha
Maybe this will help: http://www.ibm.com/developerworks/lotus/library/ls-Certification_Authority/index.html ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] generate certiciate help

2010-03-25 Thread m . roth
> Maybe this will help: > > http://www.ibm.com/developerworks/lotus/library/ls-Certification_Authority/index.html Or maybe mark ___ CentOS mailing list CentOS@centos.org http://lists

Re: [CentOS] generate certiciate help

2010-03-25 Thread John Doe
From: adrian kok > I try to use "cd /etc/pki/tls/certs; make sendmail.pem" or cd > /usr/share/ssl/certs; make sendmail.pem > to make certificate but I > don't have this path /usr/share/ssl/ > I check I have openssl rpm installed Strange, I do have /etc/pki/tls/certs # rpm -qf /etc/pki/tls/cert

Re: [CentOS] generate certiciate help

2010-03-25 Thread Dan Burkland
> -Original Message- > From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On > Behalf Of Miguel Medalha > Sent: Thursday, March 25, 2010 10:57 AM > To: CentOS mailing list > Subject: Re: [CentOS] generate certiciate help > > Maybe this will help: > > http://www.ibm.com/dev

[CentOS] centralized user authentication

2010-03-25 Thread Steve Glasser
> Apart from ipa are there any other good tools out there for centralised user > auth? I am currently testing LDAP (openldap) combined with nss_ldap, configured with authconfig. I would start by testing IPA. Redhat is building out a set of enterprise management tools which include cobbler and sp

Re: [CentOS] centos Installation on Multiple machines

2010-03-25 Thread kalinix
On Wed, 2010-03-24 at 09:26 -0400, Tom Diehl wrote: > On Wed, 24 Mar 2010, premr...@digilink.in wrote: > > > Hi, > > > > I want to install customized centos on multiple systems. Can PXE boot do > > that ? > > Apart from this is there any other way of doing image copy of centos OS > > and installi

Re: [CentOS] centralized user authentication

2010-03-25 Thread Les Mikesell
On 3/25/2010 12:04 PM, Steve Glasser wrote: >> Apart from ipa are there any other good tools out there for centralised user >> auth? > > I am currently testing LDAP (openldap) combined with nss_ldap, > configured with authconfig. > > I would start by testing IPA. Redhat is building out a set of >

[CentOS] RAID 5 setup?

2010-03-25 Thread Slack-Moehrle
Can anyone provide a tutorial or advice on how to configure a software RAID 5 from the command-line (since I did not install Gnome)? I have 8 x 1.5tb Drives. -Jason ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/cen

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread Les Mikesell
On 3/25/2010 2:24 PM, Slack-Moehrle wrote: > > Can anyone provide a tutorial or advice on how to configure a software RAID 5 > from the command-line (since I did not install Gnome)? > > I have 8 x 1.5tb Drives. Make matching partitions on each disk with fdisk, setting the type to FD (raid autod

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread Robert Heller
At Thu, 25 Mar 2010 12:24:57 -0700 (PDT) CentOS mailing list wrote: > > > Can anyone provide a tutorial or advice on how to configure a software RAID 5 > from the command-line (since I did not install Gnome)? > > I have 8 x 1.5tb Drives. mdadm --create /dev/md0 --level=5 --raid-devices=7 /d

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread James Bensley
I used this guide for my first RAID on an Ubuntu box, its very straight forward. Its all command line based so everything here I have used in CentOS (apart from the writer sets the RAID flag on his drives via the GParted GUI but this can be done via terminal); http://bfish.xaedalus.net/2006/11/sof

[CentOS] file/data server running CentOS

2010-03-25 Thread Boris Epstein
Hi all, I am trying to build a file server providing about 10 TB of effective RAID5/6 storage. Any recommendations as far as hardware, configuration, etc. - preferably based on recent experience - would be most welcome. Thanks in advance. Boris. ___ Ce

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread Boris Epstein
On Thu, Mar 25, 2010 at 3:36 PM, Robert Heller wrote: > At Thu, 25 Mar 2010 12:24:57 -0700 (PDT) CentOS mailing list > wrote: > >> >> >> Can anyone provide a tutorial or advice on how to configure a software RAID >> 5 from the command-line (since I did not install Gnome)? >> >> I have 8 x 1.5tb

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread Hakan Koseoglu
On Thu, Mar 25, 2010 at 9:07 PM, Boris Epstein wrote: >> Note: RAID5 is not really recomended for such large disks.  You run the >> risk of a complete data loss if one disk fails and the another disk >> fails during the rebuild. > Why is the size a factor here? Why would this be OK with smaller >

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread Rainer Duffner
Am 25.03.2010 um 22:07 schrieb Boris Epstein: Robert, Why is the size a factor here? Why would this be OK with smaller disks? How would you partition this instead? Thanks. Boris. This has been discussed before. The root of the problem lies in the fact that when a disk fails, you ha

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread Boris Epstein
On Thu, Mar 25, 2010 at 5:27 PM, Hakan Koseoglu wrote: > On Thu, Mar 25, 2010 at 9:07 PM, Boris Epstein wrote: >>> Note: RAID5 is not really recomended for such large disks.  You run the >>> risk of a complete data loss if one disk fails and the another disk >>> fails during the rebuild. >> Why i

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread Slack-Moehrle
>As the disks get bigger, rebuild time also increases and the >performance of the disks don't increase linearly with their storage. >This means that when you are rebuilding a disk, the chances of one of >your other disks failing becomes significantly large. Most suggest >RAID6 these days as a mini

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread Les Mikesell
On 3/25/2010 4:43 PM, Boris Epstein wrote: > On Thu, Mar 25, 2010 at 5:27 PM, Hakan Koseoglu wrote: >> On Thu, Mar 25, 2010 at 9:07 PM, Boris Epstein wrote: Note: RAID5 is not really recomended for such large disks. You run the risk of a complete data loss if one disk fails and the ano

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread Robert Heller
At Thu, 25 Mar 2010 22:27:56 +0100 CentOS mailing list wrote: > > > > > Am 25.03.2010 um 22:07 schrieb Boris Epstein: > >> > >> > > > > Robert, > > > > Why is the size a factor here? Why would this be OK with smaller > > disks? How would you partition this instead? > > > > Thanks. > > > > Bo

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread Robert Heller
At Thu, 25 Mar 2010 17:07:47 -0400 CentOS mailing list wrote: > > On Thu, Mar 25, 2010 at 3:36 PM, Robert Heller wrote: > > At Thu, 25 Mar 2010 12:24:57 -0700 (PDT) CentOS mailing list > > wrote: > > > >> > >> > >> Can anyone provide a tutorial or advice on how to configure a software > >>

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread John R Pierce
Boris Epstein wrote: > You surely do have a point there. However, it is still not all that > likely that a disk will fail during the rebuild time in question (what > are we talking? some hours max?) > 8 disks is about the upper limit I'd suggest for a single raid group on any sort of system.

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread John R Pierce
Slack-Moehrle wrote: > RAID 10 = 4 x 1.5 = 6tb - 1.5tb for parity data = 4.5tb per stripe then > mirror it. > no -1.5 on that. you don't have parity when you are mirroring. 8x1.5TB raid10 is simply 4*1.5 = 6TB I'd still want hot spare. ___

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread Mike McCarty
Robert Heller wrote: > At Thu, 25 Mar 2010 22:27:56 +0100 CentOS mailing list > wrote: [...] > >> The root of the problem lies in the fact that when a disk fails, you >> have to read-out the data from the other disks to re-build the RAID. >> Reads from disks have a certain probability to cont

[CentOS] how to automount usb drive

2010-03-25 Thread Bazooka Joe
I have a server with no desktop - just cli that i need to have a user plug in a usb hd and would like it to automount to a consistent directory so I can schedule a backup. The user can rotate the usb drives and it all just works. Any ideas how automate so that say /media/backup mounts to any usb

Re: [CentOS] file/data server running CentOS

2010-03-25 Thread Joseph L. Casale
>Hi all, > >I am trying to build a file server providing about 10 TB of effective >RAID5/6 storage. Any recommendations as far as hardware, >configuration, etc. - preferably based on recent experience - would be >most welcome. XFS for sure, what type of controller and discs? If you go r5 over huge

Re: [CentOS] centralised user authentication

2010-03-25 Thread Jobst Schmalenbach
http://en.wikipedia.org/wiki/Network_Information_Service it used to be called "yp" or "yellow pages". it works with samba too. jobst On Wed, Mar 24, 2010 at 03:17:04PM +, Tom Brown (t...@ng23.net) wrote: > Apart from ipa are there any other good tools out there for centralised user > auth?

Re: [CentOS] centos Installation on Multiple machines

2010-03-25 Thread Karanbir Singh
On 03/24/2010 02:04 PM, Bazy wrote: > Take a look at > http://www.howtoforge.com/setting-up-a-pxe-install-server-for-multiple-linux-distributions-on-debian-lenny. > You can perform the same DHCP/tftp configurations on a CentOS machine > and deploy multiple machines over the network. why waste yo

Re: [CentOS] find /etc -size -1G return only empty files

2010-03-25 Thread Jobst Schmalenbach
On Thu, Mar 25, 2010 at 07:45:14AM +0100, Ala1n Sp1neu8 (aspin...@gmail.com) wrote: > Hello > find /etc -size -1G Very interesting way of finding all files with a file size of 0 ;-) Jobst > > should return all files less than 1Giga byte in /etc, but return a > list of empty file (size=0) > >

Re: [CentOS] how to automount usb drive

2010-03-25 Thread Jobst Schmalenbach
adjust the following to your needs /dev/sdd1 /mnt/usb ext3 dev,auto,nouser,rw,sync 0 0 Just be careful on boot up, I had trouble on boot when the drive was already connected ... it wasnt recognized. I had to put up a boot delay onto the kernel command line to make sure the drivers where al

Re: [CentOS] find /etc -size -1G return only empty files

2010-03-25 Thread Les Mikesell
On 3/25/2010 6:07 PM, Jobst Schmalenbach wrote: > On Thu, Mar 25, 2010 at 07:45:14AM +0100, Ala1n Sp1neu8 (aspin...@gmail.com) > wrote: >> Hello >> find /etc -size -1G > > Very interesting way of finding all files with a file size of 0 ;-) What's interesting is that the program doesn't do the uni

Re: [CentOS] centralized user authentication

2010-03-25 Thread Scott Silva
on 3-25-2010 10:22 AM Les Mikesell spake the following: > On 3/25/2010 12:04 PM, Steve Glasser wrote: >>> Apart from ipa are there any other good tools out there for centralised user >>> auth? >> I am currently testing LDAP (openldap) combined with nss_ldap, >> configured with authconfig. >> >> I w

Re: [CentOS] centos Installation on Multiple machines

2010-03-25 Thread Jobst Schmalenbach
You do not "really" need any utils to do this! Just install it on one machine onto ONE disk, do the "yum update" plus all the packages you need for the clones. Then use "rsync -avH source target" to make yourself the other copies (using THAT disk) preferable AFTER you booted into RESCUE mode on

Re: [CentOS] find /etc -size -1G return only empty files

2010-03-25 Thread Jobst Schmalenbach
Its not a bug, its a feature ... and this is not a joke. You [de|re]fine the search with the suffices you supply making it possible to hand "find" a granularity mechanism that indeed makes find a very powerful utilitiy. Jobst s On Thu, Mar 25, 2010 at 06:16:40PM -0500, Les Mikesell (lesmikes..

Re: [CentOS] how to automount usb drive

2010-03-25 Thread Jobst Schmalenbach
As for the mouting (and unmouting) you're backup script needs to make sure the drive is UN-mounted at the end, e.g. # flush the buffers sync # unmount umount /mnt/usb On Thu, Mar 25, 2010 at 03:52:29PM -0700, Bazooka Joe (fastf...@gmail.com) wrote: > I have a server with no desktop - just cl

Re: [CentOS] mysql-python

2010-03-25 Thread Christopher Chan
On Thursday, March 25, 2010 09:11 PM, JohnS wrote: > > On Thu, 2010-03-25 at 14:14 +0800, Christopher Chan wrote: >> Is it me or does the MySQLdb module in Centos not support python's DBAPI >> 2.0 > > --- > Well you give no clue to the code your using. Post what type your > using, > > It uses curs

[CentOS] awk global replacement only after keyword

2010-03-25 Thread Joseph L. Casale
Trying to avoid a perl script which wouldn't be hard, but I am looking for an awk one liner that does a replacement, but only after it sees a key word on some line. Anyone know of that's easy to do? Thanks! jlc ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] mysql-python

2010-03-25 Thread Ray Van Dolson
On Fri, Mar 26, 2010 at 08:23:26AM +0800, Christopher Chan wrote: > On Thursday, March 25, 2010 09:11 PM, JohnS wrote: > > > > On Thu, 2010-03-25 at 14:14 +0800, Christopher Chan wrote: > >> Is it me or does the MySQLdb module in Centos not support python's DBAPI > >> 2.0 > > > > --- > > Well you g

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread Christopher Chan
On Friday, March 26, 2010 05:52 AM, Slack-Moehrle wrote: > >> As the disks get bigger, rebuild time also increases and the >> performance of the disks don't increase linearly with their storage. >> This means that when you are rebuilding a disk, the chances of one of >> your other disks failing bec

Re: [CentOS] awk global replacement only after keyword

2010-03-25 Thread Craig White
On Fri, 2010-03-26 at 00:36 +, Joseph L. Casale wrote: > Trying to avoid a perl script which wouldn't be hard, but I am looking > for an awk one liner that does a replacement, but only after it sees a > key word on some line. > > Anyone know of that's easy to do? > > Thanks! sounds more

Re: [CentOS] mysql-python

2010-03-25 Thread Christopher Chan
On Friday, March 26, 2010 08:52 AM, Ray Van Dolson wrote: > On Fri, Mar 26, 2010 at 08:23:26AM +0800, Christopher Chan wrote: >> On Thursday, March 25, 2010 09:11 PM, JohnS wrote: >>> >>> On Thu, 2010-03-25 at 14:14 +0800, Christopher Chan wrote: Is it me or does the MySQLdb module in Centos n

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread John R Pierce
Christopher Chan wrote: >> but with RAID 10, data is safe after many types of failures. >> > > Except for the case when a mirror dies after which the whole thing is > toast but in theory you can survive up to four disks going down. > if you have a 8 drive raid1+0, and a random drive fails

Re: [CentOS] mysql-python

2010-03-25 Thread Ray Van Dolson
On Fri, Mar 26, 2010 at 09:03:11AM +0800, Christopher Chan wrote: > On Friday, March 26, 2010 08:52 AM, Ray Van Dolson wrote: > > On Fri, Mar 26, 2010 at 08:23:26AM +0800, Christopher Chan wrote: > >> On Thursday, March 25, 2010 09:11 PM, JohnS wrote: > >>> > >>> On Thu, 2010-03-25 at 14:14 +0800,

Re: [CentOS] how to automount usb drive

2010-03-25 Thread Robert Heller
At Fri, 26 Mar 2010 10:14:59 +1100 CentOS mailing list wrote: > > > adjust the following to your needs > > /dev/sdd1 /mnt/usb ext3 dev,auto,nouser,rw,sync 0 0 > > > Just be careful on boot up, I had trouble on boot when the drive > was already connected ... it wasnt recognized. I had t

Re: [CentOS] mysql-python

2010-03-25 Thread Christopher Chan
> Where'd you get your MySQLdb module from? yum install MySQL-python ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] RAID 5 setup?

2010-03-25 Thread Christopher Chan
On Friday, March 26, 2010 09:12 AM, John R Pierce wrote: > Christopher Chan wrote: >>> but with RAID 10, data is safe after many types of failures. >>> >> >> Except for the case when a mirror dies after which the whole thing is >> toast but in theory you can survive up to four disks going down. >>

Re: [CentOS] awk global replacement only after keyword

2010-03-25 Thread Joseph L. Casale
>sounds more like a reason to use sed > >man sed or tell us exactly what you are trying to do Tell you the truth, I would much rather use sed, but I didn't think that was doable with it. I have a slew of txt files that contain a keyword like "service-one" on many lines. I need to change those, bu

Re: [CentOS] mysql-python

2010-03-25 Thread Ray Van Dolson
On Fri, Mar 26, 2010 at 09:32:35AM +0800, Christopher Chan wrote: > > > Where'd you get your MySQLdb module from? > > yum install MySQL-python Well, don't know what to tell you: $ rpm -qi MySQL-python Name: MySQL-python Relocations: (not relocatable) Version : 1.2.1

Re: [CentOS] mysql-python

2010-03-25 Thread Christopher Chan
On Friday, March 26, 2010 09:39 AM, Ray Van Dolson wrote: > On Fri, Mar 26, 2010 at 09:32:35AM +0800, Christopher Chan wrote: >> >>> Where'd you get your MySQLdb module from? >> >> yum install MySQL-python > > Well, don't know what to tell you: > > $ rpm -qi MySQL-python > Name: MySQL-pytho

Re: [CentOS] awk global replacement only after keyword

2010-03-25 Thread Les Mikesell
Joseph L. Casale wrote: >> sounds more like a reason to use sed >> >> man sed or tell us exactly what you are trying to do > > Tell you the truth, I would much rather use sed, but I didn't think > that was doable with it. > > I have a slew of txt files that contain a keyword like "service-one" >

[CentOS] Rsync: how big is the traffic?

2010-03-25 Thread Fajar Priyanto
Hi guys, Can pls help me interpret the result of this rsync? I can't tell how much bandwidth the rsync traffic takes. Is it "Total transferred file size" or at the bottom "sent and received bytes"? Thank you. **start** Fri Mar 26 10:01:01 SGT 2010 Number of files: 183773 Number of files transferre

Re: [CentOS] Rsync: how big is the traffic?

2010-03-25 Thread Joseph L. Casale
>Hi guys, >Can pls help me interpret the result of this rsync? I can't tell how >much bandwidth the rsync traffic takes. >Is it "Total transferred file size" or at the bottom "sent and >received bytes"? Thank you. /snip >sent 7050494 bytes received 394481 bytes 23823.92 bytes/sec >total size is

Re: [CentOS] Rsync: how big is the traffic?

2010-03-25 Thread Stephen John Smoogen
On Thu, Mar 25, 2010 at 8:11 PM, Fajar Priyanto wrote: > Hi guys, > Can pls help me interpret the result of this rsync? I can't tell how > much bandwidth the rsync traffic takes. > Is it "Total transferred file size" or at the bottom "sent and > received bytes"? Thank you. > > **start** Fri Mar 26

Re: [CentOS] mysql-python

2010-03-25 Thread Christopher Chan
> >>> con=MySQLdb.connection(passwd="",user="esf",db="maze_bs") Blast, it is because I am using connection instead of connect. Sorry for the noise. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] awk global replacement only after keyword

2010-03-25 Thread Joseph L. Casale
>Can you use a regexp like: >s/\(known_part\)\(.*\)\(change_part\)/\1\2replace_part/ Unless I misunderstand that, I'd say no. The actual file might look this: /begin file foo bar{ biz service-one baz service-two } --many more of that-- # comment fiz bir{ aaa

Re: [CentOS] awk global replacement only after keyword

2010-03-25 Thread Les Mikesell
Joseph L. Casale wrote: >> Can you use a regexp like: >> s/\(known_part\)\(.*\)\(change_part\)/\1\2replace_part/ > > Unless I misunderstand that, I'd say no. > > The actual file might look this: > > /begin file > > foo bar{ > biz service-one > baz service-two > } > > --many

Re: [CentOS] awk global replacement only after keyword

2010-03-25 Thread Joseph L. Casale
>I think there is a way to do it in sed using the holding space, but it's so >much >easier in perl that I never bothered to learn the hard parts. What's the >problem with using perl anyway? No problem, just thought there was a sexier way to do it then my ugly way. The Perl solution would be ju

[CentOS] Allow fedora client to map centos server drive

2010-03-25 Thread Jeff Sadino
Hello, I am running Fedora 8 on a client machine and I have a CentOS4 "server." How do I mount a server drive on my local machine? I have already looked in hosts.allow, /etc/exports, and tried all sorts of nfs permutations. The server ip is 10.1.1.13 and my local is 10.1.1.117 Thank you VERY much!

[CentOS] ==> gcc 4.4.3 on centos 64 bit

2010-03-25 Thread Dieter Best
Hello, I need a newer version of gcc (gcc 4.4.3), with yum install I got 4.1.2. Has anyone figured out how to configure for the gcc 4.4.3 build to go through? Thanks. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/cen

Re: [CentOS] awk global replacement only after keyword

2010-03-25 Thread MHR
On Thu, Mar 25, 2010 at 5:36 PM, Joseph L. Casale wrote: > Trying to avoid a perl script which wouldn't be hard, but I am looking > for an awk one liner that does a replacement, but only after it sees a > key word on some line. > > Anyone know of that's easy to do? > Depends on how you define "on

Re: [CentOS] Rsync: how big is the traffic?

2010-03-25 Thread Jobst Schmalenbach
> sent 7050494 bytes received 394481 bytes 23823.92 bytes/sec bandwidth actually is b/s, so your bandwidth is 23823.92 bytes/sec as shown in the output from rsync. As for the total file size you have uploaded or downloaded this can very much differ from the actual file size on the system becau

Re: [CentOS] awk global replacement only after keyword

2010-03-25 Thread Joseph L. Casale
>Depends on how you define "one-liner." Something like this might work: > >{ if index($0, PATTERN) != 0 {FOUND = 1;}; if (FOUND != 0) >{subst(REPLACE_THIS, WITH_THIS, $0); } > >You'd want to reverse the order of the two statements if the >replacement is only to occur after the pattern is found. C

Re: [CentOS] awk global replacement only after keyword

2010-03-25 Thread Kahlil Hodgson
On 03/26/2010 02:02 PM, Joseph L. Casale wrote: >> I think there is a way to do it in sed using the holding space, but it's so >> much >> easier in perl that I never bothered to learn the hard parts. What's the >> problem with using perl anyway? > > No problem, just thought there was a sexier

Re: [CentOS] centos Installation on Multiple machines

2010-03-25 Thread Ian Forde
On Wed, 2010-03-24 at 09:26 -0400, Tom Diehl wrote: > On Wed, 24 Mar 2010, premr...@digilink.in wrote: > > > Hi, > > > > I want to install customized centos on multiple systems. Can PXE boot do > > that ? > > Apart from this is there any other way of doing image copy of centos OS > > and installin