Project

General

Profile

Bug #8272

Luks Header are not saved

Added by varac about 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Elevated
Assignee:
Category:
sys info handler
Target version:
-
Start date:
11/18/2014
Due date:
% Done:

0%

QA Check:
Info Needed

Description

Hi,

i have a luks partition /dev/sda5, which is not detected:


$ cat /etc/backup.d/30_conf.sys 
# This configuration file was auto-generated by the Puppet configuration
# management system.  Any changes you make to this file will be overwritten
# the next time Puppet runs.  Please make configuration changes to this
# service in Puppet.

parentdir = /var/backups
packagesfile = /var/backups/dpkg-selections.txt
partitionsfile = /var/backups/partitions.__star__.txt
hardwarefile = /var/backups/hardware.txt

packages = yes
partitions = yes
dosfdisk = yes
hardware = yes
dohwinfo = no
luksheaders = yes
lvm = yes

$ backupninja --now --run /etc/backup.d/30_conf.sys 
Debug: check_perms /etc/backup.d
Debug: perms: drwxr-x---
Debug: gperm: r-x
Debug: wperm: ---
Debug: check_perms /etc/backup.d/30_conf.sys
Debug: perms: -rw-------
Debug: gperm: ---
Debug: wperm: ---
Info: >>>> starting action /etc/backup.d/30_conf.sys (because of --now)
Debug: yes
Debug: executing handler in locked section controlled by /var/lock/backupninja/_etc_backup.d_30_conf.sys
Debug: Debian detected
Debug: /usr/bin/dpkg  --get-selections * > /var/backups/dpkg-selections.txt
Debug: /usr/bin/debconf-get-selections > /var/backups/debconfsel.txt

Getting information about the kernel.

Getting disk and filesystem information.

Debug: /sbin/sfdisk will try to backup partition tables for device /dev/sda
Debug: /sbin/sfdisk  -d /dev/sda > /var/backups/partitions.sda.txt 2>/dev/null
Debug: /sbin/sfdisk will try to backup partition tables for device /dev/mapper/sda5_crypt
Debug: /sbin/sfdisk  -d /dev/mapper/sda5_crypt > /var/backups/partitions.mapper-sda5_crypt.txt 2>/dev/null
Debug: /sbin/sfdisk will try to backup partition tables for device /dev/mapper/xubuntu--vg-root
Debug: /sbin/sfdisk  -d /dev/mapper/xubuntu--vg-root > /var/backups/partitions.mapper-xubuntu--vg-root.txt 2>/dev/null
Debug: /sbin/sfdisk will try to backup partition tables for device /dev/mapper/xubuntu--vg-home
Debug: /sbin/sfdisk  -d /dev/mapper/xubuntu--vg-home > /var/backups/partitions.mapper-xubuntu--vg-home.txt 2>/dev/null
Debug: /sbin/sfdisk will try to backup partition tables for device /dev/mapper/xubuntu--vg-swap
Debug: /sbin/sfdisk  -d /dev/mapper/xubuntu--vg-swap > /var/backups/partitions.mapper-xubuntu--vg-swap.txt 2>/dev/null
Debug: /sbin/cryptsetup isLuks /dev/sda
Debug: /sbin/cryptsetup isLuks /dev/mapper/sda5_crypt
Debug: /sbin/cryptsetup isLuks /dev/mapper/xubuntu--vg-root
Debug: /sbin/cryptsetup isLuks /dev/mapper/xubuntu--vg-home
Debug: /sbin/cryptsetup isLuks /dev/mapper/xubuntu--vg-swap
Debug: Let's try to gather the list of LVM volume groups
Debug: /sbin/vgs --options vg_name --noheadings | /bin/sed 's/^[ ]*//' | /bin/sed 's/[ ]*$//' | tr '
' ' '
File descriptor 200 (/run/lock/backupninja/_etc_backup.d_30_conf.sys) leaked on vgs invocation. Parent PID 23545: /bin/bash
Debug: Let's try to backup LVM metadata for detected volume groups: xubuntu-vg
Debug: /sbin/vgcfgbackup --file "/var/backups/lvm"/'%s' xubuntu-vg
File descriptor 200 (/run/lock/backupninja/_etc_backup.d_30_conf.sys) leaked on vgcfgbackup invocation. Parent PID 23550: /bin/bash
Debug: Volume group "xubuntu-vg" successfully backed up.
Info: LVM metadata was saved to /var/backups/lvm for volume groups: xubuntu-vg
Info: <<<< finished action /etc/backup.d/30_conf.sys: SUCCESS
Info: FINISHED: 1 actions run. 0 fatal. 0 error. 0 warning.

History

#1 Updated by intrigeri almost 3 years ago

  • Assignee set to varac
  • Priority changed from High to Elevated
  • QA Check set to Info Needed
  • What version of backupninja are you running?
  • Can you reproduce this bug with current Git? I see "Fix LUKS header backup to properly detect partitions" in the (unreleased) 1.0.2 changelog.

Also available in: Atom PDF