Re: [CentOS] Transferring system to new drive

2010-09-29 Thread Lamar Owen
On Thursday, September 16, 2010 01:43:19 pm Timothy Murphy wrote: Lamar Owen wrote: When a server simply has to have minimal downtime, LVM is worth its LoC in gold for this use. What do you mean by no downtime? What exactly do you do? Is it documented anywhere? Sorry for the delay; been

Re: [CentOS] Transferring system to new drive

2010-09-20 Thread Kevin Thorpe
On 17/09/2010 22:52, Timothy Murphy wrote: Timothy Murphy wrote: Marcelo M. Garcia wrote: I was thinking of copying the old root partition with sudo cp -a -P /* /mnt/hd I think the command rsync is a better approach for this task. It has much more features, for example, you can exclude

Re: [CentOS] Transferring system to new drive

2010-09-18 Thread m . roth
Timothy Murphy wrote: Timothy Murphy wrote: Marcelo M. Garcia wrote: I was thinking of copying the old root partition with sudo cp -a -P /* /mnt/hd I think the command rsync is a better approach for this task. It has much more features, for example, you can exclude certain files. Thanks

Re: [CentOS] Transferring system to new drive

2010-09-17 Thread Timothy Murphy
Timothy Murphy wrote: Marcelo M. Garcia wrote: I was thinking of copying the old root partition with sudo cp -a -P /* /mnt/hd I think the command rsync is a better approach for this task. It has much more features, for example, you can exclude certain files. Thanks for the suggestion.

Re: [CentOS] Transferring system to new drive

2010-09-17 Thread Les Mikesell
On 9/17/2010 4:52 PM, Timothy Murphy wrote: I was thinking of copying the old root partition with sudo cp -a -P /* /mnt/hd I think the command rsync is a better approach for this task. It has much more features, for example, you can exclude certain files. Thanks for the suggestion.

Re: [CentOS] Transferring system to new drive

2010-09-16 Thread Lamar Owen
On Tuesday, September 14, 2010 01:42:05 pm Robert Heller wrote: At Tue, 14 Sep 2010 13:19:16 -0400 CentOS mailing list centos@centos.org wrote: What about doing all with dd ... If you have the second disk installed in the same machine you can do dd if=/dev/sda of=/dev/sdb ort you can use

Re: [CentOS] Transferring system to new drive

2010-09-16 Thread Timothy Murphy
Lamar Owen wrote: But having done a few now I vastly prefer doing it online using LVM. No downtime, and it just works, including resizing, as long as you are going to a larger lv. When a server simply has to have minimal downtime, LVM is worth its LoC in gold for this use. What do you

Re: [CentOS] Transferring system to new drive

2010-09-15 Thread Phil Schaffner
John R Pierce wrote on 09/14/2010 09:27 AM: On 09/14/10 6:24 AM, m.r...@5-cent.us wrote: rsync -HPavxz --exclude /mnt /. /mnt/. how does rsync handle links? not symlinks, but actual file links? From man rsync: -H, --hard-linkspreserve hard links Phil

[CentOS] Transferring system to new drive

2010-09-14 Thread Timothy Murphy
Is there a document with instructions for this? I've had smartd warnings that a hard disk in my server is sick, so I am installing a new drive (in addition to the old). I was thinking of copying the old root partition with sudo cp -a -P /* /mnt/hd (after mounting the prospective new root

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Marcelo M. Garcia
Timothy Murphy wrote: I was thinking of copying the old root partition with sudo cp -a -P /* /mnt/hd (after mounting the prospective new root partition). Then I'd have to modify the new /etc/fstab . Hi I think the command rsync is a better approach for this task. It has much more

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread kalinix
On Tue, 2010-09-14 at 13:16 +0100, Marcelo M. Garcia wrote: Timothy Murphy wrote: I was thinking of copying the old root partition with sudo cp -a -P /* /mnt/hd (after mounting the prospective new root partition). Then I'd have to modify the new /etc/fstab . Hi I think the

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread John R Pierce
On 09/14/10 5:12 AM, Timothy Murphy wrote: Is there a document with instructions for this? I've had smartd warnings that a hard disk in my server is sick, so I am installing a new drive (in addition to the old). I was thinking of copying the old root partition with sudo cp -a -P /*

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Timothy Murphy
John R Pierce wrote: Is there a document with instructions for this? I've had smartd warnings that a hard disk in my server is sick, so I am installing a new drive (in addition to the old). I generally use dump ... | restore ... to clone a complete e2fs/e3fs volume. it copies

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Timothy Murphy
Marcelo M. Garcia wrote: I was thinking of copying the old root partition with sudo cp -a -P /* /mnt/hd I think the command rsync is a better approach for this task. It has much more features, for example, you can exclude certain files. Thanks for the suggestion. Could you offer a precise

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Robert Heller
At Tue, 14 Sep 2010 13:12:46 +0100 CentOS mailing list centos@centos.org wrote: Is there a document with instructions for this? I've had smartd warnings that a hard disk in my server is sick, so I am installing a new drive (in addition to the old). I was thinking of copying the old

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Timothy Murphy
kalinix wrote: I think the command rsync is a better approach for this task. It has much more features, for example, you can exclude certain files. In offline mode is even better How exactly? This is my server, so if I stopped it I would not have access from any other machine. -- Timothy

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Terry Polzin
On Tue, 2010-09-14 at 13:12 +0100, Timothy Murphy wrote: Is there a document with instructions for this? I've had smartd warnings that a hard disk in my server is sick, so I am installing a new drive (in addition to the old). I was thinking of copying the old root partition with sudo

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Les Mikesell
On 9/14/10 7:54 AM, Timothy Murphy wrote: John R Pierce wrote: Is there a document with instructions for this? I've had smartd warnings that a hard disk in my server is sick, so I am installing a new drive (in addition to the old). I generally use dump ... | restore ... to clone a

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Robert Heller
At Tue, 14 Sep 2010 13:54:38 +0100 CentOS mailing list centos@centos.org wrote: John R Pierce wrote: Is there a document with instructions for this? I've had smartd warnings that a hard disk in my server is sick, so I am installing a new drive (in addition to the old). I generally

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread John R Pierce
On 09/14/10 5:54 AM, Timothy Murphy wrote: John R Pierce wrote: Is there a document with instructions for this? I've had smartd warnings that a hard disk in my server is sick, so I am installing a new drive (in addition to the old). I generally use dump ... | restore ... to clone a

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread m . roth
Les Mikesell wrote: On 9/14/10 7:54 AM, Timothy Murphy wrote: John R Pierce wrote: Is there a document with instructions for this? I've had smartd warnings that a hard disk in my server is sick, so I am installing a new drive (in addition to the old). I generally use dump ... | restore ...

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread John R Pierce
On 09/14/10 6:24 AM, m.r...@5-cent.us wrote: rsync -HPavxz --exclude /mnt /. /mnt/. how does rsync handle links? not symlinks, but actual file links? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Scott Robbins
On Tue, Sep 14, 2010 at 09:03:13AM -0400, Robert Heller wrote: At Tue, 14 Sep 2010 13:12:46 +0100 CentOS mailing list centos@centos.org wrote: Is there a document with instructions for this? I've had smartd warnings that a hard disk in my server is sick, so I am installing a new

[CentOS] Transferring system to new drive

2010-09-14 Thread R P Herrold
On Tue, 14 Sep 2010, Timothy Murphy wrote: Could you offer a precise command for copying the system from / to /mnt/hd , say? Would one exclude /dev or /proc , for example? I've not updated this in years nor for a 2.6 kernel and grub, but the process is basically unchanged:

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread m . roth
R P Herrold wrote: On Tue, 14 Sep 2010, Timothy Murphy wrote: Could you offer a precise command for copying the system from / to /mnt/hd , say? Would one exclude /dev or /proc , for example? I've not updated this in years nor for a 2.6 kernel and grub, but the process is basically

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Kwan Lowe
On Tue, Sep 14, 2010 at 8:12 AM, Timothy Murphy gayle...@eircom.net wrote: Is there a document with instructions for this? I've had smartd warnings that a hard disk in my server is sick, so I am installing a new drive (in addition to the old). I was thinking of copying the old root partition

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Robert Heller
At Tue, 14 Sep 2010 09:39:07 -0400 CentOS mailing list centos@centos.org wrote: On Tue, Sep 14, 2010 at 09:03:13AM -0400, Robert Heller wrote: At Tue, 14 Sep 2010 13:12:46 +0100 CentOS mailing list centos@centos.org wrote: Is there a document with instructions for this?

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Scott Robbins
On Tue, Sep 14, 2010 at 09:53:42AM -0400, Robert Heller wrote: At Tue, 14 Sep 2010 09:39:07 -0400 CentOS mailing list centos@centos.org wrote: On Tue, Sep 14, 2010 at 09:03:13AM -0400, Robert Heller wrote: At Tue, 14 Sep 2010 13:12:46 +0100 CentOS mailing list centos@centos.org

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Tom H
On Tue, Sep 14, 2010 at 9:39 AM, Scott Robbins scot...@nyc.rr.com wrote: On Tue, Sep 14, 2010 at 09:03:13AM -0400, Robert Heller wrote: At Tue, 14 Sep 2010 13:12:46 +0100 CentOS mailing list centos@centos.org wrote: Is there a document with instructions for this? I've had smartd warnings

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Robert Heller
At Tue, 14 Sep 2010 12:13:53 -0400 CentOS mailing list centos@centos.org wrote: On Tue, Sep 14, 2010 at 9:39 AM, Scott Robbins scot...@nyc.rr.com wrote: On Tue, Sep 14, 2010 at 09:03:13AM -0400, Robert Heller wrote: At Tue, 14 Sep 2010 13:12:46 +0100 CentOS mailing list centos@centos.org

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Gabriel Rosca
What about doing all with dd ... If you have the second disk installed in the same machine you can do dd if=/dev/sda of=/dev/sdb ort you can use clonezilla is a live cd . Gabe On 9/14/10 8:12 AM, Timothy Murphy gayle...@eircom.net wrote: Is there a document with instructions for this? I've

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Bill Campbell
On Tue, Sep 14, 2010, Timothy Murphy wrote: Is there a document with instructions for this? I've had smartd warnings that a hard disk in my server is sick, so I am installing a new drive (in addition to the old). I was thinking of copying the old root partition with sudo cp -a -P /*

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread m . roth
Bill Campbell wrote: On Tue, Sep 14, 2010, Timothy Murphy wrote: Is there a document with instructions for this? I've had smartd warnings that a hard disk in my server is sick, so I am installing a new drive (in addition to the old). I was thinking of copying the old root partition with

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Robert Heller
At Tue, 14 Sep 2010 13:19:16 -0400 CentOS mailing list centos@centos.org wrote: What about doing all with dd ... If you have the second disk installed in the same machine you can do dd if=/dev/sda of=/dev/sdb ort you can use clonezilla is a live cd . dd only works IFF (!) the new drive is

Re: [CentOS] Transferring system to new drive

2010-09-14 Thread Tom H
On Tue, Sep 14, 2010 at 1:42 PM, Robert Heller hel...@deepsoft.com wrote: At Tue, 14 Sep 2010 13:19:16 -0400 CentOS mailing list centos@centos.org wrote: What about doing all with dd ... If you have the second disk installed in the same machine you can do dd if=/dev/sda of=/dev/sdb ort you