[Bug 2026889] [NEW] mdadm --remove does not remove failed component
Andrei Caraman
2026889 at bugs.launchpad.net
Tue Jul 11 17:01:32 UTC 2023
Public bug reported:
mdadm 4.2-0ubuntu2 on jammy:
mdadm doesn't remove failed components from raid1 device and returns a 0
exit code. Using the actual device name instead of "failed" or
"detached" doesn't make a difference.
root at server:~# cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md1 : active raid1 sdc2[2] sda2[3] sdb2[4](F)
975581912 blocks super 1.2 [2/2] [UU]
bitmap: 1/2 pages [4KB], 262144KB chunk
md9 : active raid1 sdc1[2] sda1[0] sdb1[1](F)
1046528 blocks super 1.2 [2/2] [UU]
unused devices: <none>
root at server:~# mdadm /dev/md9 -r detached
root at server:~# mdadm /dev/md1 -r detached
root at server:~# mdadm /dev/md9 -r failed
root at server:~# mdadm /dev/md1 -r failed
root at server:~# $?
0: command not found
root at server:~# cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md1 : active raid1 sdc2[2] sda2[3] sdb2[4](F)
975581912 blocks super 1.2 [2/2] [UU]
bitmap: 1/2 pages [4KB], 262144KB chunk
md9 : active raid1 sdc1[2] sda1[0] sdb1[1](F)
1046528 blocks super 1.2 [2/2] [UU]
unused devices: <none>
root at server:~#
** Affects: mdadm (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mdadm in Ubuntu.
https://bugs.launchpad.net/bugs/2026889
Title:
mdadm --remove does not remove failed component
Status in mdadm package in Ubuntu:
New
Bug description:
mdadm 4.2-0ubuntu2 on jammy:
mdadm doesn't remove failed components from raid1 device and returns a
0 exit code. Using the actual device name instead of "failed" or
"detached" doesn't make a difference.
root at server:~# cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md1 : active raid1 sdc2[2] sda2[3] sdb2[4](F)
975581912 blocks super 1.2 [2/2] [UU]
bitmap: 1/2 pages [4KB], 262144KB chunk
md9 : active raid1 sdc1[2] sda1[0] sdb1[1](F)
1046528 blocks super 1.2 [2/2] [UU]
unused devices: <none>
root at server:~# mdadm /dev/md9 -r detached
root at server:~# mdadm /dev/md1 -r detached
root at server:~# mdadm /dev/md9 -r failed
root at server:~# mdadm /dev/md1 -r failed
root at server:~# $?
0: command not found
root at server:~# cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md1 : active raid1 sdc2[2] sda2[3] sdb2[4](F)
975581912 blocks super 1.2 [2/2] [UU]
bitmap: 1/2 pages [4KB], 262144KB chunk
md9 : active raid1 sdc1[2] sda1[0] sdb1[1](F)
1046528 blocks super 1.2 [2/2] [UU]
unused devices: <none>
root at server:~#
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/2026889/+subscriptions
More information about the foundations-bugs
mailing list