[CentOS] Transferring system to new drive

Kwan Lowe kwan.lowe at gmail.com
Tue Sep 14 09:45:46 EDT 2010


On Tue, Sep 14, 2010 at 8:12 AM, Timothy Murphy <gayleard at 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 with
>        sudo cp -a -P /* /mnt/hd
> (after mounting the prospective new root partition).
> Then I'd have to modify the new /etc/fstab .
>
> Is that a sensible approach?
>

I prefer to do this by cloning LVMs. Add the second drive to the
volume group then separately mirror each LV to the new drive. Once
done, remove the copy from the original disk.


More information about the CentOS mailing list