[RAID] Checking current RAID configuration (Linux)

Quick Linux example on checking your current RAID configuration in the terminal.

Check kernel 'md' state

cat /proc/mdstat


Example:

This is a typical Dev Box RAID configuration with OS on RAID1, and data on RAID 5


root@admin:~$ cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md1 : active raid1 sdb2[1] sda2[0]
      136448 blocks [2/2] [UU]

md2 : active raid1 sdb3[1] sda3[0]
      129596288 blocks [2/2] [UU]

md3 : active raid5 sdl1[9] sdk1[8] sdj1[7] sdi1[6] sdh1[5] sdg1[4] sdf1[3] sde1[2] sdd1[1] sdc1[0]
      1318680576 blocks level 5, 1024k chunk, algorithm 2 [10/10] [UUUUUUUUUU]

md0 : active raid1 sdb1[1] sda1[0]
      16787776 blocks [2/2] [UU]

unused devices: <none> 



Brief line-by-line explanation

Personalities : [raid1] [raid6] [raid5] [raid4]
md1 : active raid1 sdb2[1] sda2[0]
      136448 blocks [2/2] [UU]
Personalities : [raid1] [raid6] [raid5] [raid4]

#Types of RAID supported by your current kernel


md1: active raid1 sdb2[1] sda2[0]

#md1 = name of RAID array
#active = RAID is active 
#raid1 = type of RAID
#sdb2 and sda2 = devices associated with this RAID array
#[1] and [0] = RAID role numbers within that array, for each device   


136448 blocks [2/2] [UU]

#Information about fixed size and layout

Related articlesRelated articles appear here based on the labels you select. Click to edit the macro and add or change labels.