Hello all, Having received 2 identical hard drives, and trying to be a bit paranoid, I am trying to setup a system with the following characteristics: /dev/hda1 + /dev/hdc1 -> RAID1 --> /boot /dev/hda2 + /dev/hdc2 -> RAID1 + crypto + LVM -> / + swap + reserve
I am using the following CD: [Debian GNU/Linux testing _Lenny_ - Official Snapshot i386 NETINST Binary-1 20070629-09:05]: ~ # mount none on /proc type proc (rw) tmpfs on /dev type tmpfs (rw) sysfs on /sys type sysfs (rw) tmpfs on /dev type tmpfs (rw) none on /dev/pts type devpts (rw) tmpfs on /.dev type tmpfs (rw) /dev/mapper/magelan-main.root on /target type ext3 (rw,data=ordered) /dev/md/0 on /target/boot type ext3 (rw,data=ordered) # ls -l /dev/mapper/ crw-rw---- 1 root root 10, 63 Jul 3 18:16 control brw------- 1 root root 253, 2 Jul 3 18:21 magelan-main.root brw------- 1 root root 253, 1 Jul 3 18:21 magelan-main.swap1 brw------- 1 root root 253, 0 Jul 3 18:17 md1_crypt ~ # ls -l /dev/md* brw-rw---- 1 root 6 9, 0 Jul 3 18:15 /dev/md0 brw-rw---- 1 root 6 9, 1 Jul 3 18:15 /dev/md1 /dev/md: brw-rw---- 1 root root 9, 0 Jul 3 18:21 0 brw-rw---- 1 root root 9, 1 Jul 3 18:16 1 ~ # lvdisplay File descriptor 3 left open File descriptor 4 left open File descriptor 5 left open File descriptor 6 left open --- Logical volume --- LV Name /dev/magelan/main.swap1 VG Name magelan LV UUID ew6B01-XWD0-7dKB-zfp6-Tx6B-uc1w-Wvxw7v LV Write Access read/write LV Status available # open 1 LV Size 512.00 MB Current LE 128 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:1 --- Logical volume --- LV Name /dev/magelan/main.root VG Name magelan LV UUID l2dyGV-eSSx-zuW5-WH0f-1svr-N5zZ-UJZPXX LV Write Access read/write LV Status available # open 1 LV Size 1.50 GB Current LE 384 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:2 ~ # fdisk -l /dev/hda Disk /dev/hda: 30.0 GB, 30020272128 bytes 255 heads, 63 sectors/track, 3649 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 1 24 192748+ fd Linux raid autodetect /dev/hda2 25 3649 29117812+ fd Linux raid autodetect ~ # fdisk -l /dev/hdc Disk /dev/hdc: 30.0 GB, 30020272128 bytes 255 heads, 63 sectors/track, 3649 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdc1 1 24 192748+ fd Linux raid autodetect /dev/hdc2 25 3649 29117812+ fd Linux raid autodetect ~ # cat /proc/mdstat Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] md1 : active raid1 hdc2[1] hda2[0] 29117696 blocks [2/2] [UU] md0 : active raid1 hdc1[1] hda1[0] 192640 blocks [2/2] [UU] unused devices: <none> At the end I am following the steps explained here: http://wiki.debian.org/DebianInstaller/RAIDvsCrypto ~ # cat >> /target/etc/crypttab magelan-main.root /dev/md1 none luks ^D ~ # cat /target/etc/crypttab # <target name> <source device> <key file> <options> magelan-main.root /dev/md1 none luks ~ # chroot /target/ sh-3.1# mount /proc/ sh-3.1# update-initramfs -u update-initramfs: Generating /boot/initrd.img-2.6.18-4-686 W: mdadm: /etc/mdadm/mdadm.conf defines no arrays. !*!*!*!*!*!*!? sh-3.1# umount /proc/ sh-3.1# exit The whole installation process seems to go quite well, the problem arises, when I try to boot the new installation: root (hd0,0) Filesystem type is ext2fs, partition type 0xfd kernel /vmlinuz-2.6.18-4-686 root=/dev/mapper/magelan-main.root ro console=tty 0 console=ttyS0,115200n8 [Linux-bzImage, setup=0x1e00, size=0x131b02] initrd /initrd.img-2.6.18-4-686 [Linux-initrd @ 0x1fa20000, 0x5cf742 bytes] savedefault Linux version 2.6.18-4-686 (Debian 2.6.18.dfsg.1-12) ([EMAIL PROTECTED]) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Mon Mar 26 17:17:36 UTC 2007 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 0000000020000000 (usable) BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved) 0MB HIGHMEM available. 512MB LOWMEM available. DMI 2.1 present. ACPI: PM-Timer IO Port: 0xf808 Allocating PCI resources starting at 30000000 (gap: 20000000:dffc0000) Detected 696.994 MHz processor. Built 1 zonelists. Total pages: 131072 Kernel command line: root=/dev/mapper/magelan-main.root ro console=tty0 console=ttyS0,115200n8 Local APIC disabled by BIOS -- you can enable it with "lapic" Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0 PID hash table entries: 4096 (order: 12, 16384 bytes) Console: colour VGA+ 80x25 Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) Memory: 510640k/524288k available (1544k kernel code, 13140k reserved, 577k data, 196k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. Calibrating delay using timer specific routine.. 1395.02 BogoMIPS (lpj=2790040) Security Framework v1.0.0 initialized SELinux: Disabled at boot. Capability LSM initialized Mount-cache hash table entries: 512 CPU: L1 I cache: 16K, L1 D cache: 16K CPU: L2 cache: 256K Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. Compat vDSO mapped to ffffe000. Checking 'hlt' instruction... OK. SMP alternatives: switching to UP code Freeing SMP alternatives: 16k freed ACPI: Core revision 20060707 ACPI: setting ELCR to 0200 (from 0800) CPU0: Intel Pentium III (Coppermine) stepping 03 SMP motherboard not detected. Local APIC not detected. Using dummy APIC emulation. Brought up 1 CPUs migration_cost=0 checking if image is initramfs... it is Freeing initrd memory: 5949k freed NET: Registered protocol family 16 ACPI: bus type pci registered PCI: PCI BIOS revision 2.10 entry at 0xedb20, last bus=1 PCI: Using configuration type 1 Setting up standard PCI resources ACPI: Interpreter enabled ACPI: Using PIC for interrupt routing ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 11) *0, disabled. ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 10 *11) ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 10 *11) ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 10 *11) ACPI: PCI Root Bridge [PCI0] (0000:00) ACPI: Assume root bridge [\_SB_.PCI0] bus is 0 PCI: Firmware left 0000:00:0e.0 e100 interrupts enabled, disabling * Found PM-Timer Bug on the chipset. Due to workarounds for a bug, * this clock source is slow. Consider trying other clock sources PCI quirk: region f800-f83f claimed by PIIX4 ACPI PCI quirk: region fc00-fc0f claimed by PIIX4 SMB Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI init pnp: PnP ACPI: found 14 devices PnPBIOS: Disabled by ACPI PNP PCI: Using ACPI for IRQ routing PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report pnp: 00:0b: ioport range 0x15c-0x15d has been reserved pnp: 00:0c: ioport range 0xf800-0xf81f could not be reserved pnp: 00:0c: ioport range 0xf820-0xf83f has been reserved pnp: 00:0c: ioport range 0xfc00-0xfc1f could not be reserved PCI: Bridge: 0000:00:01.0 IO window: disabled. MEM window: 40000000-408fffff PREFETCH window: 42000000-43ffffff NET: Registered protocol family 2 IP route cache hash table entries: 16384 (order: 4, 65536 bytes) TCP established hash table entries: 65536 (order: 7, 524288 bytes) TCP bind hash table entries: 32768 (order: 6, 262144 bytes) TCP: Hash tables configured (established 65536 bind 32768) TCP reno registered audit: initializing netlink socket (disabled) audit(1183562464.524:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) Limiting direct PCI/PCI transfers. isapnp: Scanning for PnP cards... isapnp: No Plug & Play device found Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a NS16550A 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 00:09: ttyS1 at I/O 0x2f8 (irq = 3) is a NS16550A RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize PNP: PS/2 Controller [PNP0303:KBD,PNP0f0e:PS2M] at 0x60,0x64 irq 1,12 serio: i8042 AUX port at 0x60,0x64 irq 12 serio: i8042 KBD port at 0x60,0x64 irq 1 mice: PS/2 mouse device common for all mice TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 NET: Registered protocol family 8 NET: Registered protocol family 20 Using IPI No-Shortcut mode ACPI: (supports S0<6>Time: tsc clocksource has been installed. S1 S4 S5) Freeing unused kernel memory: 196k freed Loading, please wait... input: AT Translated Set 2 keyboard as /class/input/input0 Begin: Loading essential drivers... ... Done. Begin: Running /scripts/init-premount ... ACPI: CPU0 (power states: C1[C1] C2[C2]) ACPI: Processor [CPU0] (supports 8 throttling states) e100: Intel(R) PRO/100 Network Driver, 3.5.10-k2-NAPI e100: Copyright(c) 1999-2005 Intel Corporation ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11 ACPI: PCI Interrupt 0000:00:0e.0[A] -> Link [LNKB] -> GSI 11 (level, low) -> IRQ 11 e100: eth0: e100_probe: addr 0x40a00000, irq 11, MAC addr 00:03:47:B1:7A:21 Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx PIIX4: IDE controller at PCI slot 0000:00:14.1 PIIX4: chipset revision 1 PIIX4: not 100% native mode: will probe irqs later ide0: BM-DMA at 0x10a0-0x10a7, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0x10a8-0x10af, BIOS settings: hdc:DMA, hdd:DMA usbcore: registered new driver usbfs usbcore: registered new driver hub USB Universal Host Controller Interface driver v3.0 Linux Tulip driver version 1.1.13-NAPI (May 11, 2002) hda: QUANTUM FIREBALLP LM30, ATA DISK drive Time: acpi_pm clocksource has been installed. ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 hdc: QUANTUM FIREBALLP LM30, ATA DISK drive hdd: Compaq CRD-8402B, ATAPI CD/DVD-ROM drive ide1 at 0x170-0x177,0x376 on irq 15 ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11 ACPI: PCI Interrupt 0000:00:14.2[D] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11 uhci_hcd 0000:00:14.2: UHCI Host Controller uhci_hcd 0000:00:14.2: new USB bus registered, assigned bus number 1 uhci_hcd 0000:00:14.2: irq 11, io base 0x00001080 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11 ACPI: PCI Interrupt 0000:00:0f.0[A] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11 tulip0: EEPROM default media type Autosense. tulip0: Index #0 - Media 10baseT (#0) described by a 21142 Serial PHY (2) block. tulip0: Index #1 - Media 10baseT-FDX (#4) described by a 21142 Serial PHY (2) block. tulip0: Index #2 - Media 100baseTx (#3) described by a 21143 SYM PHY (4) block. tulip0: Index #3 - Media 100baseTx-FDX (#5) described by a 21143 SYM PHY (4) block. tulip0: Index #4 - Media 100baseTx (#3) described by a 21143 reset method (5) block. eth1: Digital DS21143 Tulip rev 48 at 00011400, 00:00:C5:50:96:6C, IRQ 11. ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11 tulip1: EEPROM default media type Autosense. tulip1: Index #0 - Media 10baseT (#0) described by a 21142 Serial PHY (2) block. tulip1: Index #1 - Media 10baseT-FDX (#4) described by a 21142 Serial PHY (2) block. tulip1: Index #2 - Media 100baseTx (#3) described by a 21143 SYM PHY (4) block. tulip1: Index #3 - Media 100baseTx-FDX (#5) described by a 21143 SYM PHY (4) block. tulip1: Index #4 - Media 100baseTx (#3) described by a 21143 reset method (5) block. eth2: Digital DS21143 Tulip rev 48 at 00011480, 00:00:C5:50:32:86, IRQ 11. hda: max request size: 128KiB hda: 58633344 sectors (30020 MB) w/1900KiB Cache, CHS=58168/16/63, UDMA(33) hda: cache flushes not supported hda: hda1 hda2 hdc: max request size: 128KiB hdc: 58633344 sectors (30020 MB) w/1900KiB Cache, CHS=58168/16/63, UDMA(33) hdc: cache flushes not supported hdc: hdc1 hdc2 hdd: ATAPI 48X CD-ROM drive, 128kB Cache, DMA Uniform CD-ROM driver Revision: 3.20 floppy0: no floppy controllers found Done. Begin: Mounting root file system... ... Begin: Running /scripts/local-top ... Begin: Loading MD modules ... md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27 md: bitmap version 4.39 md: raid1 personality registered for level 1 Success: loaded module raid1. Done. Begin: Assembling all MD arrays ... md: md0 stopped. md: bind<hdc1> md: bind<hda1> raid1: raid set md0 active with 2 out of 2 mirrors mdadm: /dev/md0 has been startedmd: md1 stopped. with 2 drives. md: bind<hdc2> md: bind<hda2> raid1: raid set md1 active with 2 out of 2 mirrors mdadm: /dev/md1 has been started with 2 drives. Success: assembled all arrays. Done. Begin: Executing udevtrigger again ... Done. device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: [EMAIL PROTECTED] Volume group "magelan" not found !*!*!*!*!*!*!? Volume group "magelan" not found !*!*!*!*!*!*!? Setting up cryptographic volume magelan-main.root (based on /dev/md1) Enter LUKS passphrase: floppy0: no floppy controllers found key slot 0 unlocked. Command successful. cryptsetup: lvm fs found but no lvm configured !*!*!*!*!*!*!? Done. Begin: Running /scripts/local-premount ... Done. mount: Mounting /dev/mapper/magelan-main.root on /root failed: No such device !*!*!*!*!*!*!? Begin: Running /scripts/local-bottom ... Done. Done. Begin: Running /scripts/init-bottom ... mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory Done. mount: Mounting /sys on /root/sys failed: No such file or directory mount: Mounting /proc on /root/proc failed: No such file or directory Target filesystem doesn't have /sbin/init BusyBox v1.1.3 (Debian 1:1.1.3-4) Built-in shell (ash) Enter 'help' for a list of built-in commands. /bin/sh: can't access tty; job control turned off (initramfs) ls -l /dev/mapper/ crw-rw---- 1 0 0 10, 63 Jul 4 15:21 control brw-rw---- 1 0 6 253, 0 Jul 4 15:21 magelan-main.root (initramfs) mount /dev/mapper/magelan-main.root /root mount: Mounting /dev/mapper/magelan-main.root on /root failed: Invalid argument (initramfs) vgchange -a y magelan 2 logical volume(s) in volume group "magelan" now active (initramfs) ls -l /dev/mapper/ crw-rw---- 1 0 0 10, 63 Jul 4 15:21 control brw-rw---- 1 0 6 253, 0 Jul 4 15:21 magelan-main.root brw-rw---- 1 0 6 253, 1 Jul 4 15:23 magelan-main.swap1 (initramfs) mount /dev/mapper/magelan-main.root /root/ mount: Mounting /dev/mapper/magelan-main.root on /root/ failed: Device or resource busy (initramfs) cat /proc/mdstat Personalities : [raid1] md1 : active(auto-read-only) raid1 hda2[0] hdc2[1] 29117696 blocks [2/2] [UU] md0 : active(auto-read-only) raid1 hda1[0] hdc1[1] 192640 blocks [2/2] [UU] unused devices: <none> (initramfs) cat /proc/crypto name : sha256 driver : sha256-generic module : sha256 priority : 0 type : digest blocksize : 64 digestsize : 32 name : aes driver : aes-generic module : aes priority : 100 type : cipher blocksize : 16 min keysize : 16 max keysize : 32 name : md5 driver : md5-generic module : kernel priority : 0 type : digest blocksize : 64 digestsize : 16 (initramfs) cat /proc/cmdline root=/dev/mapper/magelan-main.root ro console=tty0 console=ttyS0,115200n8 (initramfs) cat /proc/partitions major minor #blocks name 3 0 29316672 hda 3 1 192748 hda1 3 2 29117812 hda2 22 0 29316672 hdc 22 1 192748 hdc1 22 2 29117812 hdc2 9 0 192640 md0 9 1 29117696 md1 253 0 29116668 dm-0 253 1 524288 dm-1 Thank you for any help... tom -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]