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
Red Hat Virtual Experience - a free virtual event. Dec. 9th











print: 
Recent comments
6 hours 54 min ago
12 hours 42 min ago
14 hours 33 min ago
16 hours 18 min ago
20 hours 8 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 6 hours ago
1 day 11 hours ago
1 day 17 hours ago