[pkg-cryptsetup-devel] Bug#549870: cryptsetup: Command failed: /dev/vg0/services_data_backup_snapshot is not a LUKS partition

Stuart Pook debian50 at pook.it
Mon Oct 5 21:45:36 UTC 2009


Package: cryptsetup
Version: 2:1.0.7-2
Severity: normal

cryptsetup luksOpen will no longer open my snapshot devices. I see

: root; lvcreate --size 256M --snapshot --name services_data_backup_snapshot /dev/vg0/services_data
  Logical volume "services_data_backup_snapshot" created
: root; cryptsetup luksOpen /dev/vg0/services_data_backup_snapshot services_data_backup_unlocked --non-exclusive --readonly --key-file=/tmp/xxx
Command failed: /dev/vg0/services_data_backup_snapshot is not a LUKS partition

: root; lvremove --force /dev/vg0/services_data_backup_snapshot
  Logical volume "services_data_backup_snapshot" successfully removed
: root; cryptsetup luksOpen /dev/vg0/services_data FOO --key-file=/tmp/xxx --non-exclusive --readonly
key slot 1 unlocked.
Command successful.
: root; cryptsetup remove FOO

I make the snapshot and luksOpen it in my backup script which I haven't changed for a while. What I did do was an apt-get upgrade. I have two similar partitions that I backup in the same way and get the same error. One of these partitions may be a copy of the other.

If I can luksOpen the partition why can I not luksOpen the snapshot?

cryptsetup 2:1.0.6-7 doesnt work either

: root; apt-get  -t stable --reinstall  install cryptsetup/stable
dpkg: warning: downgrading cryptsetup from 2:1.0.7-2 to 2:1.0.6-7.
Setting up cryptsetup (2:1.0.6-7) ...
: root; lvcreate --size 256M --snapshot --name services_data_backup_snapshot /dev/vg0/services_data
  Logical volume "services_data_backup_snapshot" created
: root; cryptsetup luksOpen /dev/vg0/services_data_backup_snapshot services_data_backup_unlocked  --key-file=/tmp/xxx
Command failed: Can not access device
: root; ls -lL  /dev/vg0/services_data_backup_snapshot
brw-rw---- 1 root disk 254, 54 2009-10-05 23:40 /dev/vg0/services_data_backup_snapshot

wierd

Stuart

-- Package-specific info:
-- /proc/cmdline
root=/dev/mapper/vg0-root32 ro 

-- /etc/crypttab
archive		/dev/mapper/vg0-archive	none		luks,noauto
swap	/dev/sda3	/dev/random	swap,cipher=aes-cbc-essiv:sha256,size=128,hash=sha256,noearly

-- /etc/fstab
# /etc/fstab: static file system information.
#
# <file system>	<mount point>	<type>		<options>	<dump>	<pass>
LABEL=root32	/		ext3	defaults	0 1
LABEL=boot32	/boot		ext3	nodev,nosuid	0 2
UUID=d905e4c9-5920-499b-811d-3bef799a191c	/disks/boot64		ext3	ro,nodev,nosuid	0 2
/dev/mapper/vg0-root64	/disks/root64	ext3	ro,nosuid,nodev	0	2
/dev/mapper/swap	none		swap		sw,pri=20
/dev/mapper/var32	/var		auto		nodev,nosuid 0 2
#
proc		/proc		proc	defaults
tmpfs		/tmp		tmpfs	defaults
tmpfs		/var/tmp	tmpfs	size=96m
#
/dev/fd0	/floppy		vfat	user,noauto
/home/stuart/tmp/image.iso	/disks/image	iso9660	loop,ro,user,noauto
/tmp/image.iso	/disks/tmpimage	iso9660	loop,ro,user,noauto

/dev/dvd-backups /dvd-backups iso9660 auto,nosuid,nodev

/dev/mapper/vg0-email_root1 /disks/email_root1 ext3 noauto,nosuid,nodev,ro
/dev/mapper/vg0-email_root_snapshot1 /disks/email_root_snapshot1 ext3 noauto,nosuid,nodev,ro
/dev/mapper/email_ROOT1 /disks/email_ROOT1 ext3 noauto,nosuid,nodev,ro
/dev/mapper/email_ROOT_snapshot1 /disks/email_ROOT_snapshot1 ext3 noauto,nosuid,nodev,ro
/dev/mapper/vg0-asterisk_root1 /disks/asterisk_root1 ext3 noauto,nosuid,nodev,ro
/dev/mapper/vg0-asterisk_root_snapshot1 /disks/asterisk_root_snapshot1 ext3 noauto,nosuid,nodev,ro
/dev/mapper/asterisk_ROOT1 /disks/asterisk_ROOT1 ext3 noauto,nosuid,nodev,ro
/dev/mapper/asterisk_ROOT_snapshot1 /disks/asterisk_ROOT_snapshot1 ext3 noauto,nosuid,nodev,ro
/dev/mapper/services_ROOT1 /disks/services_ROOT1 ext3 noauto,nosuid,nodev,ro
/dev/mapper/services_ROOT_snapshot1 /disks/services_ROOT_snapshot1 ext3 noauto,nosuid,nodev,ro
/dev/mapper/vg0-cleartext /disks/cleartext auto nodev,nosuid

-- lsmod
Module                  Size  Used by
sco                     8832  2 
bnep                   10860  2 
rfcomm                 30368  4 
l2cap                  18120  16 bnep,rfcomm
tun                    11208  6 
binfmt_misc             7120  1 
kvm_intel              39744  9 
kvm                   138608  1 kvm_intel
acpi_cpufreq            7640  0 
cpufreq_conservative     6256  0 
cpufreq_userspace       2768  0 
cpufreq_stats           3520  0 
cpufreq_powersave       1292  0 
bridge                 39968  0 
stp                     2112  1 bridge
ip6t_LOG                4604  1 
nf_conntrack_ipv6      11616  2 
ipt_REJECT              2496  1 
xt_limit                2020  10 
nf_conntrack_ipv4      11928  3 
nf_defrag_ipv4          1664  1 nf_conntrack_ipv4
xt_state                1768  5 
nf_conntrack           57924  3 nf_conntrack_ipv6,nf_conntrack_ipv4,xt_state
xt_comment              1280  2 
ts_bm                   1964  1 
xt_string               1748  1 
xt_length               1476  4 
xt_tcpudp               2508  23 
xt_physdev              1980  13 
ipt_LOG                 4540  3 
ip6table_filter         3084  1 
ip6_tables             11316  2 ip6t_LOG,ip6table_filter
iptable_filter          2956  1 
ip_tables              10188  1 iptable_filter
x_tables               14108  12 ip6t_LOG,ipt_REJECT,xt_limit,xt_state,xt_comment,xt_string,xt_length,xt_tcpudp,xt_physdev,ipt_LOG,ip6_tables,ip_tables
ext4                  197196  1 
jbd2                   50156  1 ext4
crc16                   1760  1 ext4
isofs                  27592  1 
fuse                   47752  1 
nls_utf8                1488  0 
nls_cp437               5320  0 
vfat                    8628  0 
fat                    41452  1 vfat
nls_base                6416  5 isofs,nls_utf8,nls_cp437,vfat,fat
ext2                   54120  0 
usb_storage            48472  0 
usbhid                 31568  0 
hid                    34528  1 usbhid
snd_usb_audio          72088  0 
snd_usb_lib            13528  1 snd_usb_audio
sha256_generic         11216  0 
aes_i586                8092  34 
aes_generic            27436  1 aes_i586
cbc                     3012  17 
dm_crypt               11092  17 
dm_snapshot            21604  15 
dm_mirror              12580  0 
dm_region_hash         10668  1 dm_mirror
dm_log                  8464  2 dm_mirror,dm_region_hash
coretemp                5176  0 
it87                   17712  0 
hwmon_vid               2480  1 it87
snd_hda_codec_realtek   178472  1 
snd_hda_intel          22192  0 
snd_hda_codec          63580  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               6120  2 snd_usb_audio,snd_hda_codec
snd_mixer_oss          12368  0 
snd_pcm                62420  3 snd_usb_audio,snd_hda_intel,snd_hda_codec
snd_seq_midi            5688  0 
snd_rawmidi            18596  2 snd_usb_lib,snd_seq_midi
snd_seq_midi_event      6212  1 snd_seq_midi
snd_seq                42436  2 snd_seq_midi,snd_seq_midi_event
snd_timer              17436  2 snd_pcm,snd_seq
snd_seq_device          6136  3 snd_seq_midi,snd_rawmidi,snd_seq
pcspkr                  2104  0 
btusb                  10276  2 
snd                    49060  11 snd_usb_audio,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_mixer_oss,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
i2c_i801                8564  0 
serio_raw               4560  0 
i2c_core               20844  1 i2c_i801
bluetooth              47060  9 sco,bnep,rfcomm,l2cap,btusb
evdev                   8028  17 
processor              34504  1 acpi_cpufreq
soundcore               6184  1 snd
button                  5060  0 
parport_pc             22420  0 
parport                31144  1 parport_pc
snd_page_alloc          8180  2 snd_hda_intel,snd_pcm
ext3                  107172  11 
jbd                    41036  1 ext3
mbcache                 6924  3 ext4,ext2,ext3
dm_mod                 49992  138 dm_crypt,dm_snapshot,dm_mirror,dm_log
sg                     20296  0 
ide_cd_mod             24484  1 
sd_mod                 28748  7 
crc_t10dif              1632  1 sd_mod
sr_mod                 13264  1 
cdrom                  30316  2 ide_cd_mod,sr_mod
ata_generic             4340  0 
ide_pci_generic         3632  0 
pdc202xx_new            4920  1 
ide_core               88100  3 ide_cd_mod,ide_pci_generic,pdc202xx_new
uhci_hcd               19132  0 
pata_jmicron            2812  2 
r8169                  27692  0 
ahci                   30068  4 
libata                150904  3 ata_generic,pata_jmicron,ahci
scsi_mod              131800  5 usb_storage,sg,sd_mod,sr_mod,libata
mii                     4664  1 r8169
ehci_hcd               29680  0 
usbcore               126004  9 usb_storage,usbhid,snd_usb_audio,snd_usb_lib,btusb,uhci_hcd,ehci_hcd
intel_agp              22900  0 
agpgart                30836  1 intel_agp
thermal                12580  0 
fan                     4044  0 
thermal_sys            13140  3 processor,thermal,fan


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cryptsetup depends on:
ii  dmsetup                      2:1.02.38-1 The Linux Kernel Device Mapper use
ii  libc6                        2.9-27      GNU C Library: Shared libraries
ii  libdevmapper1.02.1           2:1.02.38-1 The Linux Kernel Device Mapper use
ii  libpopt0                     1.14-4      lib for parsing cmdline parameters
ii  libuuid1                     2.16.1-3    Universally Unique ID library

cryptsetup recommends no packages.

Versions of packages cryptsetup suggests:
ii  dosfstools                    3.0.5-1    utilities for making and checking 
ii  initramfs-tools [linux-initra 0.93.4     tools for generating an initramfs
ii  udev                          146-3      /dev/ and hotplug management daemo

-- debconf-show failed





More information about the pkg-cryptsetup-devel mailing list