Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

RAID resync?

  • 01-03-2009 02:18AM
    #1
    Closed Accounts Posts: 12,807 ✭✭✭✭


    PC was running a bit slow tonight so I did a top to see what the bottleneck was:
    PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND            
     2401 root      15  -5     0    0    0 S   23  0.0   1:43.90 md2_raid1          
    22294 root      15  -5     0    0    0 D    3  0.0   0:10.18 md2_resync
    

    Haven't seen that one before so let's check mdstat:
    ~$ cat /proc/mdstat 
    md2 : active raid1 sda3[0] sdb3[1]
          720852544 blocks [2/2] [UU]
          [=>...................]  check =  5.3% (38769408/720852544) finish=175.0min speed=64920K/sec
          
    md1 : active raid1 sda2[0] sdb2[1]
          3903680 blocks [2/2] [UU]
          	resync=DELAYED
          
    md0 : active raid1 sda1[0] sdb1[1]
          7815488 blocks [2/2] [UU]
    

    So it's doing a resync - but why? Is this a normal thing or should I be concerned that a disk is failing?


Comments

  • Registered Users, Registered Users 2 Posts: 355 ✭✭francosp


    if possible run a dtrace


  • Closed Accounts Posts: 7,562 ✭✭✭leeroybrown


    It's nothing to worry about. It's a cronjob that's set to run a 'checkarray' on the arrays periodically. Have a look in /etc/cron.d/ and there should be an 'mdadm' script that runs it. If you're using Ubuntu it kicks off at 01:06 on Sunday (20 mins ago).


  • Registered Users, Registered Users 2 Posts: 1,606 ✭✭✭djmarkus


    francosp wrote: »
    if possible run a dtrace
    i assume you wer taking the piss here?

    If not you realise that he/she is running linux, and dtrace isnt in linux?


    Anyway RAID resync's arent a big deal. You will see a performance decrease for the duration though.


  • Closed Accounts Posts: 12,807 ✭✭✭✭Orion


    It's nothing to worry about. It's a cronjob that's set to run a 'checkarray' on the arrays periodically. Have a look in /etc/cron.d/ and there should be an 'mdadm' script that runs it. If you're using Ubuntu it kicks off at 01:06 on Sunday (20 mins ago).

    That exactly what it was - thanks. It's set to run at 00:57 on the first Sunday of the month.

    Panic averted :pac:


Advertisement