Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

/proc/mdstat query software raid1 mdadm

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
pappin
Posts: 37
Joined: 2005-10-05 16:11
Location: Scotland

/proc/mdstat query software raid1 mdadm

#1 Post by pappin »

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>

User avatar
Bloom
df -h | grep > 90TiB
df -h | grep > 90TiB
Posts: 505
Joined: 2017-11-11 12:23
Been thanked: 26 times

Re: /proc/mdstat query software raid1 mdadm

#2 Post by Bloom »

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.

pappin
Posts: 37
Joined: 2005-10-05 16:11
Location: Scotland

Re: /proc/mdstat query software raid1 mdadm

#3 Post by pappin »

Thanks Bloom

Post Reply