LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-20-2011, 09:56 AM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
Help understanding /prov/mdstat


I had a server that was hard powered down, now I notice when looking in /proc/mdstat, it shows the following. I'm guessing when my system went down hard, something got messed up, but I dont understand what exactly its doing by resyncing. All my data on md0 and md1 appears to be there. Both volumes are RAID5setup in the RAID BIOS upon boot. Does anyone know what its doing exactly? Since its a hardware RAID I'd think any array rebuilding would be done through that, although this says resync. I tried googling and reading the first page of results, but its no clearer to me really.

Personalities : [raid1]
read_ahead 1024 sectors
Event: 2
md0 : active raid1 sdb1[1] sda1[0]
859549696 blocks [2/2] [UU]
resync=DELAYED
md1 : active raid1 sdb2[1] sda2[0]
859533632 blocks [2/2] [UU]
[>....................] resync = 2.1% (18808576/859533632) finish=1404.8min speed=9971K/sec
unused devices: <none>

Also, what happens if people start adding data to the server before these resyncings finish? will that cause problems?
 
Old 04-20-2011, 10:59 AM   #2
lystor
Member
 
Registered: May 2010
Location: Ukraine
Posts: 43

Rep: Reputation: 3
Thumbs up

Quote:
Originally Posted by rjo98 View Post
Both volumes are RAID5setup in the RAID BIOS upon boot. Does anyone know what its doing exactly? Since its a hardware RAID I'd think any array rebuilding would be done through that, although this says resync. I tried googling and reading the first page of results, but its no clearer to me really.

Personalities : [raid1]
read_ahead 1024 sectors
Event: 2
md0 : active raid1 sdb1[1] sda1[0]
859549696 blocks [2/2] [UU]
resync=DELAYED

md1 : active raid1 sdb2[1] sda2[0]
859533632 blocks [2/2] [UU]
[>....................] resync = 2.1% (18808576/859533632) finish=1404.8min speed=9971K/sec
unused devices: <none>
Hi
md0 is a software raid1 (mirror) of sda1 and sdb1
md1 is a software raid1 (mirror) of sda2 and sdb2.
These software raid's were created by mdadm tool.

RAID1 resync is a process of copying data from first to second or from second to first RAID HDD.

Quote:
Originally Posted by rjo98 View Post
Also, what happens if people start adding data to the server before these resyncings finish? will that cause problems?
No. Main problem - RAID read/write speed will be decreased.

Last edited by lystor; 04-20-2011 at 11:03 AM.
 
1 members found this post helpful.
Old 04-20-2011, 11:17 AM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Thanks. I was totally confused because on that server i do have a /dev/md0 and a /dev/md1, so i thought it was talking about those! now it makes perfect sense, many thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/proc/mdstat shows [U_] for all sdb entries nanziameda Linux - Server 1 04-05-2011 03:29 AM
[SOLVED] Issues with Mobile Broadband Connection ( Service Prov.-MTS MBlaze ) abhi.daemon Linux - General 2 12-11-2010 11:35 PM
mdstat status...! sanjay2004 Linux - Software 1 09-22-2008 05:38 AM
is there a way to have windows put on, int prov doesnt recognize linux pbuff2255 Linux - Newbie 3 12-10-2007 08:32 PM
event 7 displayed in /proc/mdstat craigusb Linux - Software 0 07-05-2006 03:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration