mdadm Problem

T

Tegger

Mitglied
Hallo,

ich versuche in seiner XEN Domain ein mdadm Raid5 zu erstellen. Dazu habe ich 3 Identische Festplatte in die Domain durchgereicht, eine primäre Partition erstellt und mittels

Code:
mdadm --create /dev/md0--level=1 --raid-device=3 /dev/xvdb1 /dev/xvdc1 /dev/xvdd1

beim erstellen kam schon der Fehler
Code:
mdadm: failed to run array /dev/md0: Invalid argument

nach mdstat auch inaktiv

Code:
cat /proc/mdstat 
Personalities : 
md0 : inactive xvdb[0] xvdd[2] xvdc[1]
      732595392 blocks

dann habe ich entdeckt dass die Partition auf Linux raid autodetect geändert werden sollen, jedoch läuft mdadm immer noch nicht...

Code:
Disk /dev/xvdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe86f85d6

    Device Boot      Start         End      Blocks   Id  System
/dev/xvdb1               1       30401   244196001   fd  Linux raid autodetect

Disk /dev/xvdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7b497238

    Device Boot      Start         End      Blocks   Id  System
/dev/xvdc1               1       30401   244196001   fd  Linux raid autodetect

Disk /dev/xvdd: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0009ae6e

    Device Boot      Start         End      Blocks   Id  System
/dev/xvdd1               1       30401   244196001   fd  Linux raid autodetect


kann mir da mal jemand helfen ? :hilfe2:
 
no das war jetzt getippselt....
Code:
mdadm --create /dev/md0 --level=5 --raid-devices=3 /dev/xvdb1 /dev/xvdc1 /dev/xvdd1

ich wollte auch ein RAID 5 erstellen, kein 1, das war nur mal zum testen obs am Raidmodus hängt

aber wegen neu machen, wie krieg ich /dev/md0 denn wieder gelöscht ?

Code:
:~# mdadm --create /dev/md0 --force --level=1 --raid-device=3 /dev/xvdb1 /dev/xvdc1 /dev/xvdd1 
mdadm: another array by this name is already running.
.
.
.
EDIT (autom. Beitragszusammenführung) :
.

also das mit dem löschen hab in der zwischenzeit herausbekommen

Code:
mdadm --stop /dev/md0
mdadm --zero-superblock /dev/xvdb

jetzt hab ich nochmal den Versuch gestartet

Code:
SAMBA:~# mdadm --create /dev/md0 --level=5 --raid-device=3 /dev/xvdb1 /dev/xvdc1 /dev/xvdd1
mdadm: /dev/xvdb1 appears to contain an ext2fs file system
    size=234259796K  mtime=Sun Jul 18 10:15:45 2010
mdadm: /dev/xvdb1 appears to be part of a raid array:
    level=raid5 devices=3 ctime=Sun Jul 18 12:44:32 2010
mdadm: /dev/xvdc1 appears to be part of a raid array:
    level=raid5 devices=3 ctime=Sun Jul 18 12:44:32 2010
mdadm: /dev/xvdd1 appears to contain an ext2fs file system
    size=248976K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/xvdd1 appears to be part of a raid array:
    level=raid5 devices=3 ctime=Sun Jul 18 12:44:32 2010
Continue creating array? yes
mdadm: RUN_ARRAY failed: Invalid argument
mdadm: stopped /dev/md0

wo liegt denn da jetzt der Fehler beim erstellen ?
 
Zuletzt bearbeitet:
Code:
SAMBA:~# mdadm --create /dev/md0 --level=5 --raid-device=3 /dev/xvdb1 /dev/xvdc1 /dev/xvdd1
mdadm: /dev/xvdb1 appears to contain an ext2fs file system
    size=234259796K  mtime=Sun Jul 18 10:15:45 2010
mdadm: /dev/xvdb1 appears to be part of a raid array:
    level=raid5 devices=3 ctime=Sun Jul 18 12:44:32 2010
mdadm: /dev/xvdc1 appears to be part of a raid array:
    level=raid5 devices=3 ctime=Sun Jul 18 12:44:32 2010
mdadm: /dev/xvdd1 appears to contain an ext2fs file system
    size=248976K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/xvdd1 appears to be part of a raid array:
    level=raid5 devices=3 ctime=Sun Jul 18 12:44:32 2010
Continue creating array? yes
mdadm: RUN_ARRAY failed: Invalid argument
mdadm: stopped /dev/md0

wo liegt denn da jetzt der Fehler beim erstellen ?

Wieder nur so getippselt? Gib doch noch mal ein --verbose mit.
 
nein copy&paste.... erstellen klappt jetzt garnichtmehr

Code:
SAMBA:~# mdadm --create --verbose /dev/md0 --level=5 --raid-device=3 /dev/xvdb1 /dev/xvdc1 /dev/xvdd1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/xvdb1 appears to contain an ext2fs file system
    size=234259796K  mtime=Sun Jul 18 10:15:45 2010
mdadm: /dev/xvdb1 appears to be part of a raid array:
    level=raid5 devices=3 ctime=Sun Jul 18 17:40:01 2010
mdadm: /dev/xvdc1 appears to be part of a raid array:
    level=raid5 devices=3 ctime=Sun Jul 18 17:40:01 2010
mdadm: /dev/xvdd1 appears to contain an ext2fs file system
    size=248976K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/xvdd1 appears to be part of a raid array:
    level=raid5 devices=3 ctime=Sun Jul 18 17:40:01 2010
mdadm: size set to 244195904K
Continue creating array? yes
mdadm: RUN_ARRAY failed: Invalid argument
mdadm: stopped /dev/md0
SAMBA:~# cat /proc/m 
mdstat   meminfo  misc     modules  mounts   
SAMBA:~# cat /proc/mdstat 
Personalities : 
unused devices: <none>
SAMBA:~# mdadm --create --verbose /dev/md0 --level=5 --raid-device=3 /dev/xvdb1 /dev/xvdc1 /dev/xvdd1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/xvdb1 appears to contain an ext2fs file system
    size=234259796K  mtime=Sun Jul 18 10:15:45 2010
mdadm: /dev/xvdb1 appears to be part of a raid array:
    level=raid5 devices=3 ctime=Sun Jul 18 18:48:05 2010
mdadm: /dev/xvdc1 appears to be part of a raid array:
    level=raid5 devices=3 ctime=Sun Jul 18 18:48:05 2010
mdadm: /dev/xvdd1 appears to contain an ext2fs file system
    size=248976K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/xvdd1 appears to be part of a raid array:
    level=raid5 devices=3 ctime=Sun Jul 18 18:48:05 2010
mdadm: size set to 244195904K
Continue creating array? yes
mdadm: RUN_ARRAY failed: Invalid argument
mdadm: stopped /dev/md0
SAMBA:~# cat /proc/mdstat 
Personalities : 
unused devices: <none>
SAMBA:~#
 
Was sagt denn mdadm -D /dev/md0 und mdadm -E /dev/xvd{b1,c1,d1}?
 
Code:
SAMBA:~# mdadm -D /dev/md0
mdadm: cannot open /dev/md0: No such file or directory

Code:
SAMBA:~# mdadm -E /dev/xvdb1
/dev/xvdb1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : a662d2a3:cbece236:ea23b906:c8ac5aa0 (local to host SAMBA)
  Creation Time : Sun Jul 18 21:09:00 2010
     Raid Level : raid5
  Used Dev Size : 244195904 (232.88 GiB 250.06 GB)
     Array Size : 488391808 (465.77 GiB 500.11 GB)
   Raid Devices : 3
  Total Devices : 4
Preferred Minor : 0

    Update Time : Sun Jul 18 21:09:00 2010
          State : clean
 Active Devices : 2
Working Devices : 3
 Failed Devices : 1
  Spare Devices : 1
       Checksum : 7560e083 - correct
         Events : 1

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     0     202       17        0      active sync   /dev/xvdb1

   0     0     202       17        0      active sync   /dev/xvdb1
   1     1     202       33        1      active sync   /dev/xvdc1
   2     2       0        0        2      faulty
   3     3     202       49        3      spare   /dev/xvdd1
SAMBA:~# mdadm -E /dev/xvdc1
/dev/xvdc1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : a662d2a3:cbece236:ea23b906:c8ac5aa0 (local to host SAMBA)
  Creation Time : Sun Jul 18 21:09:00 2010
     Raid Level : raid5
  Used Dev Size : 244195904 (232.88 GiB 250.06 GB)
     Array Size : 488391808 (465.77 GiB 500.11 GB)
   Raid Devices : 3
  Total Devices : 4
Preferred Minor : 0

    Update Time : Sun Jul 18 21:09:00 2010
          State : clean
 Active Devices : 2
Working Devices : 3
 Failed Devices : 1
  Spare Devices : 1
       Checksum : 7560e095 - correct
         Events : 1

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     1     202       33        1      active sync   /dev/xvdc1

   0     0     202       17        0      active sync   /dev/xvdb1
   1     1     202       33        1      active sync   /dev/xvdc1
   2     2       0        0        2      faulty
   3     3     202       49        3      spare   /dev/xvdd1
SAMBA:~# mdadm -E /dev/xvdd1
/dev/xvdd1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : a662d2a3:cbece236:ea23b906:c8ac5aa0 (local to host SAMBA)
  Creation Time : Sun Jul 18 21:09:00 2010
     Raid Level : raid5
  Used Dev Size : 244195904 (232.88 GiB 250.06 GB)
     Array Size : 488391808 (465.77 GiB 500.11 GB)
   Raid Devices : 3
  Total Devices : 4
Preferred Minor : 0

    Update Time : Sun Jul 18 21:09:00 2010
          State : clean
 Active Devices : 2
Working Devices : 3
 Failed Devices : 1
  Spare Devices : 1
       Checksum : 7560e0a3 - correct
         Events : 1

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     3     202       49        3      spare   /dev/xvdd1

   0     0     202       17        0      active sync   /dev/xvdb1
   1     1     202       33        1      active sync   /dev/xvdc1
   2     2       0        0        2      faulty
   3     3     202       49        3      spare   /dev/xvdd1
SAMBA:~#
 

Ähnliche Themen

SSD auf einen (geringfügig) kleineren USB-Stick wiederherstellen

FUSE -> Dateisystem Typ ermitteln

Software RAID 1 verkleinern

Raid-1 einrichten

Bootloader nach update weg

Zurück
Oben