Is there a way to show RAID details in a similar way to MDADM?

1

1

I find mdadm --detail <device> very useful when I need to know what is going on with the device (/proc/mdadm too).

Example:

/dev/md0:
        Version : 1.2
  Creation Time : Mon Mar  4 08:35:09 2013
     Raid Level : raid10
     Array Size : 1464884224 (1397.02 GiB 1500.04 GB)
  Used Dev Size : 732442112 (698.51 GiB 750.02 GB)
   Raid Devices : 4
  Total Devices : 4
    Persistence : Superblock is persistent

    Update Time : Mon Mar  3 11:41:59 2014
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0

         Layout : near=2
     Chunk Size : 512K

           Name : server.example.com:0  (local to host server.example.com)
           UUID : bfee0572:e809b555:22d8bfdb:e585371c
         Events : 409

    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync set-A   /dev/sdb1
       1       8       33        1      active sync set-B   /dev/sdc1
       2       8       49        2      active sync set-A   /dev/sdd1
       3       8       65        3      active sync set-B   /dev/sde1

Recently I started using BTRFS and wonder if there is a way to have similar information about my BTRFS RAID devices? btrfs filesystem show <device> is good, but does not have the same level of details...

DejanLekic

Posted 2014-03-03T14:01:20.767

Reputation: 739

Answers

1

Nop. You can only have btrfs fi sh and btrfs fi df /. For example:

# btrfs fi sh
Label: 'rootfs'  uuid: 44d484b7-a780-43a2-a1e4-fc98bac776e6
        Total devices 1 FS bytes used 3.16GiB
        devid    1 size 46.56GiB used 6.06GiB path /dev/mapper/sda3_crypt

Label: 'boot'  uuid: 2772f08c-8029-4cc5-8a43-11aa7a5dc699
        Total devices 3 FS bytes used 69.43MiB
        devid    1 size 238.00MiB used 192.00MiB path /dev/sda2
        devid    2 size 238.00MiB used 80.00MiB path /dev/sdb2
        devid    3 size 238.00MiB used 112.00MiB path /dev/sdc2

Label: 'home'  uuid: fcfafad3-86f6-462d-9054-aee438acb548
        Total devices 3 FS bytes used 456.93GiB
        devid    1 size 884.71GiB used 319.03GiB path /dev/mapper/sda4_crypt
        devid    2 size 884.67GiB used 318.00GiB path /dev/mapper/sdb4_crypt
        devid    3 size 884.71GiB used 319.03GiB path /dev/mapper/sdc4_crypt

Btrfs v3.14.1


# btrfs fi df /home
Data, RAID1: total=476.00GiB, used=456.21GiB
System, RAID1: total=32.00MiB, used=112.00KiB
Metadata, RAID1: total=2.00GiB, used=729.53MiB

Damien Clauzel

Posted 2014-03-03T14:01:20.767

Reputation: 235

I have already mentioned that it is good, but not as good as what mdadm shows, but I will accept your answer as it is the only one... – DejanLekic – 2014-08-01T09:54:16.810