[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to change device number in RAID array



On Mon, 22 Aug 2022 10:00:34 -0400
Gary Dale <gary@extremeground.com> wrote:

> I'm running Debian/Bookworm on an AMD64 system. I recently added a 
> second drive to it for use in a RAID1 array. However I'm now getting 
> regular messages about "SparesMissing event on...".
> 
> cat /proc/mdstat shows the problem: active raid1 sda1[0] sdb1[2] -
> the newly added drive is showing up as [2] instead of [1]. Apparently
> mdadm thinks there should be another drive sitting around as a spare.
> 
> Is there a simple way to fix this?

Have you tried searching the Internet on that error message?

It might help if you showed the entire output from /proc/mdstat,
complete with shell prompts. E.g.:

root@hawk:~# cat /proc/mdstat 
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10] 
md0 : active raid5 sdc1[0] sdd1[1] sde1[4](S) sdb1[3]
      7813768832 blocks super 1.2 level 5, 64k chunk, algorithm 2 [3/3] [UUU]
      bitmap: 0/30 pages [0KB], 65536KB chunk

unused devices: <none>
root@hawk:~#

You may notice from my output that I have raid on 0, 1, 3, and 4. 4 is
the spare. 3 and 4 are not in numeric order. And there is no 2. So I'm
not sure that the fact that your new partition is showing up out of
numeric order is significant. Perhaps someone with better RAID
experience can address this.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/


Reply to: