how to restore backup from an LVM Guest OS on KVM Lucid
I have a Ubuntu 64 bit 10.04 instance running.KVM is used for virtualization.
4 Guest Operating Systems are running on it. I created 4 lvms after installing the Host OS. I have a volume group nintendo which have four lvms as Code:
lvscan These things were taken care via virt-manager when I installed the guest OS. So when I took backup I did not took backup of swap paritions. I have the complete directory structure from lvm1 which I took the backup. If I have to replace one of the lvm with the original backup then is just copying the complete directory structure going to work. Or there is some elegant way to do this? |
it's quite unclear what you're doing here really, you want to know how to restore a backup of one LVM device? Well if that's the case then KVM has nothign to do with any of this, and you simply have a boring block device in the LVM LV, the contents of which you can dd in and out as often as you desire. Obviously the KVM instance should be shut down throughout changes, but it's fairly simple stuff there. Swap should have no relevance in any of this. You shouldn't need swap in a vm, as I understand it you should allocate as much memory ass you see fit and KVM will swap out the physical host memory to host based swap if need be, but either way a swap partition would be inside the LV, so just more binary data when looking at it at the LVM level.
|
Quote:
I got the following error when I tried to boot from the backup on USB Code:
Traceback (most recent call last): snapshot in some location.This mounted directory I copied on a USB via rsync and I am trying to boot this. |
All times are GMT -5. The time now is 04:10 AM. |