linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] mdadm support for journal device of RAID-4/5/6
@ 2015-08-28 23:27 Song Liu
  2015-08-28 23:27 ` [PATCH 1/6] add macros for MD_DISK_ROLE_(SPARE/FAULTY) Song Liu
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Song Liu @ 2015-08-28 23:27 UTC (permalink / raw)
  To: linux-raid; +Cc: shli, dan.j.williams, neilb, hch, Song Liu

Hi,

These are mdadm patches to support journal device in RAID-4/5/6.
Shaohua has sent the kernel patches earlier:
http://marc.info/?l=linux-raid&m=143950154500852

These patches add write journal support for the following commands:

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

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    |  42 +++++++++++++----
 Create.c      |  20 +++++---
 Detail.c      |   3 +-
 Incremental.c |  31 +++++++++++--
 ReadMe.c      |   2 +
 md_p.h        |  64 +++++++++++++++++++++++++
 mdadm.8.in    |   6 +++
 mdadm.c       |  24 ++++++++++
 mdadm.h       |   5 ++
 super1.c      | 147 ++++++++++++++++++++++++++++++++++++++++++++++++++--------
 10 files changed, 305 insertions(+), 39 deletions(-)

--
1.8.1

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

end of thread, other threads:[~2015-10-19  2:42 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-28 23:27 [PATCH 0/6] mdadm support for journal device of RAID-4/5/6 Song Liu
2015-08-28 23:27 ` [PATCH 1/6] add macros for MD_DISK_ROLE_(SPARE/FAULTY) Song Liu
2015-08-28 23:27 ` [PATCH 2/6] Show device as journal in --detail --examine Song Liu
2015-09-02  6:53   ` Christoph Hellwig
2015-09-02  7:04     ` Song Liu
2015-09-02  7:07       ` Christoph Hellwig
2015-09-02  7:09         ` Song Liu
2015-08-28 23:27 ` [PATCH 3/6] Enable create array with write journal (--write-journal DEVICE) Song Liu
2015-10-06 18:32   ` Dan Williams
2015-10-07  6:06     ` Song Liu
2015-10-19  2:42       ` Neil Brown
2015-08-28 23:27 ` [PATCH 4/6] Assemble array with write journal Song Liu
2015-10-06 20:11   ` Dan Williams
2015-10-07  6:13     ` Song Liu
2015-08-28 23:27 ` [PATCH 5/6] Check write journal in incremental Song Liu
2015-10-06 20:17   ` Dan Williams
2015-10-19  2:32     ` Neil Brown
2015-08-28 23:27 ` [PATCH 6/6] Add help message and man entry for --write-journal Song Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).