Commit 2e2aba39 authored by GangCao's avatar GangCao Committed by Jim Harris
Browse files

conf: add an example of defining RAID bdev



This patch adds an example of how to define the RAID
block device.

Change-Id: Ibf902b9e96e359fce63b868c5361776b83718744
Signed-off-by: default avatarGangCao <gang.cao@intel.com>
Reviewed-on: https://review.gerrithub.io/426854


Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarPaul Luse <paul.e.luse@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent 036d9239
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -90,6 +90,8 @@
  # Y is the NSID (starts at 1).
  TransportID "trtype:PCIe traddr:0000:00:00.0" Nvme0
  TransportID "trtype:PCIe traddr:0000:01:00.0" Nvme1
  TransportID "trtype:PCIe traddr:0000:02:00.0" Nvme2
  TransportID "trtype:PCIe traddr:0000:03:00.0" Nvme3

  # The number of attempts per I/O when an I/O fails. Do not include
  # this key to get the default behavior.
@@ -122,6 +124,19 @@
  # leaving the rest of the device inaccessible
  Split Malloc3 8 1

# The RAID virtual block device based on pre-configured block device.
[RAID1]
  # Unique name of this RAID device.
  Name Raid0
  # RAID level, only raid level 0 is supported.
  RaidLevel 0
  # Strip size in KB.
  StripSize 64
  # Number of pre-configured bdevs.
  NumDevices 2
  # Pre-configured bdevs name.
  Devices Nvme2n1 Nvme3n1

# Define an NVMf Subsystem.
# - NQN is required and must be unique.
# - Between 1 and 255 Listen directives are allowed. This defines
@@ -151,6 +166,7 @@
  MaxNamespaces 20
  Namespace Nvme0n1 1
  Namespace Nvme1n1 2
  Namespace Raid0

# Multiple subsystems are allowed.
# Namespaces backed by non-NVMe devices