auf meinem 64bitigen amd wollte ich endlich mal softraid ausprobieren. der installer (sid-amd64-netinstall) liefert ja schon fast alles was man so braucht.
zunächst mal was vorhanden ist:
2 x sata am a8n-sli, beide am nvidia port
/dev/sda8 und /dev/sdb8 als /dev/md0 auf / gemountet
/dev/sdb9 und /dev/sdb9 als /dev/md1 auf /home gemountet
beim ersten neuboot funzt alles noch tadellos. dann habe ich das system erweitert um gnome bzw. x11. und trotz der wohl funktionierenden initrd habe ich raidtools2 installiert und eine /etc/raidtab erstellt. die sieht dann so aus:
Code: Alles auswählen
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 64
persistent-superblock 1
device /dev/sda8
raid-disk 0
device /dev/sdb8
raid-disk 1
raiddev /dev/md1
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 64
persistent-superblock 1
device /dev/sda9
raid-disk 0
device /dev/sdb9
raid-disk 1
Code: Alles auswählen
root:~# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sda8[0] sdb8[1]
19542976 blocks [2/2] [UU]
unused devices: <none>
Code: Alles auswählen
title Ubuntu AMD64 RAID
root (hd0,7)
kernel (hd0,7)/boot/vmlinuz-2.6.8-9-amd64-k8 root=/dev/md0 ro
initrd (hd0,7)/boot/initrd.img-2.6.8-9-amd64-k8
boot
Code: Alles auswählen
kernel (hd0,7)/boot/vmlinuz-2.6.8-9-amd64-k8 root=/dev/md0 ro md=0,/dev/sda8,/dev/sdb8 md=1,/dev/sda9,/dev/sdb9
um den "ausgangszustand" wieder herzustellen bin ich folgendermaßen vorgegangen:
Code: Alles auswählen
root:~# update-rc.d -f raid2 remove
allerdings, wenn ich kanotix von einer anderen partition boote, kann ich sowohl md0 als auch md1 mounten.
so sah /var/log/messages ursprünglich aus (sorry für den vielen code):
Code: Alles auswählen
Jan 19 21:43:38 localhost kernel: md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
Jan 19 21:43:38 localhost kernel: md: raid1 personality registered as nr 3
Jan 19 21:43:38 localhost kernel: SCSI subsystem initialized
Jan 19 21:43:38 localhost kernel: ACPI: PCI interrupt 0000:00:07.0[A] -> GSI 11 (level, low) -> IRQ 11
Jan 19 21:43:38 localhost kernel: ata1: SATA max UDMA/133 cmd 0x9F0 ctl 0xBF2 bmdma 0xD800 irq 11
Jan 19 21:43:38 localhost kernel: ata2: SATA max UDMA/133 cmd 0x970 ctl 0xB72 bmdma 0xD808 irq 11
Jan 19 21:43:38 localhost kernel: ata1: no device found (phy stat 00000000)
Jan 19 21:43:38 localhost kernel: scsi0 : sata_nv
Jan 19 21:43:38 localhost kernel: ata2: no device found (phy stat 00000000)
Jan 19 21:43:38 localhost kernel: scsi1 : sata_nv
Jan 19 21:43:38 localhost kernel: Using anticipatory io scheduler
Jan 19 21:43:38 localhost kernel: ACPI: PCI interrupt 0000:00:08.0[A] -> GSI 5 (level, low) -> IRQ 5
Jan 19 21:43:38 localhost kernel: ata3: SATA max UDMA/133 cmd 0x9E0 ctl 0xBE2 bmdma 0xC400 irq 5
Jan 19 21:43:38 localhost kernel: ata4: SATA max UDMA/133 cmd 0x960 ctl 0xB62 bmdma 0xC408 irq 5
Jan 19 21:43:38 localhost kernel: nv_sata: Primary device added
Jan 19 21:43:38 localhost kernel: ata3: dev 0 ATA, max UDMA/133, 312581808 sectors: lba48
Jan 19 21:43:38 localhost kernel: ata3: dev 0 configured for UDMA/133
Jan 19 21:43:38 localhost kernel: scsi2 : sata_nv
Jan 19 21:43:38 localhost kernel: nv_sata: Secondary device added
Jan 19 21:43:38 localhost kernel: ata4: dev 0 ATA, max UDMA/133, 312581808 sectors: lba48
Jan 19 21:43:38 localhost kernel: ata4: dev 0 configured for UDMA/133
Jan 19 21:43:38 localhost kernel: scsi3 : sata_nv
Jan 19 21:43:38 localhost kernel: Vendor: ATA Model: ST3160827AS Rev: 3.42
Jan 19 21:43:38 localhost kernel: Type: Direct-Access ANSI SCSI revision: 05
Jan 19 21:43:38 localhost kernel: Vendor: ATA Model: ST3160827AS Rev: 3.42
Jan 19 21:43:38 localhost kernel: Type: Direct-Access ANSI SCSI revision: 05
Jan 19 21:43:38 localhost kernel: SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
Jan 19 21:43:38 localhost kernel: SCSI device sda: drive cache: write back
Jan 19 21:43:38 localhost kernel: /dev/scsi/host2/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 p9 p10 p11 p12 p13 >
Jan 19 21:43:38 localhost kernel: Attached scsi disk sda at scsi2, channel 0, id 0, lun 0
Jan 19 21:43:38 localhost kernel: SCSI device sdb: 312581808 512-byte hdwr sectors (160042 MB)
Jan 19 21:43:38 localhost kernel: SCSI device sdb: drive cache: write back
Jan 19 21:43:38 localhost kernel: /dev/scsi/host3/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 p9 p10 p11 >
Jan 19 21:43:38 localhost kernel: Attached scsi disk sdb at scsi3, channel 0, id 0, lun 0
Jan 19 21:43:38 localhost kernel: md: md0 stopped.
Jan 19 21:43:38 localhost kernel: md: bind<sdb8>
Jan 19 21:43:38 localhost kernel: md: bind<sda8>
Jan 19 21:43:38 localhost kernel: raid1: raid set md0 active with 2 out of 2 mirrors
Jan 19 21:43:38 localhost kernel: SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
Jan 19 21:43:38 localhost kernel: SGI XFS Quota Management subsystem
Jan 19 21:43:38 localhost kernel: md: syncing RAID array md0
Jan 19 21:43:38 localhost kernel: md: minimum _guaranteed_ reconstruction speed: 1000 KB/sec/disc.
Jan 19 21:43:38 localhost kernel: md: using maximum available idle IO bandwith (but not more than 200000 KB/sec) for reconstruction.
Jan 19 21:43:38 localhost kernel: md: using 128k window, over a total of 19542976 blocks.
Jan 19 21:43:38 localhost kernel: md: resuming recovery of md0 from checkpoint.
Jan 19 21:43:38 localhost kernel: XFS mounting filesystem md0
Jan 19 21:43:38 localhost kernel: Adding 1574328k swap on /dev/sda6. Priority:-1 extents:1
Jan 19 21:43:38 localhost kernel: Adding 1574328k swap on /dev/sdb6. Priority:-2 extents:1
Jan 19 21:43:38 localhost kernel: Real Time Clock Driver v1.12
Jan 19 21:43:38 localhost kernel: Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
Jan 19 21:43:38 localhost kernel: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Jan 19 21:43:38 localhost kernel: hda: _NEC DVD_RW ND-3500AG, ATAPI CD/DVD-ROM drive
Jan 19 21:43:38 localhost kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Jan 19 21:43:38 localhost kernel: hda: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache
Jan 19 21:43:38 localhost kernel: Uniform CD-ROM driver Revision: 3.20
Jan 19 21:43:38 localhost kernel: sbp2: $Rev: 1219 $ Ben Collins <bcollins@debian.org>
Jan 19 21:43:38 localhost kernel: Capability LSM initialized
Jan 19 21:43:38 localhost kernel: md: md1 stopped.
Jan 19 21:43:38 localhost kernel: md: bind<sdb9>
Jan 19 21:43:38 localhost kernel: md: bind<sda9>
Jan 19 21:43:38 localhost kernel: raid1: raid set md1 active with 2 out of 2 mirrors
Jan 19 21:43:38 localhost kernel: md: delaying resync of md1 until md0 has finished resync (they share one or more physical units)
Jan 19 21:43:38 localhost kernel: XFS mounting filesystem md1
Jan 19 21:43:38 localhost kernel: ohci1394: $Rev: 1223 $ Ben Collins <bcollins@debian.org>
Jan 19 21:43:38 localhost kernel: ACPI: PCI interrupt 0000:05:0b.0[A] -> GSI 3 (level, low) -> IRQ 3
Jan 19 21:43:38 localhost kernel: ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[3] MMIO=[d2008000-d20087ff] Max Packet=[2048]
Jan 19 21:43:38 localhost kernel: ACPI: PCI interrupt 0000:05:0c.0[A] -> GSI 3 (level, low) -> IRQ 3
Code: Alles auswählen
Jan 23 13:29:54 localhost kernel: md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
Jan 23 13:29:54 localhost kernel: md: raid1 personality registered as nr 3
Jan 23 13:29:54 localhost kernel: SCSI subsystem initialized
Jan 23 13:29:54 localhost kernel: ACPI: PCI interrupt 0000:00:07.0[A] -> GSI 11 (level, low) -> IRQ 11
Jan 23 13:29:54 localhost kernel: ata1: SATA max UDMA/133 cmd 0x9F0 ctl 0xBF2 bmdma 0xD800 irq 11
Jan 23 13:29:54 localhost kernel: ata2: SATA max UDMA/133 cmd 0x970 ctl 0xB72 bmdma 0xD808 irq 11
Jan 23 13:29:54 localhost kernel: ata1: no device found (phy stat 00000000)
Jan 23 13:29:54 localhost kernel: scsi0 : sata_nv
Jan 23 13:29:54 localhost kernel: ata2: no device found (phy stat 00000000)
Jan 23 13:29:54 localhost kernel: scsi1 : sata_nv
Jan 23 13:29:54 localhost kernel: Using anticipatory io scheduler
Jan 23 13:29:54 localhost kernel: ACPI: PCI interrupt 0000:00:08.0[A] -> GSI 5 (level, low) -> IRQ 5
Jan 23 13:29:54 localhost kernel: ata3: SATA max UDMA/133 cmd 0x9E0 ctl 0xBE2 bmdma 0xC400 irq 5
Jan 23 13:29:54 localhost kernel: ata4: SATA max UDMA/133 cmd 0x960 ctl 0xB62 bmdma 0xC408 irq 5
Jan 23 13:29:54 localhost kernel: nv_sata: Primary device added
Jan 23 13:29:54 localhost kernel: ata3: dev 0 ATA, max UDMA/133, 312581808 sectors: lba48
Jan 23 13:29:54 localhost kernel: ata3: dev 0 configured for UDMA/133
Jan 23 13:29:54 localhost kernel: scsi2 : sata_nv
Jan 23 13:29:54 localhost kernel: nv_sata: Secondary device added
Jan 23 13:29:54 localhost kernel: ata4: dev 0 ATA, max UDMA/133, 312581808 sectors: lba48
Jan 23 13:29:54 localhost kernel: ata4: dev 0 configured for UDMA/133
Jan 23 13:29:54 localhost kernel: scsi3 : sata_nv
Jan 23 13:29:54 localhost kernel: Vendor: ATA Model: ST3160827AS Rev: 3.42
Jan 23 13:29:54 localhost kernel: Type: Direct-Access ANSI SCSI revision: 05
Jan 23 13:29:54 localhost kernel: Vendor: ATA Model: ST3160827AS Rev: 3.42
Jan 23 13:29:54 localhost kernel: Type: Direct-Access ANSI SCSI revision: 05
Jan 23 13:29:54 localhost kernel: SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
Jan 23 13:29:54 localhost kernel: SCSI device sda: drive cache: write back
Jan 23 13:29:54 localhost kernel: /dev/scsi/host2/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 p9 p10 p11 p12 p13 >
Jan 23 13:29:54 localhost kernel: Attached scsi disk sda at scsi2, channel 0, id 0, lun 0
Jan 23 13:29:54 localhost kernel: SCSI device sdb: 312581808 512-byte hdwr sectors (160042 MB)
Jan 23 13:29:54 localhost kernel: SCSI device sdb: drive cache: write back
Jan 23 13:29:54 localhost kernel: /dev/scsi/host3/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 p9 p10 p11 >
Jan 23 13:29:54 localhost kernel: Attached scsi disk sdb at scsi3, channel 0, id 0, lun 0
Jan 23 13:29:54 localhost kernel: md: md0 stopped.
Jan 23 13:29:54 localhost kernel: md: bind<sdb8>
Jan 23 13:29:54 localhost kernel: md: bind<sda8>
Jan 23 13:29:54 localhost kernel: raid1: raid set md0 active with 2 out of 2 mirrors
Jan 23 13:29:54 localhost kernel: SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
Jan 23 13:29:54 localhost kernel: SGI XFS Quota Management subsystem
Jan 23 13:29:54 localhost kernel: XFS mounting filesystem md0
Jan 23 13:29:54 localhost kernel: Adding 1574328k swap on /dev/sda6. Priority:-1 extents:1
Jan 23 13:29:54 localhost kernel: Adding 1574328k swap on /dev/sdb6. Priority:-2 extents:1
Jan 23 13:29:54 localhost kernel: Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
Jan 23 13:29:54 localhost kernel: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Jan 23 13:29:54 localhost kernel: hda: _NEC DVD_RW ND-3500AG, ATAPI CD/DVD-ROM drive
Jan 23 13:29:54 localhost kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Jan 23 13:29:54 localhost kernel: hda: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache
Jan 23 13:29:54 localhost kernel: Uniform CD-ROM driver Revision: 3.20
Jan 23 13:29:54 localhost kernel: sbp2: $Rev: 1219 $ Ben Collins <bcollins@debian.org>
Jan 23 13:29:54 localhost kernel: Capability LSM initialized
Jan 23 13:29:54 localhost kernel: NTFS driver 2.1.15 [Flags: R/O MODULE].
Jan 23 13:29:54 localhost kernel: NTFS volume version 3.1.
Jan 23 13:29:54 localhost kernel: NTFS volume version 3.1.
Code: Alles auswählen
Jan 22 13:56:08 sundownerAMD64 kernel: md: Autodetecting RAID arrays.
Jan 22 13:56:08 sundownerAMD64 kernel: md: autorun ...
Jan 22 13:56:08 sundownerAMD64 kernel: md: considering sdb9 ...
Jan 22 13:56:08 sundownerAMD64 kernel: md: adding sdb9 ...
Jan 22 13:56:08 sundownerAMD64 kernel: md: sdb8 has different UUID to sdb9
Jan 22 13:56:08 sundownerAMD64 kernel: md: adding sda9 ...
Jan 22 13:56:08 sundownerAMD64 kernel: md: sda8 has different UUID to sdb9
Jan 22 13:56:08 sundownerAMD64 kernel: md: created md1
Jan 22 13:56:08 sundownerAMD64 kernel: md: bind<sda9>
Jan 22 13:56:08 sundownerAMD64 kernel: md: bind<sdb9>
Jan 22 13:56:08 sundownerAMD64 kernel: md: running: <sdb9><sda9>
Jan 22 13:56:08 sundownerAMD64 kernel: raid1: raid set md1 active with 2 out of 2 mirrors
Jan 22 13:56:08 sundownerAMD64 kernel: md: considering sdb8 ...
Jan 22 13:56:08 sundownerAMD64 kernel: md: adding sdb8 ...
Jan 22 13:56:08 sundownerAMD64 kernel: md: adding sda8 ...
Jan 22 13:56:08 sundownerAMD64 kernel: md: created md0
Jan 22 13:56:08 sundownerAMD64 kernel: md: bind<sda8>
Jan 22 13:56:08 sundownerAMD64 kernel: md: bind<sdb8>
Jan 22 13:56:08 sundownerAMD64 kernel: md: running: <sdb8><sda8>
Jan 22 13:56:08 sundownerAMD64 kernel: raid1: raid set md0 active with 2 out of 2 mirrors
Jan 22 13:56:08 sundownerAMD64 kernel: md: ... autorun DONE.
Code: Alles auswählen
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/md0 / xfs defaults 0 1
/dev/md1 /home xfs defaults 0 2
/dev/sda6 none swap sw 0 0
/dev/sdb6 none swap sw 0 0
/dev/hda /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
wer jetzt noch den rettenden einfall hat steht in meiner schuld.
gruß, jens-uwe