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
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
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
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
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
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 probably active.
How can I stop swap and remove partition?
After rep
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
- 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
Hi,
We have a the following file
[ip-map]
# Unchanged IP addresses:
# Please review default IP addresses mapping below:
192.168.1.10 shared -> 192.168.123.6 shared
[namexx]
192.168.1.10
naam 192.168.1.10
We want to replace 192.168.1.10 to a other string but i don't want
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
_
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
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
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
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 .
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.
>
>
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
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
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
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
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:
>>>
>>>
>>-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
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
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
old2 with new2 oldn with newn.
replace_string.sh
#!/bin/
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
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
--
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
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
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
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
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
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
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
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
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 same id and gid for this 1000 users ?
What's happen with nfs linux
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
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
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
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
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
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
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
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
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 course of action here? Should I do
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
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
__
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
--
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
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
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' {} \;
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
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' {} \;
Thx.
___
CentOS mailing list
CentOS@centos.org
51 matches
Mail list logo