Re: How to 'copy' a volume?

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

 



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@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.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux