linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/17] mdadm: SCSI enclosure based array
@ 2015-12-02  0:25 Song Liu
  2015-12-02  0:25 ` [PATCH 01/17] udev rules and infrastructure for /dev/disk/by-slot Song Liu
                   ` (17 more replies)
  0 siblings, 18 replies; 22+ messages in thread
From: Song Liu @ 2015-12-02  0:25 UTC (permalink / raw)
  To: linux-raid; +Cc: neilb, dan.j.williams, shli, Song Liu

These patches by Dan Williams enable creating RAID array based on
SCSI enclosures.

mdadm gets information about SCSI enclosure through ses module in
kernel, and creates array for HDDs in an enclosure.

New udev rules are added to make drive swap in the enclosure based
array easier.

Typical array create flow looks like:

  /* examine enclosures in the system */
  mdadm --detail-platform --brief --enclosure > /etc/mdadm.conf

  /* create policy for enclosure0 and enclosure1 */
  echo "POLICY domain=domain0 action=spare slot=enclosure0" >> /etc/mdadm.conf
  echo "POLICY domain=domain1 action=spare slot=enclosure1" >> /etc/mdadm.conf

  /* add md-ses program */
  echo "PROGRAM /usr/share/mdadm/md-ses" >> /etc/mdadm.conf

  /* create md0 and md1 */
  mdadm --create /dev/md0 enclosure0 -n 15 -l 6 -e 1.2 -c 1024 --run
  mdadm --create /dev/md1 enclosure1 -n 15 -l 6 -e 1.2 -c 1024 --run

  /* add array to mdadm.conf */
  mdadm -Eb enclosure0 enclosure1 >> /etc/mdadm.conf

  /* create udev rules that add drives to array */
  mdadm --udev-rules --enclosure > /lib/udev/rules.d/65-md-raid-hotswap.rules

Dan Williams (15):
  udev rules and infrastructure for /dev/disk/by-slot
  mdadm: allow a /dev/disk/by-slot as domain path descriptor
  'act_spare' should be the minimum requirement for dynamic domains
  fix variable offset when ':' is present in the device name
  imsm: quiet detail platform
  ses: workaround sysfs deprecated
  prepare for enclosure platform details
  enclosure detection/enumeration
  Add --brief support to --enclosure
  config: ENCLOSURE keyword and enclosure device list expansion
  policy: enable enclosure names for domain definitions
  invoke hot-add policy on "change" events
  Toggle enclosure leds in response to raid events
  scsi mode sense/select support
  SCSIMODE: configuration file support for mode page settings.

Song Liu (2):
  Clear MBR in when Kill superblock
  In generated udev rules, skip RAID members

 Create.c                            |  10 +-
 Detail.c                            |  63 +++----
 Incremental.c                       |   9 +
 Kill.c                              |  22 +++
 Makefile                            |  31 +++-
 Monitor.c                           |   3 +
 ReadMe.c                            |   2 +
 config.c                            | 281 +++++++++++++++++++++++++++-
 contrib/md-ses                      | 310 +++++++++++++++++++++++++++++++
 enclosure.c                         | 355 ++++++++++++++++++++++++++++++++++++
 forward-scsi-uevents                |  14 ++
 mdadm.c                             |  99 +++++++---
 mdadm.h                             |  31 +++-
 policy.c                            | 116 +++++++++---
 ses_slot_id                         | 144 +++++++++++++++
 sg_io.c                             | 170 ++++++++++++++++-
 sg_io.h                             |  27 +++
 super-intel.c                       |  29 ++-
 sysfs.c                             |  11 +-
 udev-enclosure-slot.rules.in        |  11 ++
 udev-workaround-sysfs-deprecated.in |   2 +
 util.c                              |   7 +
 22 files changed, 1648 insertions(+), 99 deletions(-)
 create mode 100755 contrib/md-ses
 create mode 100644 enclosure.c
 create mode 100755 forward-scsi-uevents
 create mode 100755 ses_slot_id
 create mode 100644 sg_io.h
 create mode 100644 udev-enclosure-slot.rules.in
 create mode 100644 udev-workaround-sysfs-deprecated.in

--
2.4.6

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

end of thread, other threads:[~2015-12-16 21:49 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-02  0:25 [PATCH 00/17] mdadm: SCSI enclosure based array Song Liu
2015-12-02  0:25 ` [PATCH 01/17] udev rules and infrastructure for /dev/disk/by-slot Song Liu
2015-12-02  0:25 ` [PATCH 02/17] mdadm: allow a /dev/disk/by-slot as domain path descriptor Song Liu
2015-12-02  0:25 ` [PATCH 03/17] 'act_spare' should be the minimum requirement for dynamic domains Song Liu
2015-12-02  0:25 ` [PATCH 04/17] fix variable offset when ':' is present in the device name Song Liu
2015-12-02  0:25 ` [PATCH 05/17] imsm: quiet detail platform Song Liu
2015-12-02  0:25 ` [PATCH 06/17] ses: workaround sysfs deprecated Song Liu
2015-12-02  0:25 ` [PATCH 07/17] prepare for enclosure platform details Song Liu
2015-12-02  0:25 ` [PATCH 08/17] enclosure detection/enumeration Song Liu
2015-12-02  0:25 ` [PATCH 09/17] Add --brief support to --enclosure Song Liu
2015-12-02  0:25 ` [PATCH 10/17] config: ENCLOSURE keyword and enclosure device list expansion Song Liu
2015-12-02  0:25 ` [PATCH 11/17] policy: enable enclosure names for domain definitions Song Liu
2015-12-02  0:25 ` [PATCH 12/17] invoke hot-add policy on "change" events Song Liu
2015-12-02  0:25 ` [PATCH 13/17] Toggle enclosure leds in response to raid events Song Liu
2015-12-02  0:25 ` [PATCH 14/17] scsi mode sense/select support Song Liu
2015-12-02  0:25 ` [PATCH 15/17] SCSIMODE: configuration file support for mode page settings Song Liu
2015-12-02  0:25 ` [PATCH 16/17] Clear MBR in when Kill superblock Song Liu
2015-12-02  0:25 ` [PATCH 17/17] In generated udev rules, skip RAID members Song Liu
2015-12-16  2:01 ` [PATCH 00/17] mdadm: SCSI enclosure based array NeilBrown
2015-12-16 18:54   ` Dan Williams
2015-12-16 21:35     ` NeilBrown
2015-12-16 21:49       ` 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).