[linux-lvm] How to 'copy' a volume?
Stuart D. Gathman
stuart at bmsi.com
Fri Jan 4 16:30:07 UTC 2008
On Fri, 4 Jan 2008, Erich Weiler wrote:
> # lvcreate -L 500G -n clone volgroup00
> # dd if=/dev/volgroup00/original of=/dev/volgroup00/clone
> The machine then had a kernel panic (I think). I'm remote so I'm not
> sure, but I'll be going in soon to check on it. Not a critical system
> so no big deal. I'll let everyone one what I see at the console.
Could be very slow. On one of my systems, a blocksize of 300k is optimal.
The default block size is usually 512 bytes.
# dd if=/dev/volgroup00/original of=/dev/volgroup00/clone bs=300k
Stuart D. Gathman <stuart at bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
More information about the linux-lvm