[CentOS] backup script

2011-01-24 Thread madu...@gmail.com
I want to create bash script to have a zip copy from a website running on linux /var/www/htdocs/* local on the same box on different directory I am thinking to do a local backup using crontab (snapshot my web) tar -cvzf /tmp/website-$(date +%Y%m%d-%H%M).tgz /var/www/htdocs/* This command will creat

Re: [CentOS] CentOS and Dell MD3200i / MD3220i iSCSI w/ multipath -- slightly OT

2011-01-24 Thread Dr. Ed Morbius
on 07:48 Sun 23 Jan, Peter Gillich (pgill...@gmail.com) wrote: > Hi, > In last summer, I have had same problems with Dell + CentOS + > multipath combination. For example I/O errors and stability problems > on the initiator machines. The initator machines are (in a Pacemaker > cluster): > - Dell R31

Re: [CentOS] tar-ing subdirectories separately

2011-01-24 Thread Nico Kadel-Garcia
On Mon, Jan 24, 2011 at 8:00 AM, Leonard den Ottolander wrote: > Hello Johan, > > On Sun, 2011-01-23 at 14:51 -0600, Johan Martinez wrote: >> I want to backup a directory using tar, but want separate tarballs for >> each subdirectory. For example:  # ls dir1 >> subdir1 subdir2 subdir3 > > Use find

Re: [CentOS] kernel update

2011-01-24 Thread Kwan Lowe
On Mon, Jan 24, 2011 at 4:57 PM, mahmoud mansy wrote: > hey guys, > i wanna update the kernel of thw centos 5.5,to the 2.6.32 version! > is there any compatablity issues with stuff like glibc or otheres! Someone suggested Fedora on the hardware and CentOS in a VM.. That works best if you're doing

Re: [CentOS] kernel update

2011-01-24 Thread JohnS
On Mon, 2011-01-24 at 18:42 -0500, Scott Robbins wrote: > > Oracle does, I know. Does RH? Yea they sure do in "mERG". There's a difference though one is a Throughput based kernel and one is realtime based with full preemption: 2.6.33.7-rt29.47.el5rt RT based 2.6.18-194.32.1.el5 Throughput

Re: [CentOS] kernel update

2011-01-24 Thread Scott Robbins
On Mon, Jan 24, 2011 at 06:42:38PM -0500, Scott Robbins wrote: > On Mon, Jan 24, 2011 at 06:03:34PM -0500, JohnS wrote: > > > > > Upgrading the kernel *can* work, but defeats the purpose of running an > > > enterprise OS. > > > > I find your statement to not be true at all. > > > > Upstream off

Re: [CentOS] kernel update

2011-01-24 Thread Scott Robbins
On Mon, Jan 24, 2011 at 06:03:34PM -0500, JohnS wrote: > > On Mon, 2011-01-24 at 17:33 -0500, Joshua Baker-LePain wrote: > > > Upgrading the kernel *can* work, but defeats the purpose of running an > > enterprise OS. > > I find your statement to not be true at all. > > Upstream offers two (2)

Re: [CentOS] kernel update

2011-01-24 Thread JohnS
On Tue, 2011-01-25 at 01:06 +0200, mahmoud mansy wrote: > more explanation plz! Nothing much ado about nothing to really explain. Just have to search google :-)... This is the other one [1] the source from upstream. Of which you have to find one built for CentOS like this one [2] exclusively :

Re: [CentOS] kernel update

2011-01-24 Thread mahmoud mansy
more explanation plz! On Tue, Jan 25, 2011 at 1:03 AM, JohnS wrote: > > On Mon, 2011-01-24 at 17:33 -0500, Joshua Baker-LePain wrote: > >> Upgrading the kernel *can* work, but defeats the purpose of running an >> enterprise OS. > > I find your statement to not be true at all. > > Upstream offers

Re: [CentOS] kernel update

2011-01-24 Thread JohnS
On Mon, 2011-01-24 at 17:33 -0500, Joshua Baker-LePain wrote: > Upgrading the kernel *can* work, but defeats the purpose of running an > enterprise OS. I find your statement to not be true at all. Upstream offers two (2) different Enterprise Level kernels to pick, choose and play with. CentOS

Re: [CentOS] kernel update

2011-01-24 Thread Ray Van Dolson
On Tue, Jan 25, 2011 at 12:40:56AM +0200, mahmoud mansy wrote: > ok,looks great but i wanna know what about the new centos6 support for > hardware will it be more oriented to desktops and laptops or what? It will likely work better with some of the newer hardware, but eventually will run into the

Re: [CentOS] iproute2 custom tables and rules the CentOS way...

2011-01-24 Thread Ray Van Dolson
On Mon, Jan 24, 2011 at 04:28:16PM -0600, Barry Brimer wrote: > Quoting Ray Van Dolson : > > > Hi all; > > > > I have a custom iproute2 table and a few rules to go along with it > > (CentOS 5) -- I have added the table to /etc/iproute2/rt_tables. > > > > if-up and friends doesn't seem to handle th

Re: [CentOS] kernel update

2011-01-24 Thread mahmoud mansy
ok,looks great but i wanna know what about the new centos6 support for hardware will it be more oriented to desktops and laptops or what? On Tue, Jan 25, 2011 at 12:33 AM, Joshua Baker-LePain wrote: > On Tue, 25 Jan 2011 at 12:26am, mahmoud mansy wrote > >> well,i meant to upgrade to the RHEL ker

Re: [CentOS] kernel update

2011-01-24 Thread Joshua Baker-LePain
On Tue, 25 Jan 2011 at 12:26am, mahmoud mansy wrote > well,i meant to upgrade to the RHEL kernel and its module > ,libraries,headers if found of course but what i meant is there any > issue with that i.e no piece of software work with that module or > library>>etc, > > and the main problem is tha

Re: [CentOS] iproute2 custom tables and rules the CentOS way...

2011-01-24 Thread Barry Brimer
Quoting Ray Van Dolson : > Hi all; > > I have a custom iproute2 table and a few rules to go along with it > (CentOS 5) -- I have added the table to /etc/iproute2/rt_tables. > > if-up and friends doesn't seem to handle this real gracefully. How are > those of you out there doing something similar

Re: [CentOS] kernel update

2011-01-24 Thread mahmoud mansy
well,i meant to upgrade to the RHEL kernel and its module ,libraries,headers if found of course but what i meant is there any issue with that i.e no piece of software work with that module or library>>etc, and the main problem is that i wanna take the RHCE and the best suggested OS is centos not

Re: [CentOS] kernel update

2011-01-24 Thread Brunner, Brian T.
> -Original Message- > From: centos-boun...@centos.org > [mailto:centos-boun...@centos.org] On Behalf Of mahmoud mansy > Sent: Monday, January 24, 2011 4:57 PM > To: CentOS mailing list > Subject: [CentOS] kernel update > > hey guys, > i wanna update the kernel of thw centos 5.5,to the 2

[CentOS] kernel update

2011-01-24 Thread mahmoud mansy
hey guys, i wanna update the kernel of thw centos 5.5,to the 2.6.32 version! is there any compatablity issues with stuff like glibc or otheres! ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Could CentOS 5.5 on newer hardware make it freeze or shutdown?

2011-01-24 Thread cwlists
On Sun, Jan 23, 2011 at 00:14, compdoc wrote: >>I have built a new PC on which I've installed CentOS 5.5 64-bit (with >>updates) which after some hours of running suddenly either hard freeze >>or instant power off. > > > Can you check a setting in the bios - see if there's an option named: PCI > L

Re: [CentOS] adding raid1 to running system

2011-01-24 Thread Robert Heller
At Mon, 24 Jan 2011 14:53:45 -0600 CentOS mailing list wrote: > > > I have followed the procedure on the Centos page: > > > > http://wiki.centos.org/HowTos/CentOS5ConvertToRAID > > Is there a how too for CentOS 4.x? It shouldn't be much different than the 5.x howto. > > > My setup is slight

Re: [CentOS] adding raid1 to running system

2011-01-24 Thread Matt
> I have followed the procedure on the Centos page: > > http://wiki.centos.org/HowTos/CentOS5ConvertToRAID Is there a how too for CentOS 4.x? > My setup is slightly different. I am using two partitions, / and /home. > I have setup swap as a file, /home/swapfile. > > My hard drives are 500Gig sda

[CentOS] iproute2 custom tables and rules the CentOS way...

2011-01-24 Thread Ray Van Dolson
Hi all; I have a custom iproute2 table and a few rules to go along with it (CentOS 5) -- I have added the table to /etc/iproute2/rt_tables. if-up and friends doesn't seem to handle this real gracefully. How are those of you out there doing something similar managing this customization? I don't

[CentOS] adding raid1 to running system

2011-01-24 Thread dwoody1
I have followed the procedure on the Centos page: http://wiki.centos.org/HowTos/CentOS5ConvertToRAID My setup is slightly different. I am using two partitions, / and /home. I have setup swap as a file, /home/swapfile. My hard drives are 500Gig sda and sdb. In modifying the instructions for init

Re: [CentOS] Why one shouldn't cross post [was: putting "/tmp" to memory]

2011-01-24 Thread Mark
On Mon, Jan 24, 2011 at 6:08 AM, Rudi Ahlers wrote: : > > So what if it's a homework assignment. Or if it's someone who's new to > Linux or PC's in general and actually don't know what you've learned > in the past 86years. Is it really that much trouble to help him, > instead of stoning him? > Ma

Re: [CentOS] [OT] old kit and kaboodle, obFriday (was:Re: Is it okay?)

2011-01-24 Thread Lamar Owen
On Friday, January 21, 2011 10:36:00 pm Leonard den Ottolander wrote: > The problem with many of these special purpose distros is that they are > usually poorly maintained wrt updates. A minimal install of a mainstream > distro like CentOS shouldn't take up much more than a GB, and if you put > in

Re: [CentOS] putting "/tmp" to memory

2011-01-24 Thread Les Mikesell
On 1/24/2011 9:54 AM, Brunner, Brian T. wrote: > But, on the other hand, whenever someone posts a somewhat OT question there are far more irritating [replies] So, I'd suggest these self-righteous flamers find a good religious discussion list to perform their cathartic ritual in

Re: [CentOS] putting "/tmp" to memory

2011-01-24 Thread Brunner, Brian T.
> > > But, on the other hand, whenever someone posts a somewhat OT > > > question there are far more irritating [replies]  So, I'd suggest these > > > self-righteous flamers find a good religious discussion list > > > to perform their cathartic ritual in. > > > > But who are we to judge him, as

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Les Mikesell
On 1/24/2011 7:05 AM, Agnello George wrote: > > the reason i need to do this i want to automate the whole process of > checking into to svn from dev server and checking out to QA server for > testing purpose , my script would change the config file in QA server . > > the developers have lots

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Les Mikesell
On 1/24/2011 8:31 AM, Kai Schaetzl wrote: > svn is not meant to contain binary files (AFAIK Excel files are binary), > there is no way to see a meaningful diff of these files. Furthermore, > developers should be able to adapt to a naming scheme that avoids such > problems. Subversion actually does

Re: [CentOS] Why one shouldn't cross post [was: putting "/tmp" to memory]

2011-01-24 Thread m . roth
Rudi Ahlers wrote: > On Mon, Jan 24, 2011 at 3:33 PM, Leonard den Ottolander > wrote: >> On Sun, 2011-01-23 at 21:00 -0500, Mailing List wrote: >>> I can not see the reason to why his question is being scrutinized.  If >>> I needed an answer whether it be homework or legitimate work I was doing, I

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread m . roth
Agnello George wrote: > On Mon, Jan 24, 2011 at 6:25 PM, Nico Kadel-Garcia > wrote: >> On Mon, Jan 24, 2011 at 6:57 AM, Agnello George >> wrote: >> >> Can you first explain why you want, or need, to do this? > > the reason i need to do this i want to automate the whole process of > checking i

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Kai Schaetzl
svn is not meant to contain binary files (AFAIK Excel files are binary), there is no way to see a meaningful diff of these files. Furthermore, developers should be able to adapt to a naming scheme that avoids such problems. Kai ___ CentOS mailing li

Re: [CentOS] ifcfg-rh: error: Unknown connection type 'Bridge'

2011-01-24 Thread Kai Schaetzl
Gordon Messmer wrote on Sun, 23 Jan 2011 14:56:51 -0800: > Having reviewed the scripts for all of the services on a server that > runs many, I'm very confident that the reason you see that happen is > that you are using "chkconfig --del " rather than "chkconfig > off" to disable services. I s

Re: [CentOS] putting "/tmp" to memory

2011-01-24 Thread Jerry McAllister
On Mon, Jan 24, 2011 at 04:11:35PM +0200, Rudi Ahlers wrote: > On Mon, Jan 24, 2011 at 4:02 PM, Jerry McAllister wrote: > > On Sun, Jan 23, 2011 at 09:00:38PM -0500, Mailing List wrote: > > > >> On 1/23/2011 6:00 PM, Mark wrote: > >> >On Sun, Jan 23, 2011 at 2:56 PM, John R Pierce   > >> >wrote:

Re: [CentOS] putting "/tmp" to memory

2011-01-24 Thread Rudi Ahlers
On Mon, Jan 24, 2011 at 4:02 PM, Jerry McAllister wrote: > On Sun, Jan 23, 2011 at 09:00:38PM -0500, Mailing List wrote: > >> On 1/23/2011 6:00 PM, Mark wrote: >> >On Sun, Jan 23, 2011 at 2:56 PM, John R Pierce  wrote: >> >>On 01/23/11 12:55 PM, Rudi Ahlers wrote: >> >>>On Sun, Jan 23, 2011 at 8:2

Re: [CentOS] Why one shouldn't cross post [was: putting "/tmp" to memory]

2011-01-24 Thread Rudi Ahlers
On Mon, Jan 24, 2011 at 3:53 PM, Leonard den Ottolander wrote: > Hello Rudi, > > On Mon, 2011-01-24 at 15:46 +0200, Rudi Ahlers wrote: >> Instead of wasting time and bandwidth on this flame, why not just tell >> him what todo? > > Because I don't want to encourage such behaviour. Plus this wasn't

Re: [CentOS] putting "/tmp" to memory

2011-01-24 Thread Jerry McAllister
On Sun, Jan 23, 2011 at 09:00:38PM -0500, Mailing List wrote: > On 1/23/2011 6:00 PM, Mark wrote: > >On Sun, Jan 23, 2011 at 2:56 PM, John R Pierce wrote: > >>On 01/23/11 12:55 PM, Rudi Ahlers wrote: > >>>On Sun, Jan 23, 2011 at 8:23 PM, Markwrote: > Can you tell us why you cross posted t

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread cpolish
Nico Kadel-Garcia wrote: > Agnello George wrote: > > i got a file like this and i need add it into my svn > > > > admin/upload_data/FINAL  leg  list  19_01_2010 to  agar  (Merged data in > > one).xls > > First: don't do this, seriously. You're begging for pain in your > scripting to handle such fi

Re: [CentOS] Why one shouldn't cross post [was: putting "/tmp" to memory]

2011-01-24 Thread Les Mikesell
On 1/24/11 7:53 AM, Leonard den Ottolander wrote: > > On Mon, 2011-01-24 at 15:46 +0200, Rudi Ahlers wrote: >> Instead of wasting time and bandwidth on this flame, why not just tell >> him what todo? > > Because I don't want to encourage such behaviour. Plus this wasn't even > a reply to the origin

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Les Mikesell
On 1/24/11 7:49 AM, Agnello George wrote: > > so here is my final answer > > instead of doing > > for i in $(svn st | grep "?" | awk '{print $2}'); do svn add $i;done > > i can do > > for i in $(svn st | grep "?" | awk '{print $2}'); do svn add *"$i" *;done > > This is working for me ... i wonder i

Re: [CentOS] Why one shouldn't cross post [was: putting "/tmp" to memory]

2011-01-24 Thread Leonard den Ottolander
Hello Rudi, On Mon, 2011-01-24 at 15:46 +0200, Rudi Ahlers wrote: > Instead of wasting time and bandwidth on this flame, why not just tell > him what todo? Because I don't want to encourage such behaviour. Plus this wasn't even a reply to the original poster, but seeing how many people cross post

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Agnello George
On Mon, Jan 24, 2011 at 7:12 PM, Les Mikesell wrote: > On 1/24/11 5:57 AM, Agnello George wrote: > > i got a file like this and i need add it into my svn > > > > admin/upload_data/FINAL leg list 19_01_2010 to agar (Merged data in > one).xls > > > > i as able to add other files with space usi

Re: [CentOS] Why one shouldn't cross post [was: putting "/tmp" to memory]

2011-01-24 Thread Rudi Ahlers
On Mon, Jan 24, 2011 at 3:33 PM, Leonard den Ottolander wrote: > On Sun, 2011-01-23 at 21:00 -0500, Mailing List wrote: >> I can not see the reason to why his question is being scrutinized.  If I >> needed an >> answer whether it be homework or legitimate work I was doing, I would ask >> where e

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Les Mikesell
On 1/24/11 5:57 AM, Agnello George wrote: > i got a file like this and i need add it into my svn > > admin/upload_data/FINAL leg list 19_01_2010 to agar (Merged data in > one).xls > > i as able to add other files with space using the following command : > > svn st |grep ? |cut -c8- |sed 's/

Re: [CentOS] Why one shouldn't cross post [was: putting "/tmp" to memory]

2011-01-24 Thread Leonard den Ottolander
On Sun, 2011-01-23 at 21:00 -0500, Mailing List wrote: > I can not see the reason to why his question is being scrutinized. If I > needed an > answer whether it be homework or legitimate work I was doing, I would ask > where ever > I thought I would get the right answer. Cross posting, especial

Re: [CentOS] curious reboot output

2011-01-24 Thread Leonard den Ottolander
Hello Tim, On Sat, 2011-01-22 at 21:40 -0500, Tim Dunphy wrote: > reboot system boot 2.6.18-194.26.1. Wed Dec 29 20:03 (24+01:33) > This is odd because this machine was rebuilt today (Saturday 1/22) in Is there a discrepancy with the time stamps on the installed files in f.e /etc or /

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Agnello George
On Mon, Jan 24, 2011 at 6:25 PM, Nico Kadel-Garcia wrote: > On Mon, Jan 24, 2011 at 6:57 AM, Agnello George > wrote: > > i got a file like this and i need add it into my svn > > > > admin/upload_data/FINAL leg list 19_01_2010 to agar (Merged data in > > one).xls > > First: don't do this, se

Re: [CentOS] tar-ing subdirectories separately

2011-01-24 Thread Leonard den Ottolander
Hello Johan, On Sun, 2011-01-23 at 14:51 -0600, Johan Martinez wrote: > I want to backup a directory using tar, but want separate tarballs for > each subdirectory. For example: # ls dir1 > subdir1 subdir2 subdir3 Use find(1) for such cases. $ find -mindepth 1 -maxdepth 1 -type d -exec tar cz {

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Nico Kadel-Garcia
On Mon, Jan 24, 2011 at 6:57 AM, Agnello George wrote: > i got a file like this and i need add it into my svn > > admin/upload_data/FINAL  leg  list  19_01_2010 to  agar  (Merged data in > one).xls First: don't do this, seriously. You're begging for pain in your scripting to handle such files fro

Re: [CentOS] ethernet configuration

2011-01-24 Thread Nico Kadel-Garcia
On Mon, Jan 24, 2011 at 12:39 AM, Ritika Garg wrote: > I gave '/sbin/ifconfig | grep HWaddr' to get the MAC address but its not > returning anything. That will only show active network ports. Try "/sbin/ifconfig -a". ___ CentOS mailing list CentOS@cento

Re: [CentOS] ethernet configuration

2011-01-24 Thread Nelson
It would be ok if you post the output of your ifconfig. I tried your command and it was working on mine On Mon, Jan 24, 2011 at 1:39 PM, Ritika Garg wrote: > I gave '/sbin/ifconfig | grep HWaddr' to get the MAC address but its not > returning anything. > > ___

[CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Agnello George
i got a file like this and i need add it into my svn admin/upload_data/FINAL leg list 19_01_2010 to agar (Merged data in one).xls i as able to add other files with space using the following command : svn st |grep ? |cut -c8- |sed 's/ /\\ /g' |xargs svn add however there are some special c

Re: [CentOS] How to disable screen locking system-wide?

2011-01-24 Thread Sorin Srbu
>-Original Message- >From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On >Behalf Of Mike McCarty >Sent: Thursday, January 20, 2011 9:08 PM >To: CentOS mailing list >Subject: Re: [CentOS] How to disable screen locking system-wide? > >OTOH, I have cats :-) Funny you should

Re: [CentOS] How to disable screen locking system-wide?

2011-01-24 Thread Sorin Srbu
>-Original Message- >From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On >Behalf Of Joshua Baker-LePain >Sent: Thursday, January 20, 2011 4:49 PM >To: CentOS mailing list >Subject: Re: [CentOS] How to disable screen locking system-wide? > >I was going to leave this alone,