mdamd problem

lord_Niedzwiedz sir_Misiek w o2.pl
Śro, 4 Lis 2015, 10:59:09 CET


>> RAID 1.
>> Wypadła mi jedna partycja z macierzy. Macierz nie chciała się
>> odbudowywać. Wymieniłem dysk na którym były bad sektory.
> Odbudowuje się tylko idzie jak krew z nosa (6MB/s).
No nie odbudowuje się !!
Wszystko jest dalej oraz na samym końcu w powyższym e-mailu.
>
> Zobacz co masz w
> /proc/sys/dev/raid/speed_limit_min
> /proc/sys/dev/raid/speed_limit_max
>
> Możesz próbować podbić. Jeśli to jednak dysk jest taki powolny to niewiele to
> pomoże.
Nie rozumiem  ?????!!!!!
>
> ps. na przyszłość dodaj bitmapę do (większych) macierzy. W tym wypadku by nie
> pomogło ale innym rebuildom owszem.
Tu niestety także nie kumam  ;-/
>
>> Dalej nie chce mi się odbudować. md1 oraz md3 idą.
>> Poniżej informacje z rekonstrukcji.
>>
>> [root w dns2 ~]# cat /proc/mdstat
>> Personalities : [raid1]
>> md3 : active raid1 sda3[1]
>>         882570816 blocks [2/1] [_U]
>>
>> md1 : active raid1 sda1[1]
>>         7815488 blocks [2/1] [_U]
>>
>> md2 : active raid1 sda2[1]
>>         86373376 blocks [2/1] [_U]
>>
>> unused devices: <none>
>> [root w dns2 ~]# df -h
>> System plików  rozm. użyte dost. %uż. zamont. na
>> /dev/md2         81G   45G   33G  58% /
>> run             2,5G  312K  2,5G   1% /run
>> devtmpfs        2,5G  8,0K  2,5G   1% /dev
>> /dev/md3        829G  561G  227G  72% /var/ftp
>> [root w dns2 ~]# cfdisk
>>
>> [root w dns2 ~]# mdadm --manage /dev/md1 --add /dev/sdb1
>> mdadm: added /dev/sdb1
>> [root w dns2 ~]# cat /proc/mdstat
>> Personalities : [raid1]
>> md3 : active raid1 sda3[1]
>>         882570816 blocks [2/1] [_U]
>>
>> md1 : active raid1 sdb1[2] sda1[1]
>>         7815488 blocks [2/1] [_U]
>>         [>....................]  recovery =  0.1% (13056/7815488)
>> finish=19.8min speed=6528K/sec
>>
>> md2 : active raid1 sda2[1]
>>         86373376 blocks [2/1] [_U]
>>
>> unused devices: <none>
>> [root w dns2 ~]# cat /proc/mdstat
>> Personalities : [raid1]
>> md3 : active raid1 sda3[1]
>>         882570816 blocks [2/1] [_U]
>>
>> md1 : active raid1 sdb1[0] sda1[1]
>>         7815488 blocks [2/2] [UU]
>>
>> md2 : active raid1 sda2[1]
>>         86373376 blocks [2/1] [_U]
>>
>> unused devices: <none>
>> [root w dns2 ~]# mdadm --manage /dev/md2 --add /dev/sdb2
>> mdadm: added /dev/sdb2
>> [root w dns2 ~]# cat /proc/mdstat
>> Personalities : [raid1]
>> md3 : active raid1 sda3[1]
>>         882570816 blocks [2/1] [_U]
>>
>> md1 : active raid1 sdb1[0] sda1[1]
>>         7815488 blocks [2/2] [UU]
>>
>> md2 : active raid1 sdb2[2] sda2[1]
>>         86373376 blocks [2/1] [_U]
>>         [>....................]  recovery =  0.5% (510272/86373376)
>> finish=254.2min speed=5627K/sec
>>
>> unused devices: <none>
>> [root w dns2 ~]# cat /proc/mdstat
>> Personalities : [raid1]
>> md3 : active raid1 sda3[1]
>>         882570816 blocks [2/1] [_U]
>>
>> md1 : active raid1 sdb1[0] sda1[1]
>>         7815488 blocks [2/2] [UU]
>>
>> md2 : active raid1 sdb2[2](S) sda2[1]
>>         86373376 blocks [2/1] [_U]
>>
>> unused devices: <none>
>> [root w dns2 ~]# mdadm --detail /dev/md2
>> /dev/md2:
>>           Version : 0.90
>>     Creation Time : Sat Nov  8 14:06:55 2008
>>        Raid Level : raid1
>>        Array Size : 86373376 (82.37 GiB 88.45 GB)
>>     Used Dev Size : 86373376 (82.37 GiB 88.45 GB)
>>      Raid Devices : 2
>>     Total Devices : 2
>> Preferred Minor : 2
>>       Persistence : Superblock is persistent
>>
>>       Update Time : Tue Nov  3 16:08:49 2015
>>             State : clean, degraded
>>    Active Devices : 1
>> Working Devices : 2
>>    Failed Devices : 0
>>     Spare Devices : 1
>>
>>              UUID : ad96c3c7:6fb5b23a:0be776df:a7034ab0
>>            Events : 0.6226541
>>
>>       Number   Major   Minor   RaidDevice State
>>          0       0        0        0      removed
>>          1       8        2        1      active sync   /dev/sda2
>>
>>          2       8       18        -      spare   /dev/sdb2
>>
No nie odbudowuje się !!

[root w dns2 ~]# mdadm --manage /dev/md2 --add /dev/sdb2
mdadm: Cannot open /dev/sdb2: Device or resource busy
[root w dns2 ~]# cat /proc/mdstat
Personalities : [raid1]
md3 : active raid1 sda3[1]
       882570816 blocks [2/1] [_U]

md1 : active raid1 sdb1[0] sda1[1]
       7815488 blocks [2/2] [UU]

md2 : active raid1 sdb2[2](S) sda2[1]
       86373376 blocks [2/1] [_U]

unused devices: <none>
[root w dns2 ~]# mdadm --detail /dev/md2
/dev/md2:
         Version : 0.90
   Creation Time : Sat Nov  8 14:06:55 2008
      Raid Level : raid1
      Array Size : 86373376 (82.37 GiB 88.45 GB)
   Used Dev Size : 86373376 (82.37 GiB 88.45 GB)
    Raid Devices : 2
   Total Devices : 2
Preferred Minor : 2
     Persistence : Superblock is persistent

     Update Time : Wed Nov  4 10:55:39 2015
           State : clean, degraded
  Active Devices : 1
Working Devices : 2
  Failed Devices : 0
   Spare Devices : 1

            UUID : ad96c3c7:6fb5b23a:0be776df:a7034ab0
          Events : 0.6259504

     Number   Major   Minor   RaidDevice State
        0       0        0        0      removed
        1       8        2        1      active sync   /dev/sda2

        2       8       18        -      spare   /dev/sdb2

Co do samej prędkości działania, tym bym się nie przejmował. To starsza 
maszyna (niestety produkcyjna).
[root w dns2 ~]# cat /proc/sys/dev/raid/speed_limit_min
1000
[root w dns2 ~]# cat /proc/sys/dev/raid/speed_limit_max
200000




Więcej informacji o liście pld-users-pl