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

Ledmon changes device name assigned after every loop. #129

Open
mtkaczyk opened this issue Mar 22, 2023 · 1 comment
Open

Ledmon changes device name assigned after every loop. #129

mtkaczyk opened this issue Mar 22, 2023 · 1 comment
Labels

Comments

@mtkaczyk
Copy link
Contributor

mtkaczyk commented Mar 22, 2023

If there are multiple namespaces defined, I can see that ledmon is changing namespace assigned in every loop:

ll /sys/block/| grep nvme7
lrwxrwxrwx 1 root root 0 Mar 21 19:35 nvme7n1 -> ../devices/pci0000:5d/0000:5d:05.5/pci10001:00/10001:00:03.0/10001:02:00.0/nvme/nvme7/nvme7n1
lrwxrwxrwx 1 root root 0 Mar 21 19:35 nvme7n2 -> ../devices/pci0000:5d/0000:5d:05.5/pci10001:00/10001:00:03.0/10001:02:00.0/nvme/nvme7/nvme7n2

ledmon[56099]: NAME CHANGED /sys/devices/pci0000:5d/0000:5d:05.5/pci10001:00/10001:00:03.0/10001:02:00.0/nvme/nvme7/nvme7n1 to /sys/devices/pci0000:5d/0000:5d:05.5/pci10001:00/10001:00:03.0/10001:02:00.0/nvme/nvme7/nvme7n2
ledmon[56099]: NAME CHANGED /sys/devices/pci0000:5d/0000:5d:05.5/pci10001:00/10001:00:03.0/10001:02:00.0/nvme/nvme7/nvme7n2 to /sys/devices/pci0000:5d/0000:5d:05.5/pci10001:00/10001:00:03.0/10001:02:00.0/nvme/nvme7/nvme7n1

Next loop:

ledmon[56099]: NAME CHANGED /sys/devices/pci0000:5d/0000:5d:05.5/pci10001:00/10001:00:03.0/10001:02:00.0/nvme/nvme7/nvme7n1 to /sys/devices/pci0000:5d/0000:5d:05.5/pci10001:00/10001:00:03.0/10001:02:00.0/nvme/nvme7/nvme7n2
ledmon[56099]: NAME CHANGED /sys/devices/pci0000:5d/0000:5d:05.5/pci10001:00/10001:00:03.0/10001:02:00.0/nvme/nvme7/nvme7n2 to /sys/devices/pci0000:5d/0000:5d:05.5/pci10001:00/10001:00:03.0/10001:02:00.0/nvme/nvme7/nvme7n1

It could affect scenarios with multiple namespaces defined and VROC RAID array on top of first one, however I didn't dig into it. Need to be investigated.

@mtkaczyk mtkaczyk mentioned this issue Oct 19, 2023
@ktanska
Copy link
Contributor

ktanska commented Dec 1, 2023

Probably fix is needed in block_compare() function for NPEM.

@ktanska ktanska added the Bug label Apr 5, 2024
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

2 participants