Back Up (And Restore) LVM Partitions With LVM Snapshots - Page 3
4 Restore A BackupThis chapter is about restoring the /dev/server1/root volume from the dd image we've created in the previous chapter. Normally you can restore a backup from the same running system if the volume that you want to restore doesn't contain system-critical files. But because the /dev/server1/root volume is the system partition of our machine, we must use a rescue system or Live-CD to restore the backup. The rescue system/Live-CD must support LVM. To restore the /dev/server1/root volume, I boot the system from the Debian Etch Netinstall CD and type in rescue at the boot prompt:
Select your language:
Choose your country:
Choose your keyboard layout:
You can accept the default hostname:
You can also accept the default domain name (which is empty):
Select the backup volume (/dev/server1/backups) as the root file system:
Then select Execute a shell in the installer environment:
Hit Continue:
Now we have a shell:
Run mount and you should see that /dev/server1/backups is mounted on /target. So the dd image of the /dev/server1/root volume should be /target/root.dd. To restore it, we simply run dd if=/target/root.dd of=/dev/server1/root That's it. It can take a few minutes until the task is finished. Afterwards you can remove the Live-CD and boot into the normal system again.
5 Links
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com











print: 
Recent comments
2 hours 52 min ago
4 hours 35 min ago
7 hours 56 sec ago
7 hours 7 min ago
11 hours 41 min ago
13 hours 41 min ago
17 hours 5 min ago
19 hours 11 min ago
19 hours 22 min ago
21 hours 49 min ago