Re: How to 'copy' a volume?

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

 



David Robinson wrote:
I find 'dd' is the simplest way of doing this. Unmount the volume, create a new logical volume of equal or greater size, then 'dd' from one to the other:

lvcreate -L 500G -n clone volgroup00
dd if=/dev/volgroup00/original of=/dev/volgroup/clone

Hmmm... I think it didn't work as expected. I brought down the VM and made sure that no LVM volumes were mounted, then:

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

-erich

_______________________________________________
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