Hello,
J’ai mis à jour mon serveur vers Jessie hier soir, enfin partiellement seulement via un apt-upgrade et installation du kernel et sysv-rc.
Après reboot j’ai un soucis avec mon RAID soft (Raid1)
Une de mes partitions MD a disparue.
Avant la mise à jour j’avais 10 partitions (md0 à md9), après le reboot, md9 a disparue.
Mon fichier mdadm.conf ressemblait à ça avant que je fasse un mdadm -Es :
[code]# mdadm.conf
Please refer to mdadm.conf(5) for information about this file.
by default, scan all partitions (/proc/partitions) for MD superblocks.
alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions
auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
automatically tag new arrays as belonging to the local system
HOMEHOST
instruct the monitoring daemon where to send mail alerts
MAILADDR root
definitions of existing MD arrays
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=350e253f:863b7b04:b1617c47:b213a024
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=086e68ed:3607317f:60b56e23:6bae62bc
ARRAY /dev/md2 level=raid1 num-devices=2 UUID=0f6e3ed5:aeee975a:c3647deb:763d68ce
ARRAY /dev/md3 level=raid1 num-devices=2 UUID=6b560fe8:f24d6f2e:8942bd3a:1903abbc
ARRAY /dev/md4 level=raid1 num-devices=2 UUID=462dab96:b7ca2a17:7c4aebf1:d4d7ec3b
ARRAY /dev/md5 level=raid1 num-devices=2 UUID=ea511351:3abc7b12:4c81e838:93dbd21a
ARRAY /dev/md6 level=raid1 num-devices=2 UUID=da0d76c6:91422584:dc3d6162:37ced53b
ARRAY /dev/md7 level=raid1 num-devices=2 UUID=387c831c:8a6d05e3:b649696c:0870b930
ARRAY /dev/md8 level=raid1 num-devices=2 UUID=b07c4ab4:39d0ba53:9913afa9:fd9cc323
ARRAY /dev/md9 level=raid1 num-devices=2 UUID=36c4edd0:a0492cc9:0cd2fce0:2745e358
This file was auto-generated on Wed, 07 Feb 2007 17:15:33 +0000
by mkconf $Id: mkconf 261 2006-11-09 13:32:35Z madduck $[/code]
Après le mdadm -Es, j’ai ça :
[code]# mdadm.conf
Please refer to mdadm.conf(5) for information about this file.
by default, scan all partitions (/proc/partitions) for MD superblocks.
alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions
auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
automatically tag new arrays as belonging to the local system
HOMEHOST
instruct the monitoring daemon where to send mail alerts
MAILADDR root
definitions of existing MD arrays
ARRAY metadata=imsm UUID=d9cfa6d9:2a715e4f:1fbc2095:be342429
ARRAY /dev/md/raidlin container=d9cfa6d9:2a715e4f:1fbc2095:be342429 member=0 UUID=91449a9d:9242bfe9:d99bceb0:a59f9314
ARRAY /dev/md0 UUID=350e253f:863b7b04:b1617c47:b213a024
ARRAY /dev/md1 UUID=086e68ed:3607317f:60b56e23:6bae62bc
ARRAY /dev/md2 UUID=0f6e3ed5:aeee975a:c3647deb:763d68ce
ARRAY /dev/md3 UUID=6b560fe8:f24d6f2e:8942bd3a:1903abbc
ARRAY /dev/md4 UUID=462dab96:b7ca2a17:7c4aebf1:d4d7ec3b
ARRAY /dev/md5 UUID=ea511351:3abc7b12:4c81e838:93dbd21a
ARRAY /dev/md6 UUID=da0d76c6:91422584:dc3d6162:37ced53b
ARRAY /dev/md7 UUID=387c831c:8a6d05e3:b649696c:0870b930
ARRAY /dev/md8 UUID=b07c4ab4:39d0ba53:9913afa9:fd9cc323
[/code]
Mes disques sont partitionnés comme suit :
[code]fdisk -l /dev/sdb
Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001edee
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 979964 489951 fd Linux raid autodetect
/dev/sdb2 979965 10747484 4883760 fd Linux raid autodetect
/dev/sdb3 10747485 14651279 1951897+ fd Linux raid autodetect
/dev/sdb4 14651280 488392064 236870392+ 5 Extended
/dev/sdb5 14651343 24418799 4883728+ fd Linux raid autodetect
/dev/sdb6 24418863 43953839 9767488+ fd Linux raid autodetect
/dev/sdb7 43953903 53721359 4883728+ fd Linux raid autodetect
/dev/sdb8 53721423 63488879 4883728+ fd Linux raid autodetect
/dev/sdb9 63488943 73256399 4883728+ fd Linux raid autodetect
/dev/sdb10 73256463 83023919 4883728+ fd Linux raid autodetect
/dev/sdb11 83023983 488392064 202684041 fd Linux raid autodetect
[/code]
[code]fdisk -l /dev/sdc
Disk /dev/sdc: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c352c
Device Boot Start End Blocks Id System
/dev/sdc1 * 63 979964 489951 fd Linux raid autodetect
/dev/sdc2 979965 10747484 4883760 fd Linux raid autodetect
/dev/sdc3 10747485 14651279 1951897+ fd Linux raid autodetect
/dev/sdc4 14651280 488392064 236870392+ 5 Extended
/dev/sdc5 14651343 24418799 4883728+ fd Linux raid autodetect
/dev/sdc6 24418863 43953839 9767488+ fd Linux raid autodetect
/dev/sdc7 43953903 53721359 4883728+ fd Linux raid autodetect
/dev/sdc8 53721423 63488879 4883728+ fd Linux raid autodetect
/dev/sdc9 63488943 73256399 4883728+ fd Linux raid autodetect
/dev/sdc10 73256463 83023919 4883728+ fd Linux raid autodetect
/dev/sdc11 83023983 488392064 202684041 fd Linux raid autodetect
[/code]
Et le proc/mdstat a cette tête maintenant :
[code]cat /proc/mdstat
Personalities : [raid1]
md8 : active raid1 md126p10[0]
4883648 blocks [2/1] [U_]
md7 : active raid1 md126p9[0]
4883648 blocks [2/1] [U_]
md6 : active raid1 md126p8[0]
4883648 blocks [2/1] [U_]
md5 : active raid1 md126p7[0]
4883648 blocks [2/1] [U_]
md4 : active raid1 md126p6[0]
9767424 blocks [2/1] [U_]
md3 : active raid1 md126p5[0]
4883648 blocks [2/1] [U_]
md2 : active (auto-read-only) raid1 md126p3[0]
1951808 blocks [2/1] [U_]
md1 : active raid1 md126p2[0]
4883648 blocks [2/1] [U_]
md0 : active raid1 md126p1[0]
489856 blocks [2/1] [U_]
md126 : active raid1 sdc[1] sdb[0]
244195328 blocks super external:/md127/0 [2/2] [UU]
md127 : inactive sdc1 sdb0
6306 blocks super external:imsm
unused devices:
[/code]
Je ne suis pas un expert MD, avec un ami, on a pu retrouver la partition md9 qui est nommée md126p11 et on a pu la monter sans soucis.
Voilà ce qu’on a trouvé dans dmesg :
[ 1.593297] md: bind<sdb>
[ 1.598582] md: bind<sdc>
[ 1.599902] md: bind<sdb>
[ 1.600045] md: bind<sdc>
[ 1.606550] md: raid1 personality registered for level 1
[ 1.607396] md/raid1:md126: active with 2 out of 2 mirrors
[ 1.607433] md126: detected capacity change from 0 to 250056015872
[ 1.632396] md: md126 switched to read-write mode.
[ 1.669910] md126: p1 p2 p3 p4 < p5 p6 p7 p8 p9 p10 p11 >
[ 1.670501] md126: p11 size 405368082 extends beyond EOD, truncated
[ 4.100396] md: md0 stopped.
[ 4.100919] md: bind<md126p1>
[ 4.101708] md/raid1:md0: active with 1 out of 2 mirrors
[ 4.101734] md0: detected capacity change from 0 to 501612544
[ 4.102179] md0: unknown partition table
[ 4.224625] md: md1 stopped.
[ 4.225109] md: bind<md126p2>
[ 4.225886] md/raid1:md1: active with 1 out of 2 mirrors
[ 4.225911] md1: detected capacity change from 0 to 5000855552
[ 4.226658] md1: unknown partition table
[ 4.420746] md: md2 stopped.
[ 4.421441] md: bind<md126p3>
[ 4.422216] md/raid1:md2: active with 1 out of 2 mirrors
[ 4.422241] md2: detected capacity change from 0 to 1998651392
[ 4.422677] md2: unknown partition table
[ 4.595729] md: md3 stopped.
[ 4.596410] md: bind<md126p5>
[ 4.597189] md/raid1:md3: active with 1 out of 2 mirrors
[ 4.597215] md3: detected capacity change from 0 to 5000855552
[ 4.597638] md3: unknown partition table
[ 4.668224] md: md4 stopped.
[ 4.668693] md: bind<md126p6>
[ 4.669446] md/raid1:md4: active with 1 out of 2 mirrors
[ 4.669474] md4: detected capacity change from 0 to 10001842176
[ 4.669909] md4: unknown partition table
[ 4.783732] md: md5 stopped.
[ 4.784236] md: bind<md126p7>
[ 4.785024] md/raid1:md5: active with 1 out of 2 mirrors
[ 4.785049] md5: detected capacity change from 0 to 5000855552
[ 4.785479] md5: unknown partition table
[ 4.970769] md: md6 stopped.
[ 4.971366] md: bind<md126p8>
[ 4.972129] md/raid1:md6: active with 1 out of 2 mirrors
[ 4.972158] md6: detected capacity change from 0 to 5000855552
[ 4.972594] md6: unknown partition table
[ 5.137394] md: md7 stopped.
[ 5.138011] md: bind<md126p9>
[ 5.138754] md/raid1:md7: active with 1 out of 2 mirrors
[ 5.138779] md7: detected capacity change from 0 to 5000855552
[ 5.139232] md7: unknown partition table
[ 5.329093] md: md8 stopped.
[ 5.330228] md: bind<md126p10>
[ 5.330977] md/raid1:md8: active with 1 out of 2 mirrors
[ 5.331003] md8: detected capacity change from 0 to 5000855552
[ 5.350896] md8: unknown partition table
Notez la ligne “[ 1.670501] md126: p11 size 405368082 extends beyond EOD, truncated” qui explique pourquoi md9 n’a pas été monté, mais je ne sais pas comment résoudre ce soucis et pourquoi tout d’un coup j’ai ça…
Après avoir forcé le montage de /dev/md126p11, j’ai vu ces messages dans dmesg :
[ 4361.248369] md126p11: rw=32, want=405367936, limit=405366673
[ 4361.248382] XFS (md126p11): Mounting V4 Filesystem
[ 4361.657842] XFS (md126p11): Ending clean mount
[ 4609.295281] md126p11: rw=32, want=405367936, limit=405366673
[ 4609.295300] XFS (md126p11): Mounting V4 Filesystem
[ 4609.513109] XFS (md126p11): Ending clean mount
et dans daemon.log :
Apr 29 20:26:26 shax mdadm[4735]: DeviceDisappeared event detected on md device /dev/md9
Apr 29 20:26:29 shax mdadm[4735]: DegradedArray event detected on md device /dev/md8
Apr 29 20:26:30 shax mdadm[4735]: DegradedArray event detected on md device /dev/md7
Apr 29 20:26:31 shax mdadm[4735]: DegradedArray event detected on md device /dev/md6
Apr 29 20:26:33 shax mdadm[4735]: DegradedArray event detected on md device /dev/md5
Apr 29 20:26:34 shax mdadm[4735]: DegradedArray event detected on md device /dev/md4
Apr 29 20:26:35 shax mdadm[4735]: DegradedArray event detected on md device /dev/md3
Apr 29 20:26:35 shax mdadm[4735]: DegradedArray event detected on md device /dev/md2
Apr 29 20:26:36 shax mdadm[4735]: DegradedArray event detected on md device /dev/md1
Apr 29 20:26:37 shax mdadm[4735]: DegradedArray event detected on md device /dev/md0
Apr 29 20:26:37 shax mdadm[4735]: NewArray event detected on md device /dev/md127
Apr 29 20:26:37 shax mdadm[4735]: NewArray event detected on md device /dev/md126
Je ne sais pas trop comment corriger ces soucis…
J’ai l’impression d’avoir plusieurs soucis :
- mdadm ne détecte pas md9
- mon array semble bancal (un seul U et non 2)
Vous pouvez m’aider ?
version du kernel : Linux shax 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) i686 GNU/Linux