[linux-lvm] Restoring method Snapshot to Orginal Volume

Antony MARTINEAU Antony.MARTINEAU at lippi.fr
Wed Jun 4 07:38:34 UTC 2008


Hello, 
I am using LVM2 whith XEN 
All of my DomU disks are one or more logical volume 
For exemple /dev/vg0/lv1 

For the moment when i want do a domU backup, i take a snapshot, do an 
image (dd gzip) of the snapshot, delete the snapshot and restor the dd 
image on the original logical volume. 
so 

Backuping 
lvcreate -s -L500M -nlv1.snap /dev/vg0/lv1 
dd if=/dev/vg0/lv1.snap bs=16M | gzip | dd of=/lv1.gz bs=16M 
lvremove /dev/vg0/lv1.snap 

Restoring 
gzip -dc /lv1.gz | dd of=/dev/vg0/lv1 

This method is very weight and not useful 

ideally 
dd if=/dev/vg0/lv1.snap of=/dev/vg0/lv1 should be perfect but it is 
impossible because when restoring snapshot on the original volume, the 
snapshot continue to increase until to become fully and inactive 

Is there a solution to deactive the cow (copy and write)for during the 
restoration about snapshot to original volume ? 




MARTINEAU
Antony 
Service informatique 
Assistant informatique 
LIPPI Management 
La Fouillouse
16440 Mouthiers sur Boheme 
Tel.: 05.45.67.34.35
Courriel: antony.martineau at lippi.fr
http://www.lippi.fr 








Ce message et toutes les pieces jointes sont etablis a l'attention 
exclusive de ses destinataires et sont strictement confidentiels. Pour en 
savoir plus cliquer ici

This message and any attachments are confidential to the ordinary user of 
the e-mail address to which it was addressed and may also be privileged. 
More information

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20080604/aae9ae97/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 5552 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20080604/aae9ae97/attachment.gif>


More information about the linux-lvm mailing list