[Eisfair] E1: md0 wird nicht gemountet (nach Update-Orgie)
Holger Bruenjes
holgerbruenjes at gmx.net
So Mai 8 11:14:26 CEST 2016
Hallo Thomas
Am 2016-05-07 um 21:23 schrieb Thomas Zweifel:
> eis2 2.7.2 # cat /proc/mdstat
> Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5]
> [raid4] [multipath]
> md0 : active raid1 sdb1[0]
> 80417152 blocks [1/1] [U]
> bitmap: 0/3 pages [0KB], 16384KB chunk
> ....
>
> eis2 2.7.2 # setup --> Create mdadm.conf
>
> eis2 2.7.2 # joe /etc/mdadm/mdadm.conf
> File /etc/mdadm/mdadm.conf saved
>
> eis2 2.7.2 # cat /etc/mdadm/mdadm.conf
> #----------------------------------------------------------------------------
> # mdadm.conf file generated by mdadm version: 2.6.0
> #
> # Do not edit this file, edit /etc/config.d/mdadm
> # Creation date: 2016-05-07 Time: 20:56:32
> #----------------------------------------------------------------------------
> DEVICE /dev/[sh]d*
> ARRAY /dev/md57 UUID=76fa1ec3:b756cab5:84c46bff:d68c2803
> ARRAY /dev/md58 UUID=58e56c65:294b8358:84c46bff:d68c2803
> ARRAY /dev/md0 UUID=8463c4fd:25c03495:84c46bff:d68c2803
> PROGRAM /sbin/mdadm-event-handler.sh
Das Skript schreibt das aber nicht so ;-)
so sieht das aus
DEVICE /dev/sda*
DEVICE /dev/sdb*
>
> eis2 2.7.2 # mdadm --stop /dev/md0
> mdadm: stopped /dev/md0
>
> eis2 2.7.2 # mdadm -As
> mdadm: WARNING /dev/sdb1 and /dev/sdb appear to have very similar
> superblocks.
> If they are really different, please --zero the superblock on one
> If they are the same or overlap, please remove one from the
> DEVICE list in mdadm.conf.
>
> eis2 2.7.2 # joe /etc/mdadm/mdadm.conf
> File /etc/mdadm/mdadm.conf saved
>
> eis2 2.7.2 # cat /etc/mdadm/mdadm.conf
> #----------------------------------------------------------------------------
> # mdadm.conf file generated by mdadm version: 2.6.0
> #
> # Do not edit this file, edit /etc/config.d/mdadm
> # Creation date: 2016-05-07 Time: 20:56:32
> #----------------------------------------------------------------------------
> DEVICE /dev/[sh]d*[0-9]
> ARRAY /dev/md57 UUID=76fa1ec3:b756cab5:84c46bff:d68c2803
> ARRAY /dev/md58 UUID=58e56c65:294b8358:84c46bff:d68c2803
> ARRAY /dev/md0 UUID=8463c4fd:25c03495:84c46bff:d68c2803
> PROGRAM /sbin/mdadm-event-handler.sh
ja, nun habe ich da etwas getestet, als regex matched der * da nicht
eis:/ # echo '/dev/sda19' | grep '/dev/[sh]d*[1-9]'
eis:/ #
aber, das matched
eis:/ # echo '/dev/sda19' | grep '/dev/[sh]d[a-z][1-9]'
/dev/sda19
Holger
Mehr Informationen über die Mailingliste Eisfair