[CentOS] How do you backup a LVM LV?

Alain Spineux aspineux at gmail.com
Thu Dec 13 23:07:44 UTC 2007


On Dec 13, 2007 12:05 AM, Christian Nygaard <christiannygaard at gmail.com> wrote:
> I have a virtual machine in a Xen LV, that I would like to backup from hostA
> to hostB
> because hostA is software broken. How do I copy and recreate that LV on
> hostB?

Create an identicaly sized LV on machine B.
Use lvdisplay to get the size.
Then using ssh and dd :

from hostA :

# dd if=/dev/yourVG/yourLV  | ssh hostB dd of=/dev/yourVGB/yourLVB


Regards


>
> Greets,
> Chris
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>



-- 
Alain Spineux
aspineux gmail com
May the sources be with you



More information about the CentOS mailing list