On Sep 5, 2007, at 6:02 AM, Jeff Fisher wrote:
Create a new logical volume of the exact same size, unmount the original
logical volume, then do:
dd if=/dev/vgsource/lvsource of=/dev/vgdest/lvdest bs=262144

This should be the fastest, and guaranteed to copy all the attributes.

The speed improvement doing it this way can be especially dramatic on RAID 5 volumes, where writing small files is much slower than writing large blocks. Minutes instead of hours, in some cases.

Also, the new LV doesn't have to be exactly the same size. The same size *or larger* will do nicely. There will just be wasted space in the LV until you expand the filesystem to match, which should be done after the copy.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

  • Re: LVM David Brodbeck

Reply via email to