/proc/mdstat query software raid1 mdadm

Kernels & Hardware, configuring network, installing services

/proc/mdstat query software raid1 mdadm

Postby pappin » 2018-04-07 08:40

I have a software raid1 setup with stretch with 2 sata drives

I notice that when I run cat /proc/mdstat that my sda drive is mostly listed as the first drive except for md1 which lists the sdb drive first. Its a raid 1 setup and my drives are local

Is this normal and ok ?

Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]

md3 : active raid1 sda7[3] sdb7[2]
1950720 blocks super 1.2 [2/2] [UU]

md4 : active raid1 sda8[3] sdb8[2]
205838336 blocks super 1.2 [2/2] [UU]
bitmap: 0/2 pages [0KB], 65536KB chunk

md0 : active raid1 sda1[3] sdb1[2]
24396800 blocks super 1.2 [2/2] [UU]

md2 : active raid1 sda6[3] sdb6[2]
2093056 blocks super 1.2 [2/2] [UU]

md1 : active raid1 sdb5[2] sda5[3]
9756672 blocks super 1.2 [2/2] [UU]

unused devices: <none>
pappin
 
Posts: 36
Joined: 2005-10-05 16:11
Location: Scotland

Re: /proc/mdstat query software raid1 mdadm

Postby Bloom » 2018-04-07 08:58

Yes, that's ok. The Linux kernel 'numbers' the hard drives in order of detection during boot. This usually follows the SATA port numbers. Depending on your connections, the order in which the drives are mounted in your computer case can differ.
User avatar
Bloom
 
Posts: 46
Joined: 2017-11-11 12:23

Re: /proc/mdstat query software raid1 mdadm

Postby pappin » 2018-04-07 11:14

Thanks Bloom
pappin
 
Posts: 36
Joined: 2005-10-05 16:11
Location: Scotland


Return to System configuration

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable