{"id":46,"date":"2010-06-03T10:51:48","date_gmt":"2010-06-03T08:51:48","guid":{"rendered":"http:\/\/www.gerst-it.com\/blog\/?p=46"},"modified":"2010-12-30T12:00:38","modified_gmt":"2010-12-30T10:00:38","slug":"live-backup-lvm-domus-mit-snapshots","status":"publish","type":"post","link":"https:\/\/blog.gerst-it.com\/?p=46","title":{"rendered":"Live Backup LVM DomUs mit Snapshots"},"content":{"rendered":"<p><strong>1.<\/strong> Ein Snapshot der DomU Test-VM1 erstellen, die Gr\u00f6\u00dfe sollte mindestens 25% der Original LVM DomU Partition entsprechen<\/p>\n<p><code><em>lvcreate -L20G -s -n Test-VM1-Snapshot \/dev\/xen-vms\/Test-VM1<\/em><\/code><\/p>\n<p><strong>2.<\/strong> Erstellen der\u00a0LVM Partition f\u00fcr das Backup<\/p>\n<p><code><em>lvcreate -n Backup\u00a0 --size 20g xen-vms<br \/>\nmkfs.ext3 \/dev\/xen-vms\/Backup<\/em><\/code><\/p>\n<p><strong>3.<\/strong> Mount Verzeichnis\u00a0f\u00fcr SnapShot der DomU und des Backup erstellen<\/p>\n<p><code><em>mkdir \/mnt\/backup<br \/>\nmkdir \/mnt\/domU<\/em><\/code><\/p>\n<p><strong>4.<\/strong> Mounten der LVM Partitionen Test-VM1-Snapshot und Backup<\/p>\n<p><code><em>mount \/dev\/xen-vms\/Backup \/mnt\/backup\/<br \/>\nmount \/dev\/xen-vms\/Test-VM1-Snapshot \/mnt\/domu\/<\/em><\/code><\/p>\n<p><strong>5.<\/strong> Backup mit <em>tar.gz<\/em>\u00a0erstellen auf LVM Backup<\/p>\n<p><code><em>cd \/mnt\/domU<br \/>\ntar -pczf \/mnt\/backup\/Test-vm1.tar.gz *<\/em><\/code><\/p>\n<p><strong>6.<\/strong> Entfernen der nicht mehr ben\u00f6tigten LVM\u00a0Snapshot Partition<\/p>\n<p><code><em>lvremove \/dev\/xen-vms\/Test-VM1-Snapshot<\/em><\/code><\/p>\n<p><strong>7.<\/strong> <strong><em>Optional:<\/em><\/strong> \u00a0Backup auf Remote Server kopieren<\/p>\n<p><code><em>ssh root@RemoteServer -p ssh-Port\u00a0cat \/Lokales\/Verzeichnis\/Test-vm1.tar.gz &gt; \/Remote\/Server\/Verzeichnis\/Test-vm1.tar.gz<\/em><\/code><\/p>\n<p><strong><em>8.<\/em> <em>Optional:<\/em><\/strong> Backup partition entfernen<\/p>\n<p><code><em>lvremove \/dev\/xen-vms\/Backup<\/em><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Ein Snapshot der DomU Test-VM1 erstellen, die Gr\u00f6\u00dfe sollte mindestens 25% der Original LVM DomU Partition entsprechen lvcreate -L20G -s -n Test-VM1-Snapshot \/dev\/xen-vms\/Test-VM1 2. Erstellen der\u00a0LVM Partition f\u00fcr das Backup lvcreate -n Backup\u00a0 &#8211;size 20g xen-vms mkfs.ext3 \/dev\/xen-vms\/Backup 3. Mount Verzeichnis\u00a0f\u00fcr SnapShot der DomU und des Backup erstellen mkdir \/mnt\/backup mkdir \/mnt\/domU 4. Mounten [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-xen"],"_links":{"self":[{"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46"}],"version-history":[{"count":3,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":48,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions\/48"}],"wp:attachment":[{"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}