[CentOS-docs] Comments? HowTos/CentOS5ConvertToRAID

Manuel Wolfshant wolfy at nobugconsulting.ro
Wed May 13 02:09:28 UTC 2009


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





More information about the CentOS-docs mailing list