All of lore.kernel.org
 help / color / mirror / Atom feed
* --detail --export doesn't show all properties
@ 2021-07-05 12:20 BW
       [not found] ` <CAOaDVC6yNDOVAvMu4gBuc+sTH50UrXD3z4sODa1NtFsV9SEZ9Q@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: BW @ 2021-07-05 12:20 UTC (permalink / raw)
  To: linux-raid

This is an example of the --export output:

# mdadm --detail --export /dev/md127
MD_DEVICES=3
MD_METADATA=1.2
MD_UUID=70bc1acd:f879f9cd:dca76d79:d9ce624a
MD_DEVNAME=debian:R5
MD_NAME=debian:R5
MD_DEVICE_dev_sdc_ROLE=spare
MD_DEVICE_dev_sdc_DEV=/dev/sdc
MD_DEVICE_dev_sdd_ROLE=spare
MD_DEVICE_dev_sdd_DEV=/dev/sdd
MD_DEVICE_dev_sdb_ROLE=spare
MD_DEVICE_dev_sdb_DEV=/dev/sdb

This is the same command in "normal" format-output:

# mdadm --detail /dev/md127
/dev/md127:
           Version : 1.2
        Raid Level : raid5
     Total Devices : 3
       Persistence : Superblock is persistent
             State : inactive
   Working Devices : 3
              Name : debian:R5
              UUID : 70bc1acd:f879f9cd:dca76d79:d9ce624a
            Events : 358
    Number   Major   Minor   RaidDevice
       -       8       32        -        /dev/sdc
       -       8       48        -        /dev/sdd
       -       8       16        -        /dev/sdb


It would be nice if the --export included the properties "Raid Level",
"State", "Persistence" (the first two most important).

Another thing, is it correct that "MD_DEVNAME" and "MD_NAME" should be the same?
Or perhaps "MD_NAME" should show the kernel/Device-Mapper name e.g.
"md127", that would be helpful (by the way, what do you call this mdxx
name?)

Thanks
Brian, Denmark

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-07-09  6:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 12:20 --detail --export doesn't show all properties BW
     [not found] ` <CAOaDVC6yNDOVAvMu4gBuc+sTH50UrXD3z4sODa1NtFsV9SEZ9Q@mail.gmail.com>
2021-07-07 11:08   ` BW
2021-07-07 22:25     ` NeilBrown
2021-07-08  5:18       ` BW
2021-07-08 23:52         ` NeilBrown
2021-07-09  6:00           ` BW
2021-07-09  6:13             ` NeilBrown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.