Re: Transferring system to new drive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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 ...     to clone a complete
>>> e2fs/e3fs volume.  it copies everything exactly on an inode by inode
basis.
>>
>> Thanks for the suggestion.
>> Could you give a concrete command for copying /
>> to say a new filesystem on /mnt/hd ?
>>
>> (I'm wondering how this approach deals with symbolic links,
>> /dev , /proc , etc

As someone else said, you do *NOT* copy /dev, /prov, or /sys - those are
memory-only virtual filesystems.
<snip>
> Otherwise, 'rsync --one-file-system -aH  source target' will work and will
<snip>
Or, as we do at work, after mounting /dev/<newdisk/3 /mnt

>
rsync -HPavxz --exclude /mnt /. /mnt/.

         mark

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux