[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

let the Debian-Installer partitioner recognize LVM logical volumes on encrypted RAID 1 partition



Dear list,


I hope this is the right place to ask. If not excuse me and please point
me to the right one.

I changed my mainboard with processor with 64 bit capability. I used the
old hard disks where I installed a Debian 32bit Linux kernel on before,
which works.

My goal is to “reinstall” Debian with a 64bit Linux kernel. But
unfortunately I am getting a problem on the way.

Idea: Just reinstall Debian amd64 and tell the Debian-Installer to keep
the old /home and /var partition.

Problem: I am using a RAID 1 setup with an encrypted partition with LVM
volumes on it and I do not get the Debian-Installer to recognize it.


Now I will elaborate a bit. You can find a little more information at
[1].

# Setup

All the following steps were done with the Debian-Installer some time
ago.

• two hard disks (SATA) /dev/sda and /dev/sdb
• Create two partitions sd[ab]0 and sd[ab]1 for boot and data. Each of
them were put into a RAID 1 array.
• Encrypt md1 with LUKS.
• Setup up LVM with logical volumes for /home, /var, /usr, ….
• Back then I had to use the work around in [2], but this seems
unrelated.

# Steps to reinstall Debian with amd64 Linux kernel

1. prepare and boot from USB stick with
debian-testing-amd64-businesscard.iso
2. do steps until detect hard disks and than partition hard disk
3. raid devices and LVM volumes are not shown
4. open a shell and do some steps according to [3]

# anna-install crypto-modules cryptsetup-udeb
# depmod -a
# modprobe dm-mod
# modprobe aes

I think after this step the Raid devices are shown in the partitioning
menu of the Debian-Installer.

# cryptsetup luksOpen /dev/md1 md1_crypt

This succeeds. From here on I do not know what to do. I try

# lvdisplay
File descriptor 3 left open
File descriptor 4 left open
File descriptor 5 left open
File descriptor 6 left open

I did not find anything useful searching the Internet. On [4] it says to
use lsof, but this is not available in the Debian-Installer.

# mount
rootfs on / type rootfs (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
tmpfs on /dev type tmpfs (rw,mode=755)
none on /dev/pts type devpts (rw,mode=600)
/dev/sdb1 on /hd-media type vfat
(ro,fmask=0022,dmask=0022,allow_utime=177777,codepage=cp437,iocharset=utf8)


Can you give me a hint and can I provide more information?


Thanks a lot,

Paul


[1] https://www.debian-administration.org/users/PaulePanter/weblog/3
[2] http://wiki.debian.org/DebianInstaller/RAIDvsCrypto
[3] http://wiki.debian.org/DebianInstaller/Rescue/Crypto
[4] http://archives.devshed.com/forums/linux-97/lvm-file-descriptor-left-open-snapshot-problems-1201586.html

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Reply to: