-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
[FEAT] Multipath support (handle duplicate /dev/dsX devices) #81
Comments
hm. That definitely shouldn't happen. can you run Under the hood Scrutiny uses |
Running |
could you paste the output here? Is there a pattern to the devices that were detected vs the ones that are missing? |
Sure, see below. 77 devices, excuse my typo earlier. The web app shows /dev/sda through sdal, skips to sdbr, then skips from there to sdbw
|
can you run (and and attach) the output from the following commands. I want to do a quick check comparing a drive that works vs one that doesn't. It'll confirm that the issue is in the scrutiny collector & not some missing smartctl config.
|
The output is attached. |
nothing looks weird there. Looks like I'm going to need you to do a full log dump. Can you run the container with DEBUG and *_LOG_FILE env vars specified, then attach the log files here?
|
Something I should have mentioned in the op: I'm running the web app in Docker and using the standalone collector on a separate host. The debug logs from each are attached. |
Hey @velmirslac Thanks for the log files, they were incredibly helpful. |
Hey @velmirslac can you give me a bit more information about your system? I was able to figure out why those devices are missing, they're detected with the same WWN number as another disk. eg. Intially I thought that maybe the WWN was miscalcuated, but then I noticed that each device pair had the same serial number. Are you sure you have 77 separate physical disks? Is this a virtualized environment with virtual disks? Any information you can provide would be appreciated. |
Sure thing. The system uses multipathd to connect two SATA controllers to the same pool of physical disks. This provides redundancy in the event one SATA controller fails. In this configuration, each HDD gets 2 /dev/sdX assignments - one on each controller. The devices are then actually accessed by the system, such as ZFS, as /dev/mpathX. I apologize for not adding this info to the initial post. Since Scrutiny is evaluating WWNs and serials and then de-duplicating entries, it may be more appropriate to reclassify this issue as a feature request for multipath support rather than a bug. |
Hey @velmirslac In that case, yeah I guess it makes sense that scrutiny sees duplicate devices. What would you expect "multipath" support to mean exactly? Since the devices are all detected, I guess scrutiny is "working-as-intended", though it is collecting duplicate SMART data. Would you want scrutiny to use the |
I think it would probably be best to keep with displaying the de-duplicated Showing which |
I think the problem is that Scrutiny doesn't have a way to determine that one device file is duplicated by another. I think the solution would be for you to add a Would that be sufficient? |
Hey @velmirslac I'm going to close this issue as the solution seems to just ignore the duplicated devices, or to run the collector in a container and only pass in the "real" devices to the container. If you don't think this is sufficient, feel free to re-open this issue :) |
Describe the bug
After running the collector on a system with 70 hard drives, the web app displayed only 42.
Expected behavior
Either listing all drives in a single page or generating multiple pages, or at least an indication that not all reported drives are displayed.
The text was updated successfully, but these errors were encountered: