Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

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]
Shows types of RAID supported by your 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 articles appear here based on the labels you select. Click to edit the macro and add or change labels.

  • No labels