PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Software-Raid konfigurieren



sallo
28.11.04, 22:24
Hallo,
ich habe zwei 120GB IDE Festplatten und möchte diese mit SW-Raid laufen lassen. Erstelle ich auf jeder Festplatte nur eine Parition und lasse diese unter /dev/md0 laufen, funktioniert dies auch bestens.

Ich möchte aber zwei verschiedene Raid partitionen haben (/home, /srv). Ich habe nun auf beiden Festplatten zwei Partitionen erstellt.


Disk /dev/hdc: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 1 9726 78124063+ fd Linux raid autodetect
/dev/hdc2 9727 14596 39118275 5 Extended
/dev/hdc5 9727 14596 39118243+ fd Linux raid autodetect


Nun habe ich meine /etc/raidtab wie folgt konfiguriert


# /etc/raidtab

# eingebunden unter /home
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/hdc1
raid-disk 0
device /dev/hdd1
raid-disk 1

# eingebunden unter /srv
raiddev /dev/md1
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/hdc5
raid-disk 0
device /dev/hdd5
raid-disk 1


Unter /dev/md0 läuft das SW-Raid vernünftig, d.h. ich kann 'mkraid /dev/md0' ohne Fehlermeldungen ausführen. Tue ich dies aber nun für '/dev/md1' erhalte ich folgende Fehlermeldungen


pinky:/home/sst# mkraid /dev/md1
handling MD device /dev/md1
analyzing super-block
/dev/hdc5: device too small (0kB)
mkraid: aborted.
(In addition to the above messages, see the syslog and /proc/mdstat as well
for potential clues.)


Woran kann das liegen? Ist es überhaup möglich ein SW-Raid so laufen zu lassen? Soll ich vielleicht doch nur eine Raid-Partition erstellen und z.B. /home als Link auf ein Verzeichnis unter /srv zeigen lassen?

Danke,
sallo

HEMIcuda
29.11.04, 09:14
Ja, es ist moeglich, SW-RAID so laufen zu lassen. Was interessant waere, ist der Output von
fdisk -l /dev/hdc. Irgendwas scheint mit der Partition naemlich nicht hinzuhauen.

'cuda

sallo
29.11.04, 09:30
Gut, werde ich mal posten wenn ich heute Abend wieder zu hause bin.

Wäre nett, wenn du dann noch mal reingucken könntest.

Bye,
sallo

HEMIcuda
29.11.04, 09:36
Na klar. Bis dann.

'cuda

sallo
29.11.04, 16:40
So, hier nun die Ausgaben für beide Festplatten.


pinky:/home/sst# fdisk -l /dev/hdc

Disk /dev/hdc: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 1 9726 78124063+ fd Linux raid autodetect
/dev/hdc2 9727 14596 39118275 5 Extended
/dev/hdc5 9727 14596 39118243+ fd Linux raid autodetect


pinky:/home/sst# fdisk -l /dev/hdd

Disk /dev/hdd: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 1 9726 78124063+ fd Linux raid autodetect
/dev/hdd2 9727 14596 39118275 5 Extended
/dev/hdd5 9727 14596 39118243+ fd Linux raid autodetect

Ich hoffe du/ihr könnt damit was anfangen.

Bye,
sallo

HEMIcuda
29.11.04, 16:50
Hmm. Das sieht alles ganz gut aus. Allerdings frage ich mich gerade, warum Du
erweiterte Partitionen erstellt hast? Die sind eigentlich ziemlich ueberfluessig.
Da kannst Du direkt primaere Partitionen erstellen. Wird vermutlich nix an Deinem
Problem loesen, einen Versuch ist es aber trotzdem wert ;)

'cuda

sallo
29.11.04, 17:43
Es funktioniert :D

Ich habe nun zwei primäre Partitionen auf die Platten gemacht und es geht. Eigentlich hatte ich das gestern auch schon probiert -- leider ohne Erfolg :confused:

Aber hauptsache es läuft jetzt.

Danke,
sallo