LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-21-2012, 10:27 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,674

Rep: Reputation: 47
Understanding /proc/mdstat


when i look at /proc/mdstat i see this

Code:
Personalities : [raid1]
read_ahead 1024 sectors
Event: 2
md0 : active raid1 sdb1[1]
      859549696 blocks [2/1] [_U]

md1 : active raid1 sdb2[1] sda2[0]
      859533632 blocks [2/2] [UU]
      [======>..............]  resync = 30.9% (266213952/859533632) finish=2577.6min speed=3834K/sec
unused devices: <none>
I see that is says something is raid1 and its resync'ing md1, which i'm assuming is my /dev/md1. What I don't understand is that my /dev/md1 is a RAID5 external array to this server, so why does it say RAID1 and that its resync'ing? It's RAID5'd through the array controller's BIOS utility.
 
Old 06-21-2012, 11:48 AM   #2
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 329

Rep: Reputation: 67
Hi,

The md1 device clearly seems local to your system, as it is seen as combination of sdb2 and sda2.
You might get those sd? devices brought up in your system from a remote server by iSCSI technology.
You should post your /etc/fstab.
 
Old 06-21-2012, 11:52 AM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,674

Original Poster
Rep: Reputation: 47
Thats the other thing I don't understand, when I do a df or look at my fstab, there aren't any sdb? or sda? in there at all.
 
Old 06-21-2012, 09:03 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Try posting
Code:
fdisk -l
lowercase L there
 
Old 06-22-2012, 02:10 AM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,674

Original Poster
Rep: Reputation: 47
Thanks Chris, i see sda and sdb in there. but how can i relate this info to something that shows up in a df or in my fstab?

Code:
Disk /dev/sda: 1760.3 GB, 1760349388800 bytes
255 heads, 63 sectors/track, 214016 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1    107009 859549761   fd  Linux raid autodetect
/dev/sda2        107010    214016 859533727+  fd  Linux raid autodetect

Disk /dev/sdb: 1760.3 GB, 1760349388800 bytes
255 heads, 63 sectors/track, 214016 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdb1   *         1    107009 859549761   fd  Linux raid autodetect
/dev/sdb2        107010    214016 859533727+  fd  Linux raid autodetect
 
Old 06-22-2012, 02:59 AM   #6
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 329

Rep: Reputation: 67
Post your /etc/fstab.
My bet will be that it has some UUID entries.
 
Old 06-22-2012, 05:54 AM   #7
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,674

Original Poster
Rep: Reputation: 47
There are no UUID's in my fstab. the first column is made up entirely of LABEL's or the /dev/stuff for my two external arrays.
 
Old 06-22-2012, 07:12 AM   #8
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 329

Rep: Reputation: 67
Post your /etc/fstab.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
New to mdadm. Can someone interpret my /proc/mdstat? bvz Linux - Newbie 2 09-29-2011 12:39 AM
[SOLVED] Can only see one drive in /proc/mdstat hedron Slackware 3 09-05-2011 10:56 AM
cat /proc/mdstat - how to tell what volumes its resyncing rjo98 Linux - Server 2 04-29-2011 09:47 AM
[SOLVED] Help understanding /prov/mdstat rjo98 Linux - Newbie 2 04-20-2011 12:17 PM
event 7 displayed in /proc/mdstat craigusb Linux - Software 0 07-05-2006 04:06 AM


All times are GMT -5. The time now is 01:43 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration