RAID einrichten: Fehler: looks like swapspace - not mounted

musti19

Member
Hallo,
ich bin grad dabei auf meinem bestehenden System
Raid einzurichten nach:
HowtoForge Linux Tutorials » Software RAID1 auf einem laufenden System (Inkl. GRUB Konfiguration) (Debian Etch) einrichten

Jedoch wenn ich folgende Befehl ausführen will:

PHP:
mount /dev/md2 /mnt/md2

tritt folgender Fehler auf:
PHP:
/dev/md1 looks like swapspace - not mounted
mount: you must specify the filesystem type

Die md0 konnte ich problemlos mounten.

Trotz recherche im Google, kein Erfolg.

Kann mir einer weiterhelfen. Danke im Vorraus :)

System: Debian 4.0 Etch
2 Festplatten

MFG
 
Das kannst du nicht mounten, weil es die RAID Partition für den SWAP Space ist.

( /dev/md1 looks like swapspace )
 
Hallo,
ich habe gemerkt ,dass die 2. Festplatte garnicht aktiv
war.
Und habe eben herausgefunden,
dass die 2.Fesplatte statt "sdb"
nun "md1" ist.

Wie kann ich es nun rückgängig machen?

Code:
Disk Drive: /dev/sda
                       Size: 400088457216 bytes, 400.0 GB
             Heads: 255   Sectors per Track: 63   Cylinders: 48641

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
    sda1        NC          Primary   Linux swap / Solaris              2155.03
    sda2                    Primary   Linux ext3                      397930.83

Code:
Disk Drive: /dev/sdb
                       Size: 400088457216 bytes, 400.0 GB
             Heads: 255   Sectors per Track: 63   Cylinders: 48641

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
    sdb1        NC          Primary   Linux swap / Solaris              2155.03
    sdb2                    Primary   Linux                           397930.83

Code:
Disk Drive: /dev/md0
                        Size: 2154954752 bytes, 2154 MB
              Heads: 2   Sectors per Track: 4   Cylinders: 526112

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
                            Pri/Log   Free Space                        2154.96

Code:
Disk Drive: /dev/md1
                       Size: 397930725376 bytes, 397.9 GB
             Heads: 2   Sectors per Track: 4   Cylinders: 97151056

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
                            Pri/Log   Free Space                      397930.73

-----Für eine Problemlösung würde sehr dankbar sein. ------
 
Die beiden Festplatten (sda, sdb) bilden zusammen den Raid Verbund md. Das ist schon in Ordnung so. Du solltest jetzt auch nicht mehr sda oder sdb mounten und damit arbeiten, damit machste das RAID kaputt. D darfst jetzt nur noch mit md arbeiten.

Bei mir sieht das so aus
sda:
Code:
    sda1        Boot        Primary   Linux raid autodetect              254.99
    sda2                    Primary   Linux raid autodetect             4096.19
    sda3                    Primary   Linux raid autodetect            10240.48
    sda5                    Logical   Linux raid autodetect            10240.48
    sda6                    Logical   Linux raid autodetect            20480.95
    sda7                    Logical   Linux raid autodetect            15356.60
    sda8                    Logical   Linux raid autodetect           339416.18
sdb
Code:
    sdb1        Boot        Primary   Linux raid autodetect              254.99
    sdb2                    Primary   Linux raid autodetect             4096.19
    sdb3                    Primary   Linux raid autodetect            10240.48
    sdb5                    Logical   Linux raid autodetect            10240.48
    sdb6                    Logical   Linux raid autodetect            20480.95
    sdb7                    Logical   Linux raid autodetect            15356.60
    sdb8                    Logical   Linux raid autodetect           339416.18

mount | grep md
Code:
/dev/md0 on /boot type ext2 (rw,noatime)
/dev/md3 on /tmp type ext3 (rw,noatime,data=journal)
/dev/md4 on /var type ext3 (rw,noatime,data=journal)
/dev/md5 on /var/log type ext3 (rw,noatime,data=journal)
/dev/md6 on /kunden type ext3 (rw,noatime,data=journal)
 
Hi,

was hast Du denn überhaupt vor?
Und liefer dann bitte auch gleich die Ausgabe von 'cat /proc/mdstat' mit.

-W
 
Ich möchte ein Software-Raid aufbauen,
wie o.g. habe ich ein Fehler gemacht,
wobei die 2.Festplatte nicht aktiviert war,
und ich versuchte ein Raid nach HowTo aufzubauen:

Code:
Personalities : [raid0] [raid1] [linear] [multipath] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sdb1[1]
      2104448 blocks [2/1] [_U]

md1 : active raid1 sdb2[1]
      388604224 blocks [2/1] [_U]

unused devices: <none>
 
Das RAID is degraded und sda nicht eingebunden. Das ganze erstmal via "mdadm –add" zusammenführen, steht in deinem Howto wie das geht, und dann warten bis synchronisiert ist.
 
Last edited by a moderator:
Hi,

mach zusätzlich mal ein 'badblocks -vs /dev/sda' (ggfls. nachinstallieren).
Mich verwundert es ein wenig, dass die gesamte Platte geflogen ist. Erfahrungsgemäß fliegt nur eine Partition und nicht die ganze Platte.

-W
 
Back
Top