1 |
Am Dienstag, den 01.12.2009, 08:45 +0100 schrieb Juergen Rose: |
2 |
> Hallo, |
3 |
... |
4 |
> root@grizzly(14)# mdadm --misc --zero-superblock /dev/sdc2 |
5 |
> root@grizzly(15)# mdadm -v --create /dev/md3 --level=5 -n 3 |
6 |
> -v /dev/sda2 /dev/sdb2 /dev/sdc2 |
7 |
> root@grizzly(16)# cat /proc/mdstat |
8 |
> |
9 |
> Personalities : [raid1] [raid6] [raid5] [raid4] |
10 |
> md3 : active raid5 sdc2[3] sdb2[1] sda2[0] |
11 |
> 340352000 blocks super 1.1 level 5, 512k chunk, algorithm 2 [3/2] |
12 |
> [UU_] |
13 |
> [>....................] recovery = 1.5% (2692864/170176000) |
14 |
> finish=50.5min speed=55208K/sec |
15 |
> ... |
16 |
> Eine Stunde warten bis das Raid fertig ist, dann testen: |
17 |
> root@grizzly(22)# cat /proc/mdstat |
18 |
> Personalities : [raid1] [raid6] [raid5] [raid4] |
19 |
> md3 : active raid5 sdc2[3] sdb2[1] sda2[0] |
20 |
> 340352000 blocks super 1.1 level 5, 512k chunk, algorithm 2 [3/3] |
21 |
> [UUU] |
22 |
> ... |
23 |
> unused devices: <none> |
24 |
> root@grizzly(23)# mount /dev/md3 /mnt/test1; du -s /mnt/test1/* |
25 |
> ... |
26 |
> 77611992 /mnt/test1/rose |
27 |
> ... |
28 |
> Das sieht wieder gut aus, sogar meine alten Daten sind noch auf dem |
29 |
> Raid. Aber nach dem Stoppen des Raids erkennt linux automatisch gar |
30 |
> keine Raid md3. |
31 |
|
32 |
> root@grizzly(24)# umount /dev/md3 ; mdadm --stop /dev/md3 |
33 |
> root@grizzly(25)# mdadm --autodetect /dev/md3 |
34 |
> root@grizzly(26)# mdadm --detail /dev/md3 |
35 |
> root@grizzly(27)# cat /proc/mdstat |
36 |
> |
37 |
> Personalities : [raid1] [raid6] [raid5] [raid4] |
38 |
> md1 : active raid1 hdc3[1] hda3[0] |
39 |
> 1011968 blocks [2/2] [UU] |
40 |
> |
41 |
> md2 : active raid1 hdc6[1] hda6[0] |
42 |
> 186233408 blocks [2/2] [UU] |
43 |
> |
44 |
> md0 : active raid1 hdc1[1] hda1[0] |
45 |
> 72192 blocks [2/2] [UU] |
46 |
> |
47 |
> unused devices: <none> |
48 |
> |
49 |
> root@grizzly(28)# mdadm -V |
50 |
> |
51 |
> mdadm - v3.1.1- 19th November 2009 |
52 |
> |
53 |
> Mach ich etwas falsch oder ist mdadm-3.1.1 schuld? Ich wuerde mich ueber |
54 |
> fast jede Meinungsaeusserung freuen. |
55 |
|
56 |
Ich wollte noch ergaenzen, dass die Partitionen die in das raid5 md3 |
57 |
eingebunden werden sollten natuerlich vom Typ "Linux raid autodetect" |
58 |
sind: |
59 |
|
60 |
root@grizzly:/root(32)# fdisk -l /dev/sd? | grep /dev/sd.2 |
61 |
/dev/sda2 3136 24321 170176545 fd Linux raid |
62 |
autodetect |
63 |
/dev/sdb2 3136 24321 170176545 fd Linux raid |
64 |
autodetect |
65 |
/dev/sdc2 3136 24321 170176545 fd Linux raid |
66 |
autodetect |
67 |
|
68 |
Hat nicht vielleicht doch jemand einen Tip fuer mich? |
69 |
|
70 |
Juergen |