[Eisfair] Raid mal wieder (was: [e1] eiskernel 2.10.0 (Status 'stable') verfügbar - 3.2er Kernel für eisfair-1)
Thomas Zweifel
t2fel at gmx.net
Mo Mai 11 15:25:41 CEST 2015
Hallo Thomas
Am 19.04.2015 um 19:46 schrieb Thomas Bork:
> es ist eine Version 2.10.0 von eiskernel mit dem Status 'stable' für
> eisfair-1 verfügbar. Intern wird hierfür der Kernel 3.2.68 aus der
> Kernel-Serie 3.2 verwendet, die zur Zeit als longterm-Variante die
> längst mögliche Unterstützung bietet.
> 1. SMP
Ich bin gerade über etwas merkwürdiges gestolpert:
Mit base: 2.6.0 / eiskernel: 2.8.0 (3.2.54-eisfair-1-SMP) gabs noch
keine Probleme.
Nun mit base: 2.6.2 eiskernel: 2.10.0 (3.2.67-eisfair-1-SMP) tritt
folgendes auf:
sda/sdb sind die Systemlaufwerke, sdc ein Datenlaufwerk.
Nach dem reboot fehlt md5 (metadata 0.90 )
Welcome to eisfair!
base : 2.6.2
eiskernel: 2.10.0 (3.2.67-eisfair-1-SMP)
eis1test # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5]
[raid4] [multipath]
md3 : active raid1 sda3[0] sdb3[1]
3636160 blocks [2/2] [UU]
md2 : active raid1 sda2[0] sdb2[1]
524224 blocks [2/2] [UU]
md1 : active raid1 sda1[0] sdb1[1]
32704 blocks [2/2] [UU]
unused devices: <none>
eis1test # mdadm -As
mdadm: /dev/md5 has been started with 1 drive.
eis1test # mdadm -D /dev/md5
/dev/md5:
Version : 0.90
Creation Time : Mon May 11 14:04:04 2015
Raid Level : raid1
Array Size : 20969408 (20.00 GiB 21.47 GB)
Used Dev Size : 20969408 (20.00 GiB 21.47 GB)
Raid Devices : 1
Total Devices : 1
Preferred Minor : 5
Persistence : Superblock is persistent
Update Time : Mon May 11 14:05:31 2015
State : clean
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : 1d882a20:7789658e:0c74db34:8634b555 (local to host
eis1test)
Events : 0.8
Number Major Minor RaidDevice State
0 8 37 0 active sync /dev/sdc5
eis1test # zcat /boot/initrd.gz > /tmp/initrd/initrd
eis1test # mount -o loop /tmp/initrd/initrd /mnt
eis1test # cat /mnt/etc/mdadm.conf
DEVICE /dev/[sh]d*
ARRAY /dev/md5 UUID=1d882a20:7789658e:0c74db34:8634b555
ARRAY /dev/md1 UUID=82e3bcfb:12a2e7db:c78c3634:8385dcc5
ARRAY /dev/md2 UUID=ea7904af:b9791b3a:00bae62d:7d9283b8
ARRAY /dev/md3 UUID=476067a2:bfa35bcc:6871bf89:dde3f3cc
dmesg:
scsi 2:0:0:0: Direct-Access ATA VBOX HARDDISK 1.0 PQ: 0
ANSI: 5
sd 2:0:0:0: [sdc] 41943040 512-byte logical blocks: (21.4 GB/20.0 GiB)
sd 2:0:0:0: [sdc] Write Protect is off
sd 2:0:0:0: [sdc] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't
support DPO or FUA
sdc: sdc4 < sdc5 >
sd 2:0:0:0: [sdc] Attached SCSI disk
md: md5 stopped.
md: md1 stopped.
md: bind<sdb1>
md: bind<sda1>
bio: create slab <bio-1> at 1
md/raid1:md1: active with 2 out of 2 mirrors
md1: detected capacity change from 0 to 33488896
md: md2 stopped.
md: bind<sdb2>
md: bind<sda2>
md/raid1:md2: active with 2 out of 2 mirrors
md2: detected capacity change from 0 to 536805376
md: md3 stopped.
md: bind<sdb3>
md: bind<sda3>
md/raid1:md3: active with 2 out of 2 mirrors
md3: detected capacity change from 0 to 3723427840
md: md5 stopped.
md3: unknown partition table
kjournald starting. Commit interval 5 seconds
EXT3-fs (md3): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) readonly on device 9:3.
Trying to move old root to /initrd ... /initrd does not exist. Ignored.
Unmounting old root
....
NET: Registered protocol family 10
eth0: no IPv6 routers present
md: md5 stopped.
md: bind<sdc5>
md/raid1:md5: active with 1 out of 1 mirrors
md5: detected capacity change from 0 to 21472673792
md5: unknown partition table
Laut dmesg wird es erkannt, aber nicht gestartet.
Erst beim manuellen assemblen startet es.
Zum vergleich - md5 mit Metadata 1.2
Welcome to eisfair!
base : 2.6.2
eiskernel: 2.10.0 (3.2.67-eisfair-1-SMP)
eis1test # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5]
[raid4] [multipath]
md3 : active raid1 sda3[0] sdb3[1]
3636160 blocks [2/2] [UU]
md2 : active raid1 sda2[0] sdb2[1]
524224 blocks [2/2] [UU]
md1 : active raid1 sda1[0] sdb1[1]
32704 blocks [2/2] [UU]
md5 : active raid1 sdc5[0]
20952960 blocks super 1.2 [1/1] [U]
unused devices: <none>
eis1test # mdadm -D /dev/md5
/dev/md5:
Version : 1.2
Creation Time : Mon May 11 13:54:09 2015
Raid Level : raid1
Array Size : 20952960 (19.98 GiB 21.46 GB)
Used Dev Size : 20952960 (19.98 GiB 21.46 GB)
Raid Devices : 1
Total Devices : 1
Persistence : Superblock is persistent
Update Time : Mon May 11 13:54:47 2015
State : clean
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Name : eis1test:5 (local to host eis1test)
UUID : cfec517d:d5a2e27d:5b9f2e1d:419b9d01
Events : 3
Number Major Minor RaidDevice State
0 8 37 0 active sync /dev/sdc5
dmesg:
scsi 2:0:0:0: Direct-Access ATA VBOX HARDDISK 1.0 PQ: 0
ANSI: 5
sd 2:0:0:0: [sdc] 41943040 512-byte logical blocks: (21.4 GB/20.0 GiB)
sd 2:0:0:0: [sdc] Write Protect is off
sd 2:0:0:0: [sdc] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't
support DPO or FUA
sdc: sdc4 < sdc5 >
sd 2:0:0:0: [sdc] Attached SCSI disk
md: md5 stopped.
md: bind<sdc5>
bio: create slab <bio-1> at 1
md/raid1:md5: active with 1 out of 1 mirrors
md5: detected capacity change from 0 to 21455831040
md: md1 stopped.
md: bind<sdb1>
md: bind<sda1>
md/raid1:md1: active with 2 out of 2 mirrors
md1: detected capacity change from 0 to 33488896
md: md2 stopped.
md: bind<sdb2>
md: bind<sda2>
md/raid1:md2: active with 2 out of 2 mirrors
md2: detected capacity change from 0 to 536805376
md: md3 stopped.
md: bind<sdb3>
md: bind<sda3>
md/raid1:md3: active with 2 out of 2 mirrors
md3: detected capacity change from 0 to 3723427840
md3: unknown partition table
kjournald starting. Commit interval 5 seconds
EXT3-fs (md3): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) readonly on device 9:3.
Trying to move old root to /initrd ... /initrd does not exist. Ignored.
Unmounting old root
Gleiche Konstellation, andere Metadaten - und mdadm startet das md5.
Ein Assemblen (mit 0.90) ausserhalb der initrd funktioniert hingegen:
/etc/init.d/boot:
/bin/mount -n -o remount,ro / 2>/dev/null
if [ $? -eq 0 ]
then
/sbin/mdadm -As
# -C display output with progressbar
FSCK_PROGRESS=''
Welcome to eisfair!
base : 2.6.2
eiskernel: 2.10.0 (3.2.67-eisfair-1-SMP)
eis1test # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5]
[raid4] [multipath]
md5 : active raid1 sdc5[0]
20969408 blocks [1/1] [U]
md3 : active raid1 sda3[0] sdb3[1]
3636160 blocks [2/2] [UU]
md2 : active raid1 sda2[0] sdb2[1]
524224 blocks [2/2] [UU]
md1 : active raid1 sda1[0] sdb1[1]
32704 blocks [2/2] [UU]
unused devices: <none>
dmesg:
md2: detected capacity change from 0 to 536805376
md: md3 stopped.
md: bind<sdb3>
md: bind<sda3>
md/raid1:md3: active with 2 out of 2 mirrors
md3: detected capacity change from 0 to 3723427840
md: md5 stopped.
md3: unknown partition table
kjournald starting. Commit interval 5 seconds
EXT3-fs (md3): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) readonly on device 9:3.
Trying to move old root to /initrd ... /initrd does not exist. Ignored.
Unmounting old root
Trying to free ramdisk memory ... okay
Freeing unused kernel memory: 404k freed
Write protecting the kernel text: 3088k
Write protecting the kernel read-only data: 1040k
md2: unknown partition table
Adding 524220k swap on /dev/md2. Priority:-1 extents:1 across:524220k
md: md5 stopped.
md: bind<sdc5>
md/raid1:md5: active with 1 out of 1 mirrors
md5: detected capacity change from 0 to 21472673792
md1:
EXT3-fs (md3): using internal journal
kjournald starting. Commit interval 5 seconds
EXT3-fs (md1): using internal journal
Egal ob in der /etc/mdadm/mdadm.conf die level= devices= oder der UUID=
Eintrag (wie in der initrd) benutzt wird, startet er das md5 an der Stelle.
Irgendwelche Ideen wo es klemmt?
Gruss Thomas
Mehr Informationen über die Mailingliste Eisfair