Re: [Security-Discuss] [ MDKSA-2006:086 ] - Don't update the kernel on Soft-RAID-Sytems
Juergen Holm <holm-cReBFXHS9TI9HBOmPq+WUkOITlckZahNbaYZWgcc/[email protected]> Sat, 20 May 2006 14:30:20 +0200 (CEST)
| Newsgroups | gmane.linux.mandrake.security.general |
|---|---|
| Message-ID | <Pine.LNX.4.64.0605201411510.1325@Sisko.theorie.physik.uni-goettingen.de> |
On Sat, 20 May 2006, Luca Berra wrote: > On Fri, May 19, 2006 at 01:18:18PM -0300, Luiz Fernando N. Capitulino wrote: >> On Fri, 19 May 2006 13:00:28 +0200 (CEST) >> Juergen Holm <holm-cReBFXHS9TI9HBOmPq+WUkOITlckZahNbaYZWgcc/[email protected]> wrote: >> >> | If you have system with software raid 1 only , don't upgrade to the >> | new kernel. >> | The system will not reboot because of problem with initrd (I think) > > could you please be more specific in describing your problem, so that we > might actually understand it. Sorry. My Config: Data:etc>df Filesystem 1K-blocks Used Available Use% Mounted on /dev/md1 2015440 174268 1738792 10% / /dev/md0 2015440 45504 1867556 3% /boot /dev/md2 2015440 56656 1856404 3% /tmp /dev/md4 2015440 328780 1584280 18% /usr /dev/md3 2015440 141540 1771520 8% /var Data:/tmp>cat /etc/mdadm.conf DEVICE /dev/hda7 /dev/hdc6 /dev/hda5 /dev/hdc5 /dev/hda9 /dev/hdc8 /dev/hda8 /dev/hdc7 /dev/hda1 /dev/hdc1 DEVICE /dev/hda10 /dev/hdc9 ARRAY /dev/md1 devices=/dev/hda5,/dev/hdc5 spare-group=global ARRAY /dev/md2 devices=/dev/hda7,/dev/hdc6 spare-group=global ARRAY /dev/md4 devices=/dev/hda9,/dev/hdc8 spare-group=global ARRAY /dev/md3 devices=/dev/hda8,/dev/hdc7 spare-group=global ARRAY /dev/md0 level=raid1 devices=/dev/hda1,/dev/hdc1,/dev/hda10,/dev/hdc9 spares=2 spare-group=global MAILADDR root-cReBFXHS9TI9HBOmPq+WUkOITlckZahNbaYZWgcc/[email protected] The init file in initrd-2.6.12-21mdksmp.img: #!/bin/nash echo "Loading raid1.ko module" insmod /lib/raid1.ko echo "Loading jbd.ko module" insmod /lib/jbd.ko echo "Loading ext3.ko module" insmod /lib/ext3.ko echo Mounting /proc filesystem mount -t proc /proc /proc echo Mounting sysfs mount -t sysfs none /sys echo Creating device files mountdev size=32M,mode=0755 echo -n /sbin/hotplug > /proc/sys/kernel/hotplug mkdir /dev/.udevdb mkdevices /dev echo Activating md devices mknod /dev/md1 b 9 1 mknod /dev/md/1 b 9 1 mdassemble echo Creating root device mkrootdev /dev/root resume echo Mounting root filesystem /dev/root mount -o defaults --ro -t ext3 /dev/root /sysroot echo Switching to new root switchroot --movedev /sysroot echo Initrd finished The linuxrc file in initrd-2.6.12-18mdksmp.img: (Comment: there are no SATA drives installed!) #!/bin/nash echo "Loading raid1.ko module" insmod /lib/raid1.ko echo "Loading scsi_mod.ko module" insmod /lib/scsi_mod.ko echo "Loading libata.ko module" insmod /lib/libata.ko echo "Loading sata_sil.ko module" insmod /lib/sata_sil.ko echo "Loading sd_mod.ko module" insmod /lib/sd_mod.ko echo "Loading jbd.ko module" insmod /lib/jbd.ko echo "Loading ext3.ko module" insmod /lib/ext3.ko echo Mounting /proc filesystem mount -t proc /proc /proc echo Mounting sysfs mount -t sysfs none /sys echo Creating device files mountdev size=32M,mode=0755 echo -n /sbin/hotplug > /proc/sys/kernel/hotplug mkdir /dev/.udevdb mkdevices /dev echo Activating md devices mknod /dev/md1 b 9 1 mknod /dev/md/1 b 9 1 mdassemble echo Creating root device mkrootdev /dev/root echo Mounting root filesystem /dev/root mount -o defaults --ro -t ext3 /dev/root /sysroot echo 0x0100 > /proc/sys/kernel/real-root-dev pivot_root /sysroot /sysroot/initrd umount /initrd/sys umount /initrd/proc echo Initrd finished The etc/mdadm.conf on both initrd's are identical: DEVICE partitions ARRAY /dev/md1 level=raid1 num-devices=2 UUID=4973a5d8:166afadc:7b19d182:742a1f1c This is my Bootlog (screenshots + ocr, is there an easier way?): PCI Probing PCI hardware PCI Probing PCI hardware (bus 00) PCI Ignoring BAR0-3 of IDE controller 0000:00 1f.1 PCI Transparent bridge - 0000:00:1e.0 PCI Using IRQ router PIIX/ICH [8086/25a1] at 0000:00 1f.0 PCI >APIC IRQ transform: 0000:00:1d.0[A] -> IRQ 16 PCI >APIC IRQ transform: 0000:00:1d.1[B] -> IRQ 19 PCI >APIC IRQ transform: 0000:00:1d.7[D] -> IRQ 23 PCI >APIC IRQ transform: 0000:00:1f.1[A] -> IRQ 16 PCI >APIC IRQ transform: 0000:00:1f.3[B] -> IRQ 17 PCI >APIC IRQ transform: 0000:O1:01.0[A] -> IRQ 18 PCI >APIC IRQ transform: 0000:03:01.0[A] -> IRQ 21 PCI >APIC IRQ transform: 0000:03:02.0[A] -> IRQ 17 PCI >APIC IRQ transform: 0000:03:03.0[A] -> IRQ 20 apm BIOS version 1.2 Flags 0x07 (Driver version 1.16ac) apm disabled - APM Is not SMP safe. audit Initializing netlink socket (disabled) audit(1148121533.368:0) Initialized highmem bounce pool size 64 pages UFS Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) devfs 2004-01-31 Richard Gooch ([email protected]) devfs boot_options: 0x0 Initializing Cryptographic API isapnp: Scanning for PnP cards isapnp: No Plug & Play device found Real Time Clock Driver v1.12 PNP: No PS/2 controller found Probing ports directly serio: i8042 AUX port at 0x60,Ox64 irq 12 serio: i8042 KBD port at 0x60,Ox64 irq 1 Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports IRQ sharing enabled ttyS1 at I/O Ox3f8 (irq = 4) is a 16550A ttyS2 at I/O Ox3e8 (irq = 4) is a 16550A ttyS3 at I/O Ox2e8 (irq = 3) is a 16550A io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized 16 RAM disks of 32000K size 1024 blocksize pktcdvd v0.2.0a 2004-07-14 Jens Axboe (axboe@suse de) and [email protected] Uniform Multi-Platform E-IDE driver Revision: 8.00alpha2 ide: Assumlng 33MHz system bus speed for PIO modes override with idebus=xx ICH5: IDE controller at PCI slot 0000:00:1f.1 ICH5: chipset revision 2 ICH5: not 100% native mode will probe irqs later ide0: BM-DMA at Oxf000-0xf007, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at Oxf008-0xf00f, BIOS settings: hdc:DMA, hdd:pio hda Maxtor 6Y080L0, ATA DISK drive ide0 at 0x1f0-Ox1f7 Ox3f6 on irq 14 hdc: Maxtor 6Y080L0, ATA DISK drive ide1 at 0x170-0x177 Ox376 on irq 15 hda: max request size 128KiB hda: 160086528 sectors (81964 MB) w/2048KIB Cache, CHS=65535/16/63, UDMA(100) hda: cache flushes supported /dev/ide/host0/bus0/target0/lun0: pl p2 < p5 p6 pl p8 p9 p1O > hdc: max request size 128KiB hdc: 160086528 sectors (81964 MB) w/2048KIB Cache, CHS=65535/16/63, UDMA(100) hdc: cache flushes supported /dev/lde/hostO/busl/targetO/lunO pl p2 < p5 p6 pl p8 p9 > mice: PS/2 mouse device common for all mlce md: md driver 0.90.1 MAX_MD_DEVS=256 MD_SB_DISKS=27 NET: Registered protocol family 2 IP: routing cache hash table of 8192 buckets, 64Kbytes TCP established hash table entrtes 262144 (order: 9, 209ll52 bytes) TCP bind hash table entries 65536 (order: 7, 524288 bytes) TCP: Hash tables configured (established 262144 bind 65536) NET: Registered protocol family 1 Starting balanced_irq Using IPI No-Shortcut mode swsusp: Suspend partition has wrong signature? BIOS EDD facillty v0.16 2004-Jun-25, 2 devices found Freeing unused kernel memory: 288k freed Red Hat nash version 4.2.17mdk starting Loadlng raid1.ko module md: raid1 personality registered as nr 3 Loading jbd.ko module Loading ext3.ko module Mounting /proc fllesystem Mounting sysfs Creatlng device flles Mounting tmpfs on /dev Activating md devices devfs_mk_dev: could not append to parent for md/1 md: md1 stopped input: AT Translated Set 2 keyboard on isa0060/serio0 md bind<hdc5> md bind<hda5> raid1: raid set md1 active with 2 out of 2 mirrors mdadm: /dev/md1 has been started with 2 drives. Creating root device Trying to resume from /dev/hda6 No suspend signature on swap, not resuming Mounting root filesystem /dev/root kjournald starting. Commit interval 5 seconds EXT3-fs: mounted fllesystem with ordered data mode. Switching to new root unmounting old /proc unmounting old /sys input: ImPS/2 Generic Wheel Mouse on isa0060/serio1 INIT: version 2.86 bootlng Setting default font (lat0-sunl6) [ OK ] Mountlng proc fllesystem [ OK ] Mountlng sysfs on /sys [ OK ] usbcore: registered new driver usbfs usbcore: reglstered new driver hub USB Universal Host Controller Interface driver v2.2 uhci_hcd 0000:00:1d.0 UHCI Host Controller uhci_hcd 0000:00:1d.0 new USB bus registered assigned bus number 1 uhci_hcd 0000:00:1d.0 irq 16, io base 0x0000d400 hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected uhci_hcd 0000:00:1d.1 UHCI Host Controller uhci_hcd 0000:00:1d.1 new USB bus registered assigned bus number 2 uhci_hcd 0000:00:1d.1 irq 19, io base 0x0000d000 hub 2-0:1.0 USB hub found hub 2-0:1.0 2 ports detected ehci_hcd 0000:00:1d.7 EHCI Host Controller ehci_hcd 0000:00:1d.7 new USB bus registered assigned bus number 3 ehci_hcd 0000:00:1d.7 irq 23, io mem Oxf5000000 ehci_hcd 0000:00:1d.7 USB 2.0 initialized EHCI 1.00, driver 10 Dec 2004 hub 3-0:1.0: USB hub found hub 3-O:1.0: 4 ports detected ts: Compaq touchscreen protocol output Start udev [ OK ] Welcome to Mandriva Linux 2006.0 Press 'I' to enter interactive startup. Configuring kernel parameters [ OK ] Setting clock (utc): Sat May 20 12:38:51 CEST 2006 [ OK ] Setting hostname Data: [ OK ] Checking root fllesystem /dev/md1: clean 28222/256000 files 51612/511904 blocks [ OK ] Remounting root filesystem in read write mode: [ OK ] Activating swap partitions: [ OK ] Starting up RAID devices: mdadm: error opening /dev/md2: No such file or directoty mdadm: error opening /dev/md4: No such file or directory mdadm: error openlng /dev/md3: No such file or directory mdadm: error openlng /dev/md0: No such file or directory *** An error occurred during the RAID startup *** If It Is critical the boot process will stop *** when trying to mount fllesystems. Else check *** /etc/mdadm conf for obsolete ARRAY entries Checking filesystems fsck.ext3: No such flle or directory /dev/md0: The superblock could not be read or does not describe a correct ext2 fllesystem. If the device is valid and it really contains an ext2 fllesystem (and not swap or ufs or something else) then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device> /dev/md2 The superblock could not be read or does not describe a correct ext2 fllesystem. If the device is valid and it really contains an ext2 fllesystem (and not swap or ufs or something else) then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device> while trying to open /dev/md0 fsck.ext3: No such file or directory while trying to open /dev/md2 fsck.ext3: No such file or directory while trying to open /dev/md4 /dev/md4 18mdk boots fine! I absolutly don't know what's going on! mfg,jh -- ##----------------- IT Physik / Universitaet Goettingen -------------- ## Tel: +49 551 399363 FAX: +49 551 399263 ## Post: Dr. J. A. Holm / Friedrich Hund Platz 1 / 37077 Goettingen ## PGP-Key: http://www.Theorie.Physik.Uni-Goe.de/jh.html ## In case of mail-probs (Anti-SPAM-conf) mail to jholm-2/[email protected] ##------------ Verschtehen Sie, Isch habe garrr kein Wooerd! --------- ____________________________________________________ Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com Join the Club : http://www.mandrivaclub.com ____________________________________________________