Re: Software-Raid 5 in domO oder domU
Stefan Welte <[email protected]>
| Newsgroups | spline.eisxen |
|---|---|
| Organization | spline |
| Message-ID | <[email protected]> |
Hallo Holger und NG, Am 14.09.2013 07:38, schrieb Holger Behmann: > Wenn Du in der Dom0 die Partitionen für´s Raid5 mit fd markierst > (Partitionstyp), sollte der Kernel das automatisch beim Booten starten. > Wieso kannst Du das Raid nicht manuell starten? mdadm -As scheint willkürlich eine der 8 Platten nicht einzubeziehen zu können beim Assemblieren, weil "Device or resource busy" -> [8/7] [UUUUUU_U] Zudem erscheint im aktiven virtuellen Terminal "[15929.402106] md: could not bd_claim hdb1." Falls einmal zwei der 8 Platten busy sind, startet das RAID komischerweise fehlerfrei: -> [8/8] [UUUUUUUU] Details siehe Anhang. Liegt es an der mdadm-Version? $ mdadm --version mdadm - v3.1.4 - 31st August 2010 scheint selbst gebaut zu sein, zumindest passen die Daten nicht in diese Auflistung: https://launchpad.net/ubuntu/+source/mdadm Weil im Fehlerfall das mdadm-Zeugs ein heikler Hokuspokus ist, ist mir dieses beschissene Verhalten bereits beim Einrichten ein Graus und kein Weg so weiterzumachen. Kennt jemand ein anderes Verfahren, um 8 Platten zusammenzufassen? Danke, Stefan
eisxen-raid-murx.txt
(text/plain, 3.5 KB)
root@eisxen2 2.2.3:~ # mdadm --stop /dev/md0
mdadm: stopped /dev/md0
root@eisxen2 2.2.3:~ # cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
unused devices: <none>
root@eisxen2 2.2.3:~ # mdadm -As
mdadm: failed to add /dev/hda1 to /dev/md0: Device or resource busy
mdadm: /dev/md0 has been started with 7 drives (out of 8).
root@eisxen2 2.2.3:~ # cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 hde1[0] hdd1[7] hdc1[6] hdb1[5] hdh1[3] hdg1[2] hdf1[1]
1093740032 blocks level 5, 512k chunk, algorithm 2 [8/7] [UUUU_UUU]
bitmap: 0/2 pages [0KB], 65536KB chunk
unused devices: <none>
root@eisxen2 2.2.3:~ # mdadm --stop /dev/md0
mdadm: stopped /dev/md0
root@eisxen2 2.2.3:~ # mdadm -As
mdadm: failed to add /dev/hdc1 to /dev/md0: Device or resource busy
mdadm: /dev/md0 has been started with 7 drives (out of 8).
root@eisxen2 2.2.3:~ # cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 hde1[0] hdd1[7] hdb1[5] hda1[4] hdh1[3] hdg1[2] hdf1[1]
1093740032 blocks level 5, 512k chunk, algorithm 2 [8/7] [UUUUUU_U]
bitmap: 0/2 pages [0KB], 65536KB chunk
unused devices: <none>
root@eisxen2 2.2.3:~ # mdadm --stop /dev/md0
mdadm: stopped /dev/md0
root@eisxen2 2.2.3:~ # mdadm -As
mdadm: failed to add /dev/hdb1 to /dev/md0: Device or resource busy
mdadm: failed to add /dev/hdc1 to /dev/md0: Device or resource busy
mdadm: /dev/md0 assembled from 6 drives - not enough to start the array.
root@eisxen2 2.2.3:~ # cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 hdc1[6] hdb1[5] hde1[0] hdd1[7] hda1[4] hdh1[3] hdg1[2] hdf1[1]
1093740032 blocks level 5, 512k chunk, algorithm 2 [8/8] [UUUUUUUU]
bitmap: 0/2 pages [0KB], 65536KB chunk
unused devices: <none>
root@eisxen2 2.2.3:~ #
zugehörige dmesg-Ausgabe:
[15938.080332] md: md0 stopped.
[15938.131764] md: bind<hdf1>
[15938.134456] md: bind<hdg1>
[15938.135170] md: bind<hdh1>
[15938.135715] md: bind<hda1>
[15938.135957] md: could not bd_claim hdb1.
[15938.136223] md: md_import_device returned -16
[15938.136659] md: could not bd_claim hdc1.
[15938.137064] md: md_import_device returned -16
[15938.143215] md: bind<hdd1>
[15938.144001] md: bind<hde1>
[15938.201794] md: array md0 already has disks!
[15938.249703] md: bind<hdb1>
[15938.290099] md: bind<hdc1>
[15938.375566] raid5: device hdc1 operational as raid disk 6
[15938.375575] raid5: device hdb1 operational as raid disk 5
[15938.375578] raid5: device hde1 operational as raid disk 0
[15938.375581] raid5: device hdd1 operational as raid disk 7
[15938.375584] raid5: device hda1 operational as raid disk 4
[15938.375586] raid5: device hdh1 operational as raid disk 3
[15938.375589] raid5: device hdg1 operational as raid disk 2
[15938.375591] raid5: device hdf1 operational as raid disk 1
[15938.377340] raid5: allocated 8375kB for md0
[15938.377352] raid5: raid level 5 set md0 active with 8 out of 8 devices, algorithm 2
[15938.377356] RAID5 conf printout:
[15938.377358] --- rd:8 wd:8
[15938.377363] disk 0, o:1, dev:hde1
[15938.377366] disk 1, o:1, dev:hdf1
[15938.377370] disk 2, o:1, dev:hdg1
[15938.377373] disk 3, o:1, dev:hdh1
[15938.377376] disk 4, o:1, dev:hda1
[15938.377378] disk 5, o:1, dev:hdb1
[15938.377381] disk 6, o:1, dev:hdc1
[15938.377384] disk 7, o:1, dev:hdd1
[15938.378841] md0: bitmap initialized from disk: read 1/1 pages, set 0 bits
[15938.378848] created bitmap (2 pages) for device md0