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

Re: Software RAID



Bernd Schubert wrote:
In jedem Fall ist es aber besser das mdadm zu verwenden, da die alten
raid-tools nicht mehr geflegt werden und ziemlich veraltet sind. Das mdadm
wird dagegen ständig weiterentwickelt.

Gesagt getan. Da installier ich doch mal mdadm und gucke mal was das so sagt. Und da sagt mir das doch glatt Schwachsinn ?

host:~# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5] [multipath]
read_ahead 1024 sectors
md3 : active raid0 scsi/host0/bus0/target3/lun0/part2[1] scsi/host0/bus0/target2/lun0/part2[0]
      13731712 blocks 32k chunks

md0 : active raid1 scsi/host0/bus0/target1/lun0/part1[0] scsi/host0/bus0/target0/lun0/part1[1]
      52096 blocks [2/2] [UU]

md1 : active raid1 scsi/host0/bus0/target1/lun0/part3[0] scsi/host0/bus0/target0/lun0/part3[1]
      7862208 blocks [2/2] [UU]

md2 : active raid1 scsi/host0/bus0/target7/lun0/part1[0] scsi/host0/bus0/target6/lun0/part1[1]
      17920896 blocks [2/2] [UU]

unused devices: <none>



Also laut mdstat ist alles OK, oder ? Mache ich jetzt mdadm -D, dann sagt das aber was anderes!

host:~# mdadm -D /dev/md3
/dev/md3:
        Version : 00.90.00
  Creation Time : Mon Mar  1 23:34:34 2004
     Raid Level : raid0
     Array Size : 13731712 (13.09 GiB 14.06 GB)
     Raid Disks : 2
    Total Disks : 2
Preferred Minor : 3
    Persistance : Superblock is persistant

    Update Time : Sun Apr 18 00:15:33 2004
          State : dirty, no-errors
  Active Drives : 2
 Working Drives : 2
  Failed Drives : 0
   Spare Drives : 0

     Chunk Size : 32K

    Number   Major   Minor   RaidDisk   State
       0       8       34        0      active sync   /dev/sdc2
       1       8       50        1      active sync   /dev/sdd2
           UUID : 1ad7198d:18de7560:7fa23ec9:e5d1a844


Was mich hier zunächst stutzig macht ist

State : dirty, no-errors

Was ist denn hier jetzt mit dirty gemeint ?

md3 stimmt aber so erstmal mit mdstat überein! Bei RAID-Level 1 wendet sich das Blatt jetzt aber. Bei allen anderen Arrays mit _RAID1_ stimmt die Ausgabe von mdadm nämlich nicht mehr. Hier mal examplarisch md2:


host:~# mdadm -D /dev/md2
/dev/md2:
        Version : 00.90.00
  Creation Time : Thu Nov 13 16:48:13 2003
     Raid Level : raid1
     Array Size : 17920896 (17.09 GiB 18.35 GB)
    Device Size : 17920896 (17.09 GiB 18.35 GB)
     Raid Disks : 2
    Total Disks : 3
Preferred Minor : 2
    Persistance : Superblock is persistant

    Update Time : Sun Apr 18 02:15:16 2004
          State : dirty, no-errors
  Active Drives : 2
 Working Drives : 2
  Failed Drives : 1
   Spare Drives : 0


    Number   Major   Minor   RaidDisk   State
       0       8       81        0      active sync   /dev/sdf1
       1       8       65        1      active sync   /dev/sde1
           UUID : c81e09a4:a9886029:0aba2f63:7a118942



Da hab ich zunächst das "dirty" wieder und meine, dass das falsch ist. Aber das was mich jetzt irgendwie total verwirrt ist "Failed Drives: 1" und "Total Disks: 3". Ähm. Nö! Ich weiss ziemlich genau, dass da nur zwei Platten im RAID konfiguriert sind. Failed ist davon auch keine glaube ich mal /proc/mdstat.

Was hat es es also mit mdadm vs. raidtools genau auf sich ? Die raidtools machen was sie sollen, das mdadm zeigt spontan installiert falsche Daten. Irgendwer eine Ahnung wieso /proc/mdstat keine Fehler anzeigt und mdadm "dirty" und falsche Anzahl von Platten ?

--
Christian



Reply to: