Disk Activity Plot Not Working With SAS Drives

@juchong Hello again and thanks for the report.

I think this is probably down to either:

  1. The stats not actually surfacing in /proc/diskstats (as is the case with md devices) as that is where we grab them from.
  2. We are not usefully resolving the correct by-id name for the device, ie the /proc/diskstats uses the temp canonical type names but internally Rockstor uses the boot safe by-id type names: but there can be multiple by-id type names and for speed we take a short cut for these stats that may be coming back to bite us in this case (if I remember correctly).

The following code is the nub/core of the retrieval and includes the potential by-id reference:

with the byid_disk_map referencing the output of:

To help discern which is the cause you could give us the output of:

cat /proc/diskstats

while there is confirmed activity on the problematic reporting devices (two consecutive readings would be nice as well) and also a screen shot of your disks page to see what by-id names Rockstor is using, so we can check for (2) above.

It will also be necessary to report the full output of the following command:

ls -la /dev/disk/by-id

Note that at least all of the above requested information will be required to pin this down. But if these drives are like the md case they just don’t report their activity in that way. But I’m guessing we have a (2) type cause on this one. Just a quick guess for the time being though until get more info.

Hope that helps and thanks again for the report.

I’m assuming your last report ended up resolving itself successfully in time as there was no further update after my subsequent reply in that thread?

Best to reply contextually there I would say on that one.