Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2005
    Posts
    598

    Need urgent help with mdadm

    Hi,

    One of my remote server crashed and it RAID1 resync started automatically after every reboot. The resync is affecting the performance and I need to get the system up to do some urgent work.

    How do I stop the resync for a while or stop the resync from starting after a reboot?

  2. #2
    Join Date
    May 2009
    Posts
    165
    Check in /proc/sys/dev/raid/speed_limit_max and
    /proc/sys/dev/raid/speed_limit_min

    These are writable files that can communicate your RAID intentions to the kernel and by default, contain values 100000 and 100 respectively. These are the values in KB of I/O that may go to 'resyncing' activities, the default max value being the theoretical goal. So if you want the resync to stop/ slow down, these values may be reduced during peak hours, provided you are willing to undertake the risks ( redundancy provided by the array is reduced, if you choose not to bring the array to proper operating condition )

    Hope this helps in anyway

  3. #3
    Join Date
    Mar 2009
    Location
    Austin, TX
    Posts
    935
    You can purposely fail a device in the array and kick it out.

    Assuming your RAID-1 have /dev/sda1 and /dev/sdb1. The array is md0.

    Code:
    mdadm --fail /dev/md0 /dev/sdb1
    Code:
    mdadm --remove /dev/md0 /dev/sdb1
    SysAdmin.xyz
    Having severs with customer data on it without proper monitoring is like having one night stand without using protections - eventually, there will be an 'oh s**t!' moment.

  4. #4
    Join Date
    Jul 2005
    Posts
    598
    The disk rebuilding failed. One of the disk died
    The sda died a week after the sdb died..What a coincidence.

  5. #5
    Join Date
    Mar 2009
    Location
    Austin, TX
    Posts
    935
    Sorry to hear that. But this type of cases do happens, rarely though.

    The rebuid/resync process itself is quite intensive. It could put a tow on the disks.

    Any recent backups made?
    SysAdmin.xyz
    Having severs with customer data on it without proper monitoring is like having one night stand without using protections - eventually, there will be an 'oh s**t!' moment.

  6. #6
    Join Date
    Sep 2007
    Posts
    369

    *

    Quote Originally Posted by Tomcatf14 View Post
    The disk rebuilding failed. One of the disk died
    The sda died a week after the sdb died..What a coincidence.
    Did you try e2fsck -f /dev/sd*?
    Thanks,
    Noman
    noman@linuxonsupport.com
    O Canada, we stand on guard for thee

Similar Threads

  1. raid 1 restore with mdadm
    By madpato in forum Hosting Security and Technology
    Replies: 2
    Last Post: 06-04-2008, 10:01 AM
  2. mdadm: Raid active partition
    By Tomcatf14 in forum Hosting Security and Technology
    Replies: 4
    Last Post: 10-22-2007, 02:42 PM
  3. raid 0 using mdadm
    By Bambuk in forum Hosting Security and Technology
    Replies: 10
    Last Post: 08-09-2005, 01:53 AM
  4. linux raid raidtools/raidtab to mdadm
    By addady in forum Hosting Security and Technology
    Replies: 0
    Last Post: 05-11-2004, 01:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •