[PATCH v2 0/6] mdadm support for journal device of RAID-4/5/6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

These are v2 of mdadm patches to support journal device in RAID-4/5/6.
Shaohua has sent latest kernel patches earlier today

http://marc.info/?l=linux-raid&m=144436646730381

Most of these patches are very close to v1, except --assemble, where
we improved checks for journal devices.

The following are copied from v1 pathes.

These patches add write journal support for the following commands:

  mdadm --detail
  mdadm --examine
  mdadm --create  --write-journal DEVICE
  mdadm --assemble
  mdadm --incremental

Journal device is assigned with dev_role 0xFFFD (where 0xFFFF is for
spare and 0xFFFE is for failed). Note that there is compatibility
issue that older mdadm will show journal device as spare in --detail:

    Number   Major   Minor   RaidDevice State
       0       8       32        0      active sync   /dev/sdc
       1       8       48        1      active sync   /dev/sdd
       2       8       64        2      active sync   /dev/sde
       3       8       80        3      active sync   /dev/sdf

       4       8       17        -      spare   /dev/sdb1

Also, older mdadm will show journal device as "Active device 65533"
in --examine:

   Device Role : Active device 65533
   Array State : AAAA ('A' == active, '.' == missing, 'R' == replacing)

Song Liu (6):
  add macros for MD_DISK_ROLE_(SPARE/FAULTY)
  Show device as journal in --detail --examine
  Enable create array with write journal (--write-journal DEVICE).
  Assemble array with write journal
  Check write journal in incremental
  Add help message and man entry for --write-journal

 Assemble.c    |  57 ++++++++++++++++++-----
 Create.c      |  20 +++++---
 Detail.c      |   3 +-
 Incremental.c |  31 +++++++++++--
 ReadMe.c      |   2 +
 md_p.h        |  64 ++++++++++++++++++++++++++
 mdadm.8.in    |   6 +++
 mdadm.c       |  23 ++++++++++
 mdadm.h       |   5 ++
 super1.c      | 144 ++++++++++++++++++++++++++++++++++++++++++++++++++--------
 10 files changed, 313 insertions(+), 42 deletions(-)

--
2.4.6
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux