On 01/05/17 09:44 AM, jdd@dodin.org wrote:
the most infos are from mdadm --detail /dev/md127, but where are these infos stored?
When I need to answer questions like that, and this is generic, not specific to this case, I start with --help Then the man page. Yes, man pages are often badly written, but they also give clues. Often, at the end of the man page, there is a "FILES" section that mentions config files and others, as is the case here. Then, quite probably, I run the 'strings' command looking for any file references; probably that involves strings <binary> | grep "/" Sometimes that's not the definitive answer. Sometime you need to run "ldd" to find what libraries it uses. Just about everything uses libc and ld-linux, what you need to check out are libraries that are specific to that application. Like anything to do with computers in general and Linux in particular, this requires a bit of sense and though, its not a neat, deterministic algorithm. In this case strings /sbin/mdadm | grep -e "/" turns up quite a few items that are worth investigating. Heck, it even shows part of the "--help" that might be useful! Compared to some, I think this is an easy one. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org