LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Understanding /proc/mdstat (https://www.linuxquestions.org/questions/linux-newbie-8/understanding-proc-mdstat-4175412671/)

anon091 06-21-2012 09:27 AM

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.

tshikose 06-21-2012 10:48 AM

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.

anon091 06-21-2012 10:52 AM

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.

chrism01 06-21-2012 08:03 PM

Try posting
Code:

fdisk -l
lowercase L there

anon091 06-22-2012 01:10 AM

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


tshikose 06-22-2012 01:59 AM

Post your /etc/fstab.
My bet will be that it has some UUID entries.

anon091 06-22-2012 04:54 AM

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.

tshikose 06-22-2012 06:12 AM

Post your /etc/fstab.


All times are GMT -5. The time now is 08:52 PM.