Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The mdstat parser doesn't parse the device up indication correctly #3788

Open
bfahr opened this issue May 10, 2023 · 1 comment
Open

The mdstat parser doesn't parse the device up indication correctly #3788

bfahr opened this issue May 10, 2023 · 1 comment
Assignees
Labels

Comments

@bfahr
Copy link
Contributor

bfahr commented May 10, 2023

The mdstat parser doesn't parse the up/down status indicator correctly when there are more or less devices than there are status indicators. This is possible when there is a spare device or when a device is down. Here are two cases that fail to parse but have valid information:

Personalities : [raid6] [raid5] [raid4] 
md0 : active raid6 nvme6n1[6] nvme5n1[5] nvme4n1[4] nvme7n1[7](S) nvme2n1[2] nvme1n1[1] nvme0n1[0] nvme3n1[3]
      7813406720 blocks super 1.2 level 6, 512k chunk, algorithm 2 [7/7] [UUUUUUU]
      bitmap: 2/12 pages [8KB], 65536KB chunk

unused devices: <none>


Personalities : [raid1] 
md0 : active raid1 sdb1[1]
      488254464 blocks super 1.2 [2/1] [_U]
      bitmap: 4/4 pages [16KB], 65536KB chunk

unused devices: <none>
@bfahr bfahr added the bug label May 10, 2023
@bfahr bfahr self-assigned this May 10, 2023
@bfahr
Copy link
Contributor Author

bfahr commented May 10, 2023

I'm currently working on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant