[CentOS-docs] Comments? HowTos/CentOS5ConvertToRAID

Wed May 13 01:09:28 UTC 2009
Manuel Wolfshant <wolfy at nobugconsulting.ro>

On 05/12/2009 11:11 PM, Phil Schaffner wrote:
> Ed Heron wrote:
>   
>>   Has anybody had a chance to look at this?
>>     
>
> Moving it up on my to-do list...
>
> When cloning the root partition need to add "H" to the rsync flags to 
> preserve hard links.  Don't think /boot uses hard links, but wouldn't 
> hurt to use it there also.  An often-recommended alternative is to use tar:
>
> tar -C /mnt/boot.old -cf - . | tar -C /mnt/boot.new -xf -
> tar -C /mnt/root.old -cf - . | tar -C /mnt/root.new -xf -
>
> Probably a matter of preference.
>   

    find /path/to/source -xdev -print0 | cpio -pa0V /path/to/destination
is also an alternate option... but I prefer rsync usually