Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #202615

Re: Install & restore backup: what if I use LVM?

From Reco <recoverym4n@enotuniq.net>
Newsgroups linux.debian.user
Subject Re: Install & restore backup: what if I use LVM?
Date 2018-11-19 17:10 +0100
Message-ID <wVUhz-4Sh-5@gated-at.bofh.it> (permalink)
References <wVKUV-6Ad-5@gated-at.bofh.it> <wVQ4h-22S-1@gated-at.bofh.it> <wVTOy-4rl-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Nov 19, 2018 at 04:31:45PM +0100, solitone wrote:
> 
> > On 19 Nov 2018, at 12:35, Jonathan Dowland <jmtd@debian.org> wrote:
> > 
> > On Mon, Nov 19, 2018 at 07:01:07AM +0100, solitone wrote:
> >> When I was playing with my disk's partition table I messed it up and
> >> lost everything. It was a dual boot system with macOS and Debian.
> >> 
> >> Thanks to the back2l utility I have a full backup of Debian. Now I
> >> would reinstall it and recover all the backed up files. However, I
> >> didn’t use LVM and now I would. In this case, would the adjustments
> >> needed from the original configuration be difficult?
> > 
> > This rather depends on how back2l functions. I can't find a reference to
> > it in the Debian package repositories. Can you point us at a URI that
> > describes it?
> 
> It simply results in a backup of the filesystem archived in a tarball.
> Once I reinstall Debian, I can restore the original configuration
> pulling in the original version of my files from that tarball. But
> this would work if the configuration were the same. If I install with
> LVM something would be different in terms of configuration, so some
> original config files wouldn’t be right, and I’d need some manual
> adjustement. The point is: how much?

LVM requires certain kernel modules and hooks to be present in
initramfs.
If your current installation lacks them, I suggest you to install lvm2
before the backup to save yourself the hassle of regenerating initramfs
after the restore.

You'll definitely need to adjust /etc/fstab, most likely
/etc/default/grub, and to update the bootloader.

Also, since it's you're using backup2l with tar backend, you'll need to
do something to restore all those capabilities extended attributes. A
hint here is:

grep setcap /var/lib/dpkg/info/*

Reco

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Install & restore backup: what if I use LVM? solitone <solitone@mail.com> - 2018-11-19 07:10 +0100
  Re: Install & restore backup: what if I use LVM? Jonathan Dowland <jmtd@debian.org> - 2018-11-19 12:40 +0100
    Re: Install & restore backup: what if I use LVM? solitone <solitone@mail.com> - 2018-11-19 16:40 +0100
      Re: Install & restore backup: what if I use LVM? Reco <recoverym4n@enotuniq.net> - 2018-11-19 17:10 +0100
        Re: Install & restore backup: what if I use LVM? solitone <solitone@mail.com> - 2018-11-19 17:50 +0100
  Re: Install & restore backup: what if I use LVM? solitone <solitone@mail.com> - 2018-11-19 16:40 +0100
    Re: Install & restore backup: what if I use LVM? Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-11-20 00:30 +0100
      Re: Install & restore backup: what if I use LVM? Johann Spies <johann.spies@gmail.com> - 2018-11-20 07:30 +0100
        Re: Install & restore backup: what if I use LVM? Jonathan Dowland <jmtd@debian.org> - 2018-11-20 11:40 +0100
          Re: Install & restore backup: what if I use LVM? Reco <recoverym4n@enotuniq.net> - 2018-11-20 11:50 +0100
        Re: Install & restore backup: what if I use LVM? Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-11-20 22:50 +0100
  Re: Install & restore backup: what if I use LVM? Andy Smith <andy@strugglers.net> - 2018-11-19 22:00 +0100

csiph-web