LVM Backup/Restore without Live/Rescue CD?

Discussion in 'HOWTO-Related Questions' started by domocor, Jun 18, 2009.

  1. domocor

    domocor New Member

    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


    (Anyone know how to put tabs or spaces into these posts?!)
    Last edited: Jun 18, 2009
  2. falko

    falko Super Moderator ISPConfig Developer

    No, I haven't tried it.

    Maybe you need to start LVM first:
    /etc/init.d/lvm start 

Share This Page