HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   LVM Backup/Restore without Live/Rescue CD? (http://www.howtoforge.com/forums/showthread.php?t=36735)

domocor 18th June 2009 16:56

LVM Backup/Restore without Live/Rescue CD?
 

I've been reading the excellent howto on creating an LVM snapshot and backing it up, but I have a couple of questions.

Has anyone tried using fsarchive? Any benefits to that?

Has anyone tried to restore from within a boot init shell?

I would like to have a restore option in the GRUB config menu and do the restore from a boot init shell script. I created a new boot selection in the GRUB config file and added the kernel option to boot into a shell

______ kernel ... init=/bin/sh

I think I should be able to do the restore from here, but the LVM tools aren't fully installed, so I'm not sure how to mount/unmount LVM partitions. The lvm command doesn't seem fully functional. The commands /sbin/lvm and /sbin/lvm.static are available, but I'm not sure what to do with them.

Maybe there are some LVM tools I need to add to a custom initrd.img?

Any insights into doing this would be helpful.

Also, when I backup the / root system partition, can I exclude the /boot partition from the archive? /boot is a separate partition that gets mounted into /.

My HDD structure is like this

_____ /boot _____________ 200 MB
_____ /snapshot _______ 10000 MB
_____ /backup _________ 10000 MB
_____ /LVMGroup00
__________ /swap ________ 200 MB
__________ / __________ 10000 MB
__________ /DATA _____ 960000 MB

Thanks,

-Jerry
(Anyone know how to put tabs or spaces into these posts?!)

falko 19th June 2009 16:33

Quote:

Originally Posted by domocor (Post 195155)
Has anyone tried using fsarchive? Any benefits to that?

No, I haven't tried it.

Quote:

Originally Posted by domocor (Post 195155)
I would like to have a restore option in the GRUB config menu and do the restore from a boot init shell script. I created a new boot selection in the GRUB config file and added the kernel option to boot into a shell

______ kernel ... init=/bin/sh

I think I should be able to do the restore from here, but the LVM tools aren't fully installed, so I'm not sure how to mount/unmount LVM partitions. The lvm command doesn't seem fully functional. The commands /sbin/lvm and /sbin/lvm.static are available, but I'm not sure what to do with them.

Maybe you need to start LVM first:
Code:

/etc/init.d/lvm start


All times are GMT +2. The time now is 13:57.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.