Re: Sichern einer DomU

Peter Schiefer <[email protected]>
Newsgroups spline.eisxen
Organization spline
Message-ID <[email protected]>
Hallo Peter,

Am Sat, 05 Mar 2011 15:21:57 +0100 schrieb Peter Schauder:

> Wie gesagt: angepeiltes Ziel ist es, eine DomU im aktuellen Zustand zu
> sichern und gegebenenfalls zurückzuspielen oder eine DomU zu klonen.

ich arbeite hier mit snapshots der LVMs (dazu ist aber etwas Platz im LVM
nötig)
zur Anregung ein Auszug aus meinem Script

lvcreate_mount ()
{
    xm pause ${domu}
    lvcreate -L2G -s -n snap_${domu} /dev/vg/${domu}
    xm unpause ${domu}
    mount /dev/vg/snap_${domu} /mnt
    cd /mnt
}

lvremove_umount ()
{
    cd ..
    umount /mnt
    lvremove -f /dev/vg/snap_${domu}
}

domu=eisfair-1
lvcreate_mount
tar czf /backup/eisfair-1.tgz .
lvremove_mount


an /backup habe ich hier eine externe USB-Platte gemounted

Statt tar könnte man auch z.b. rsync einsetzen

Gruß Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.