[Eisfair_dev] E1 Busybox und Raid

Thomas Zweifel t2fel at gmx.net
Mo Jan 5 18:13:11 CET 2015


Hallo Holger

Am 05.01.2015 um 13:01 schrieb Holger Bruenjes:
> Am 2015-01-05 um 09:26 schrieb Thomas Zweifel:
> Nein, die config ist in diesem Punkt eine Hilfe fuer den User um zu
> erkennen was er hat. Zusammenbasteln war an dieser Stelle auch nie
> angedacht.

So langsam sehe ich, wo ich den Eis missverstanden habe. Ich gestehe
auch, die Doku dazu nicht konsultiert zu haben.
Dass jemand eine Konfigurationsdatei zur Infostelle umbaut, kann man ja
auch nur schwer ahnen. :-)


Als Orientierungshilfe war für mich die Ausgabe von /proc/mdstat schon
immer ausreichend gewesen.

service02test # cat /proc/mdstat | grep '^md' | sort
md1 : active raid1 sda1[0] sdb1[3] sdc1[2] sdd1[1]
md10 : active raid5 sde10[4](S) sdb10[0] sdd10[3] sdc10[1]
md11 : active raid5 sda11[0] sde11[5](S) sdd11[3](S) sdc11[2] sdb11[1]
md12 : active raid6 sde12[4] sdd12[3] sdc12[2] sdb12[1] sda12[0]
md13 : active raid6 sde13[4] sdd13[3] sdc13[2] sdb13[1] sda13[0]
md2 : active raid1 sda2[0] sdc2[4](S) sdd2[5] sdb2[3]
md3 : active raid1 sdb3[0] sdc3[3](S) sda3[2] sdd3[1]
md5 : active raid5 sdd5[5] sdc5[3](S) sdb5[2] sda5[4]
md6 : active raid5 sdd6[0] sdc6[3](S) sdb6[2] sda6[1]
md7 : active raid5 sde7[7] sdd7[6] sdc7[5] sdb7[3] sda7[4]
md8 : active raid5 sde8[7] sdd8[6] sdc8[5] sdb8[3] sda8[4]

Zusammen mit den lvm Infos hat man recht schnell einen Überblick.

service02test # pvs
  PV         VG     Fmt  Attr PSize   PFree
  /dev/md11  backup lvm2 a--  199.84g 199.84g
  /dev/md12  backup lvm2 a--  224.78g      0
  /dev/md13  backup lvm2 a--  131.81g  36.59g
  /dev/md6   test   lvm2 a--  100.00g  80.00g
  /dev/md7   test   lvm2 a--  199.87g      0
  /dev/md8   test   lvm2 a--  199.87g  39.74g

service02test # lvs
  LV     VG     Attr       LSize   Pool Origin Data%  Move Log Cpy%Sync
  backup backup -wi-a----- 320.00g
  daten  test   -wi-ao---- 360.00g
  lv3    test   -wi-ao----  20.00g

service02test # df
Filesystem                1K-blocks      Used Available Use% Mounted on
/dev/md3                   12393840  10169024   1595684  87% /
/dev/md1                      27845     11625     14791  45% /boot
/dev/md5                   51606140   8733784  42872356  17% /home/pub
/dev/mapper/backup-backup 371564448 324943396  46621052  88% /Backup
/dev/mapper/test-lv3      330279532    133832 330145700   1% /mnt/tmp




Der mdadm Menupunkt ist in so einem Fall dann doch etwas überfordert:

service02test # rm /etc/mdadm/mdadm.conf
service02test # setup
[1]
[4]
[2]
[2]
ERROR: (26): Unrecognised input!
ERROR: (26): Unrecognised input!
ERROR: (26): Unrecognised input!
ERROR: (26): Unrecognised input!
ERROR: (26): Unrecognised input!
ERROR: (26): Unrecognised input!
ERROR: (27): missing string constant
ERROR: (27): Unrecognised input!
ERROR: (27): Unrecognised input!
ERROR: (27): Unrecognised input!
ERROR: (27): Unrecognised input!
ERROR: (27): Unrecognised input!
ERROR: (27): Unrecognised input!
ERROR: (40): Unrecognised input!
ERROR: (40): Unrecognised input!
ERROR: (40): Unrecognised input!
ERROR: (40): Unrecognised input!
ERROR: (40): Unrecognised input!
ERROR: (40): Unrecognised input!
ERROR: (41): missing string constant
ERROR: (41): Unrecognised input!
ERROR: (41): Unrecognised input!
ERROR: (41): Unrecognised input!
ERROR: (41): Unrecognised input!
ERROR: (41): Unrecognised input!
ERROR: (41): Unrecognised input!
ERROR: (54): Unrecognised input!
ERROR: (54): Unrecognised input!
ERROR: (54): Unrecognised input!
ERROR: (54): Unrecognised input!
ERROR: (54): Unrecognised input!
ERROR: (54): Unrecognised input!
ERROR: (55): missing string constant
ERROR: (55): Unrecognised input!
ERROR: (55): Unrecognised input!
ERROR: (55): Unrecognised input!
ERROR: (55): Unrecognised input!
ERROR: (55): Unrecognised input!
ERROR: (55): Unrecognised input!
ERROR: (68): Unrecognised input!
ERROR: (68): Unrecognised input!
ERROR: (68): Unrecognised input!
ERROR: (68): Unrecognised input!
ERROR: (68): Unrecognised input!
ERROR: (68): Unrecognised input!
ERROR: (69): missing string constant
ERROR: (69): Unrecognised input!
ERROR: (69): Unrecognised input!
ERROR: (69): Unrecognised input!
ERROR: (69): Unrecognised input!
ERROR: (69): Unrecognised input!
ERROR: (69): Unrecognised input!
ERROR: (82): Unrecognised input!
ERROR: (82): Unrecognised input!
ERROR: (82): Unrecognised input!
ERROR: (82): Unrecognised input!
ERROR: (82): Unrecognised input!
ERROR: (82): Unrecognised input!
ERROR: (83): missing string constant
ERROR: (83): Unrecognised input!
ERROR: (83): Unrecognised input!
ERROR: (83): Unrecognised input!
ERROR: (83): Unrecognised input!
ERROR: (83): Unrecognised input!
ERROR: (83): Unrecognised input!

Press ENTER to continue

The configuration of this package can't be opened by the config
editor currently setup on your system. This may be due to some
inconsistent config files or options.
You can now edit the configuration manually using editor /usr/bin/joe .

You can get help by joe if you press 'Ctrl-K H'.

Continue (y/n) [yes]? [y]

[CTRL-k x]

File /etc/config.d/mdadm saved
Checking configuration file ...

Error in /etc/config.d/mdadm:27,16: expected "string (enclosed in "'")",
got 'string (maybe stretched accross several lines)' (20)
Error in /etc/config.d/mdadm:41,16: expected "string (enclosed in "'")",
got 'string (maybe stretched accross several lines)' (20)
Error in /etc/config.d/mdadm:55,16: expected "string (enclosed in "'")",
got 'string (maybe stretched accross several lines)' (20)
Error in /etc/config.d/mdadm:69,16: expected "string (enclosed in "'")",
got 'string (maybe stretched accross several lines)' (20)
Error in /etc/config.d/mdadm:83,16: expected "string (enclosed in "'")",
got 'string (maybe stretched accross several lines)' (20)
Error while reading config file /etc/config.d/mdadm
Edit configuration again (y/n) [yes]? [n]

service02test # ~/bin/mkmdadmconf.sh


Ein weiterer Punkt, den ich beim Produktivsystem nicht mehr falsch
machen werde. :-)



> Man kann darueber immer Diskutieren. Du darfst auch gerne die von uns
> bereitgestellte Dokumentation ueberarbeiten und|oder auch Deine
> Beschreibung zur Groessenveraenderung einfliessen lassen. Wir sind immer
> an Mitarbeitern interessiert.

Werds mir überlegen.


> Es gibt halt viele Wege nach Rom ;-)

Wie wahr!



Gruss Thomas


Mehr Informationen über die Mailingliste Eisfair_dev