* [linux-lvm] Restoring method Snapshot to Orginal Volume
@ 2008-05-29 8:00 Antony MARTINEAU
0 siblings, 0 replies; 4+ messages in thread
From: Antony MARTINEAU @ 2008-05-29 8:00 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 1211 bytes --]
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 ?
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
[-- Attachment #2: Type: text/html, Size: 2462 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [linux-lvm] Restoring method Snapshot to Orginal Volume
@ 2008-06-04 7:38 Antony MARTINEAU
2008-06-04 11:45 ` Tomasz Chmielewski
2008-06-04 11:45 ` Tomasz Chmielewski
0 siblings, 2 replies; 4+ messages in thread
From: Antony MARTINEAU @ 2008-06-04 7:38 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1.1: Type: text/plain, Size: 1430 bytes --]
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@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
[-- Attachment #1.2: Type: text/html, Size: 3603 bytes --]
[-- Attachment #2: Type: image/gif, Size: 5552 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Restoring method Snapshot to Orginal Volume
2008-06-04 7:38 [linux-lvm] Restoring method Snapshot to Orginal Volume Antony MARTINEAU
@ 2008-06-04 11:45 ` Tomasz Chmielewski
2008-06-04 11:45 ` Tomasz Chmielewski
1 sibling, 0 replies; 4+ messages in thread
From: Tomasz Chmielewski @ 2008-06-04 11:45 UTC (permalink / raw)
To: LVM general discussion and development
Antony MARTINEAU schrieb:
(...)
> 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
Increase your snapshot size then.
> Is there a solution to deactive the cow (copy and write)for during the
> restoration about snapshot to original volume ?
See the "ANNOUNCE: an experimental implementation of snapshot merging"
thread.
--
Tomasz Chmielewski
http://wpkg.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Restoring method Snapshot to Orginal Volume
2008-06-04 7:38 [linux-lvm] Restoring method Snapshot to Orginal Volume Antony MARTINEAU
2008-06-04 11:45 ` Tomasz Chmielewski
@ 2008-06-04 11:45 ` Tomasz Chmielewski
1 sibling, 0 replies; 4+ messages in thread
From: Tomasz Chmielewski @ 2008-06-04 11:45 UTC (permalink / raw)
To: LVM general discussion and development
Antony MARTINEAU schrieb:
(...)
> 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
Increase your snapshot size then.
> Is there a solution to deactive the cow (copy and write)for during the
> restoration about snapshot to original volume ?
See the "ANNOUNCE: an experimental implementation of snapshot merging"
thread.
--
Tomasz Chmielewski
http://wpkg.org
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-06-04 11:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-04 7:38 [linux-lvm] Restoring method Snapshot to Orginal Volume Antony MARTINEAU
2008-06-04 11:45 ` Tomasz Chmielewski
2008-06-04 11:45 ` Tomasz Chmielewski
-- strict thread matches above, loose matches on Subject: below --
2008-05-29 8:00 Antony MARTINEAU
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.