Replies: 1 comment 7 replies
-
|
I guess the error is intended in that sense, that it's a very early stage check that all nmdctl commands have, done before even the arguments for status are parsed: Similarly wrong arguments will also cause "plain-text" output. If we were to just wrap the error in a json format (and then I guess we'd also need to handle prometheus output too), the response would still be very different from actual status json response, so special handling would anyway be needed in scripts using the output. So not sure if that would make sense, if scripts using the output can handle this anyway. About the "none" parity disk, that's definitely intended for the human status output, as running the array permanently without an parity does not really make sense, so I want to highlight that the parity is missing and that's why it's always shown there. While I think it could make sense to not have it in json output, the "none" parity gets added in to the data structures in the general data collection functions, so the actual format functions all use the same data structures and the "none" parity would need to be separately skipped here: Though without testing I'm not sure if that will have some side effects when for example disks fail or are unassigned for replacement etc. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure if this is the correct place to post this or if I should have opened an issue.
Currently when you install nonraid but before you have created a superblock if you run
nmdctl status -o jsonyou get an output ofError: nonraid module is not loaded Superblock file not found: /nonraid.dat To create an array with this new superblock, run: nmdctl --super /nonraid.dat createIs this intended behavior? I was expecting a json response, but if this is intended behavior I can work with this as well.
Also when you do run
nmdctl --super /nonraid.dat createand thennmdctl status -o jsonthe response has a "disks" object with a "none" parity disk. Is this also intended behavior or should the disks object be empty? Thanks.Beta Was this translation helpful? Give feedback.
All reactions