[CentOS] HowTo copy a Logical Volume to another LV
Jim Bartus
jbartus at advance.net
Fri Oct 14 19:05:50 UTC 2005
Haven't actually tried it, but how about just a
dd if=/dev/vg00/lv00 of=/dev/vg00/lv01
Assuming both are unmounted/unchanging while you do it.
-jim
Jesse Waters wrote:
> hello all,
>
> Hoping for some help on copying Logical Volumes.
>
> I would like to copy an existing LV to a newly formed LV.
>
> I don't want to do a snapshot of an existing LV.
>
> Only way I've seen is to mount the to LV and:
> mount /dev/vg00/lv00 /mnt/orig
> mount /dev/vg00/lv01 /mnt/copy
>
> cd /mnt/orig
> tar cf - ./ |(cd /mnt/copy; tar xf - )
>
> Is there a LV tool to do this?
> Or an option used with lvcreate, such as --autobackup?
> Or maybe pvmove, but that seems more for moving To LV from PV or vesa versa?
>
> Thanks in advance,
>
> Jesse Waters
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
More information about the CentOS
mailing list