Re: [CentOS] Replace failed disk in raid

2014-03-05 Thread Keith Keller
On 2014-03-05, Nicolas Thierry-Mieg wrote: > On 03/05/2014 02:55 PM, Nikos Gatsis - Qbit wrote: > >> After replacing the faulty disk and rebuilt how I start swap again? > > swapon -a You'll probably also need to remake the swap space before doing swapon: mkswap /path/to/md/swap/device --keith

Re: [CentOS] Replace failed disk in raid

2014-03-05 Thread Dennis Jacobfeuerborn
On 05.03.2014 15:31, Nikos Gatsis - Qbit wrote: > > On 5/3/2014 3:59 μμ, Reindl Harald wrote: >> Am 05.03.2014 14:55, schrieb Nikos Gatsis - Qbit: >>> A disk, part of a raid failed and I have to replace it. >>> My problem is the swap partition which is in raid0. The rest partitions >>> are in raid1

Re: [CentOS] Replace failed disk in raid

2014-03-05 Thread Nikos Gatsis - Qbit
On 5/3/2014 3:59 μμ, Reindl Harald wrote: > Am 05.03.2014 14:55, schrieb Nikos Gatsis - Qbit: >> A disk, part of a raid failed and I have to replace it. >> My problem is the swap partition which is in raid0. The rest partitions >> are in raid1 and I successfully removed them. >> The partition in s

Re: [CentOS] Replace failed disk in raid

2014-03-05 Thread John Doe
From: Nikos Gatsis - Qbit > How can I stop swap and remove partition? > After replacing the faulty disk and rebuilt how I start swap again? # apropos swap | grep '(8)' JD ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listin

Re: [CentOS] Replace failed disk in raid

2014-03-05 Thread Nicolas Thierry-Mieg
On 03/05/2014 02:55 PM, Nikos Gatsis - Qbit wrote: > Hello list > A disk, part of a raid failed and I have to replace it. > My problem is the swap partition which is in raid0. The rest partitions > are in raid1 and I successfully removed them. > The partition in swap cant removed because is proba

Re: [CentOS] replace string with sed but not the first one

2012-06-19 Thread maverh
Thanks - Oorspronkelijk e-mail - Van: "Mark Pryor" Aan: "CentOS mailing list" Verzonden: Dinsdag 19 juni 2012 07:36:54 Onderwerp: Re: [CentOS] replace string with sed but not the first one - Original Message - From: "mav...@telenet.be" T

Re: [CentOS] replace string with sed but not the first one

2012-06-18 Thread Mark Pryor
- Original Message - From: "mav...@telenet.be" To: centos@centos.org Cc: Sent: Monday, June 18, 2012 10:30 PM Subject: [CentOS] replace string with sed but not the first one Hi,   We have a the following file [ip-map] # Unchanged IP addresses: # Please review default IP addre

Re: [CentOS] replace multiple string

2011-09-23 Thread John R Pierce
how about... find . -depth -execdir mv \{} ${\{}/old/new} \; I do highly recommend test-running this with a "echo " in front of the mv command. I didn't test it. -- john r pierceN 37, W 122 santa cruz ca mid-left coast _

Re: [CentOS] replace multiple string

2011-09-23 Thread Bart Schaefer
On Fri, Sep 23, 2011 at 10:47 AM, madu...@gmail.com wrote: > > I would like to use a bash script that searches files and > subdirectories name in a directory /var/ww/html/web > for a specific string, and when it finds the search string, replaces > the string (old1) with new string (new1), and so o

Re: [CentOS] replace multiple string

2011-09-23 Thread Thomas Johansson
On 2011-09-23 19:47, madu...@gmail.com wrote: > Hi > > > I would like to use a bash script that searches files and > subdirectories name in a directory /var/ww/html/web > for a specific string, and when it finds the search string, replaces > the string (old1) with new string (new1), and so on > old

Re: [CentOS] replace multiple string

2011-09-23 Thread John R Pierce
On 09/23/11 1:51 PM, madu...@gmail.com wrote: > I am planning to have this in 2 stages first -type fthen -type d you likely should use the -depth option that says descend first, even if you do the files seperately if you use -depth, you don't have to do it in two phases. -- john

Re: [CentOS] replace multiple string

2011-09-23 Thread madu...@gmail.com
I am planning to have this in 2 stages first -type fthen -type d pons On Fri, Sep 23, 2011 at 11:15 PM, wrote: > Les Mikesell wrote: >> On Fri, Sep 23, 2011 at 1:21 PM,   wrote: >> > I realized another question: are you trying to rename files? > yes files and directories too .

Re: [CentOS] replace multiple string

2011-09-23 Thread m . roth
Les Mikesell wrote: > On Fri, Sep 23, 2011 at 1:21 PM, wrote: > I realized another question: are you trying to rename files? >>> yes files and directories too .. >>> >> Then different commands - sed for the files, mv for the directories. >> >> This begins to look like a perl script. > >

Re: [CentOS] replace multiple string

2011-09-23 Thread Les Mikesell
On Fri, Sep 23, 2011 at 1:21 PM, wrote: >>> I realized another question: are you trying to rename files? >>> >> yes files and directories too .. >> > Then different commands - sed for the files, mv for the directories. > > This begins to look like a perl script. > Either way, it's probably a ba

Re: [CentOS] replace multiple string

2011-09-23 Thread m . roth
madu...@gmail.com wrote: > pons > > On Fri, Sep 23, 2011 at 9:08 PM, wrote: >> madu...@gmail.com wrote: >-type f ?? >>> the string could be a name of file name or subdirectory name >> I realized another question: are you trying to rename files? >> > yes files and directories too .. > Then di

Re: [CentOS] replace multiple string

2011-09-23 Thread madu...@gmail.com
yes files and directories too .. pons On Fri, Sep 23, 2011 at 9:08 PM, wrote: > madu...@gmail.com wrote: -type f ?? >> the string could be a name of file name or subdirectory name >> > I hate webmail. After I hit and while it was thinking about going, > I realized another question: are you

Re: [CentOS] replace multiple string

2011-09-23 Thread m . roth
madu...@gmail.com wrote: >>>-type f ?? > the string could be a name of file name or subdirectory name > I hate webmail. After I hit and while it was thinking about going, I realized another question: are you trying to rename files? mark > Thanks > pons > > On Fri, Sep 23, 2011 at 8:5

Re: [CentOS] replace multiple string

2011-09-23 Thread m . roth
madu...@gmail.com wrote: >>>-type f ?? > the string could be a name of file name or subdirectory name > No, it can't. You are *not* going to edit directory names this way, and should not. mark > Thanks > pons > > On Fri, Sep 23, 2011 at 8:51 PM, wrote: >> madu...@gmail.com wrote: >>> >>>

Re: [CentOS] replace multiple string

2011-09-23 Thread madu...@gmail.com
>>-type f ?? the string could be a name of file name or subdirectory name Thanks pons On Fri, Sep 23, 2011 at 8:51 PM, wrote: > madu...@gmail.com wrote: >> >> I would like to use a bash script that searches files and >> subdirectories name in a directory /var/ww/html/web >> for a specific strin

Re: [CentOS] replace multiple string

2011-09-23 Thread m . roth
madu...@gmail.com wrote: > > I would like to use a bash script that searches files and > subdirectories name in a directory /var/ww/html/web > for a specific string, and when it finds the search string, replaces > the string (old1) with new string (new1), and so on > old2 with new2 oldn with ne

Re: [CentOS] Replace NIS by Active Directory

2011-03-18 Thread Nico Kadel-Garcia
On Fri, Mar 18, 2011 at 11:19 AM, Alain Péan wrote: > Le 18/03/2011 16:07, Nico Kadel-Garcia a écrit : > > > ... that the default maximum group or username is 8 characters,... > > > It was the case with solaris, but fortunately not on Linux. I don't > remember what is the maximum length, but I t

Re: [CentOS] Replace NIS by Active Directory

2011-03-18 Thread Alain Péan
Le 18/03/2011 16:07, Nico Kadel-Garcia a écrit : ... that the default maximum group or username is 8 characters,... It was the case with solaris, but fortunately not on Linux. I don't remember what is the maximum length, but I think it could be up to 128 characters... Alain --

Re: [CentOS] Replace NIS by Active Directory

2011-03-18 Thread Nico Kadel-Garcia
On Fri, Mar 18, 2011 at 10:42 AM, John Hodrien wrote: > On Fri, 18 Mar 2011, Nico Kadel-Garcia wrote: > >> It can otherwise be done manually, but the data entry time wasted for >> your engineers well justifies the price of a Centrify license or two. > > What do you mean by manually?  Can't this al

Re: [CentOS] Replace NIS by Active Directory

2011-03-18 Thread John Hodrien
On Fri, 18 Mar 2011, Nico Kadel-Garcia wrote: > It can otherwise be done manually, but the data entry time wasted for > your engineers well justifies the price of a Centrify license or two. What do you mean by manually? Can't this all be done with ypcat, ldapmodify and a shell script? After whi

Re: [CentOS] Replace NIS by Active Directory

2011-03-18 Thread Ross Walker
On Mar 18, 2011, at 8:31 AM, "MOKRANI Rachid" wrote: > Hi, > > I'm looking a wiki or share experience for replace NIS authentication by > an existing Active directory Server (W2003). The problem is on the > management of id and gid. > > How to move 1000 actual NIS users to AD ? > How to keep t

Re: [CentOS] Replace NIS by Active Directory

2011-03-18 Thread Nico Kadel-Garcia
On Fri, Mar 18, 2011 at 8:31 AM, MOKRANI Rachid wrote: > Hi, > > I'm looking a wiki or share experience for replace NIS authentication by > an existing Active directory Server (W2003). The problem is on the > management of id and gid. > > How to move 1000 actual NIS users to AD ? > How to keep the

Re: [CentOS] Replace NIS by Active Directory

2011-03-18 Thread Alain Péan
Le 18/03/2011 14:06, Dvorkin, Asya a écrit : Hi, Check out Likewise open. I think this is what you are looking for. http://www.likewise.com/products/likewise_open/ " Likewise Open is the open source foundation for Likewise Enterprise that joins Linux, UNIX, and Mac OS systems to Microsoft Ac

Re: [CentOS] Replace NIS by Active Directory

2011-03-18 Thread Dvorkin, Asya
Hi, Check out Likewise open. I think this is what you are looking for. http://www.likewise.com/products/likewise_open/ " Likewise Open is the open source foundation for Likewise Enterprise that joins Linux, UNIX, and Mac OS systems to Microsoft Active Directory to securely authenticate non-Wi

Re: [CentOS] Replace NIS by Active Directory

2011-03-18 Thread Alain Péan
Le 18/03/2011 13:31, MOKRANI Rachid a écrit : > Hi, > > I'm looking a wiki or share experience for replace NIS authentication by > an existing Active directory Server (W2003). The problem is on the > management of id and gid. Here is a very good blog, scott Lowe, where I f found precise informati

Re: [CentOS] Replace NIS by Active Directory

2011-03-18 Thread John Hodrien
On Fri, 18 Mar 2011, MOKRANI Rachid wrote: > Hi, > > I'm looking a wiki or share experience for replace NIS authentication by > an existing Active directory Server (W2003). The problem is on the > management of id and gid. > > How to move 1000 actual NIS users to AD ? Create matching accounts i

Re: [CentOS] replace x86 with x64 system and reuse existing LVM

2011-01-18 Thread Kai Schaetzl
I've done this now and the procedure is fairly easy and very safe. I did a test run with VMs first, of course. You don't need to vgchange/vgexport etc. These changes do not carry over, anyway. A new system will find all volumes and make them active. But this doesn't matter. For a kickstart ins

Re: [CentOS] replace x86 with x64 system and reuse existing LVM

2011-01-12 Thread Kai Schaetzl
Thanks for the vgexport/vgimport info. I remember I used vgchange in the past, but I would not have thought about it, anyway. Good safety measure. Thanks! Kai -- Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mail

Re: [CentOS] replace x86 with x64 system and reuse existing LVM

2011-01-11 Thread Lamar Owen
On Sunday, January 09, 2011 05:31:25 pm Kai Schaetzl wrote: > As I > understand once LVM gets loaded it should find the volumes by itself, but > will it be able to use the same naming scheme for instance? Or do I have > to do some additional stuff, anyway? I've done this, and there are a couple

Re: [CentOS] replace x86 with x64 system and reuse existing LVM

2011-01-10 Thread Robert Heller
At Mon, 10 Jan 2011 19:51:57 +0100 CentOS mailing list wrote: > > Answering here to all three replies, and thanks for all of them! I think > it should have been clear from my wording that I want to install from > scratch and wipe the existing OS. I do not want to dualboot or "save" > anythin

Re: [CentOS] replace x86 with x64 system and reuse existing LVM

2011-01-10 Thread Kai Schaetzl
Answering here to all three replies, and thanks for all of them! I think it should have been clear from my wording that I want to install from scratch and wipe the existing OS. I do not want to dualboot or "save" anything (or much) from the existing OS. I just want to reuse the existing LVM str

Re: [CentOS] replace x86 with x64 system and reuse existing LVM

2011-01-10 Thread Robert Heller
At Sun, 09 Jan 2011 23:31:25 +0100 CentOS mailing list wrote: > > I want to replace an existing 32bit with a 64bit installation (Centos 5). > There's an existing LVM with lots of partitions. Most are used for Xen > guests. The system itself uses only one of them plus a separate /boot > parti

Re: [CentOS] replace x86 with x64 system and reuse existing LVM

2011-01-09 Thread nux
Kai Schaetzl writes: > I want to replace an existing 32bit with a 64bit installation (Centos 5). > There's an existing LVM with lots of partitions. Most are used for Xen > guests. The system itself uses only one of them plus a separate /boot > partition that is not on LVM. > What's the best cou

Re: [CentOS] replace x86 with x64 system and reuse existing LVM

2011-01-09 Thread Nico Kadel-Garcia
On Sun, Jan 9, 2011 at 5:31 PM, Kai Schaetzl wrote: > I want to replace an existing 32bit with a 64bit installation (Centos 5). > There's an existing LVM with lots of partitions. Most are used for Xen > guests. The system itself uses only one of them plus a separate /boot > partition that is not o

Re: [CentOS] replace

2008-10-29 Thread Marcelo Roccasalva
On Fri, Oct 24, 2008 at 5:58 PM, Phil Schaffner <[EMAIL PROTECTED]> wrote: > Mad Unix wrote: >> >> i need your feedback about this command, it should find a string in >> multiple html files in a directory and replace it with a different >> string... >> >> find /dir -name "*.html" -exec sed -i 's/"o

Re: [CentOS] replace

2008-10-24 Thread Pintér Tibor
You also have to give an extension to the command to get a backup. For this one it would basically be: perl -pi.old -e 's/foo/bar/' *.html... in addition to the no recursion thing if you dont, the target changes are applied to the source files. t __

Re: [CentOS] replace

2008-10-24 Thread Jim Perrin
On Fri, Oct 24, 2008 at 5:13 PM, Pintér Tibor <[EMAIL PROTECTED]> wrote: > perl -pi -e "s/foo/bar/" *.html You also have to give an extension to the command to get a backup. For this one it would basically be: perl -pi.old -e 's/foo/bar/' *.html... in addition to the no recursion thing --

Re: [CentOS] replace

2008-10-24 Thread Phil Schaffner
On Fri, 2008-10-24 at 23:13 +0200, Pintér Tibor wrote: > perl -pi -e "s/foo/bar/" *.html Won't recurse down the directory tree, but I guess the OP didn't actually ask for that. Could substitute the perl commad for sed in the earlier example. Many ways to skin the cat (all equally odious to the c

Re: [CentOS] replace

2008-10-24 Thread Pintér Tibor
Phil Schaffner írta: Mad Unix wrote: i need your feedback about this command, it should find a string in multiple html files in a directory and replace it with a different string... find /dir -name "*.html" -exec sed -i 's/"old"/"new"/g' {} \; Mad Unix, find /dir -name "*.html" -exec sed -i

Re: [CentOS] replace

2008-10-24 Thread Phil Schaffner
Mad Unix wrote: i need your feedback about this command, it should find a string in multiple html files in a directory and replace it with a different string... find /dir -name "*.html" -exec sed -i 's/"old"/"new"/g' {} \; Mad Unix, find /dir -name "*.html" -exec sed -i -e 's/old/new/g' {} \;

Re: [CentOS] replace

2008-10-24 Thread Bill Campbell
On Fri, Oct 24, 2008, Mad Unix wrote: >i need your feedback about this command, it should find a string in >multiple html files in a directory and replace it with a different >string... > >find /dir -name "*.html" -exec sed -i 's/"old"/"new"/g' {} \; There are several tools that handle this type o