Results 1 to 6 of 6
Thread: Need urgent help with mdadm
-
07-27-2009, 07:11 AM #1Web Hosting Master
- 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?
-
07-27-2009, 10:47 PM #2WHT Addict
- 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
-
07-28-2009, 12:33 AM #3Web Hosting Master
- 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.
-
07-28-2009, 03:19 AM #4Web Hosting Master
- 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.
-
07-28-2009, 09:04 AM #5Web Hosting Master
- 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.
-
07-28-2009, 01:11 PM #6Aspiring Evangelist
- Join Date
- Sep 2007
- Posts
- 369
Similar Threads
-
raid 1 restore with mdadm
By madpato in forum Hosting Security and TechnologyReplies: 2Last Post: 06-04-2008, 10:01 AM -
mdadm: Raid active partition
By Tomcatf14 in forum Hosting Security and TechnologyReplies: 4Last Post: 10-22-2007, 02:42 PM -
raid 0 using mdadm
By Bambuk in forum Hosting Security and TechnologyReplies: 10Last Post: 08-09-2005, 01:53 AM -
linux raid raidtools/raidtab to mdadm
By addady in forum Hosting Security and TechnologyReplies: 0Last Post: 05-11-2004, 01:35 AM