From 2e2aba39275d607cc242efe6cba45913b05ae6bf Mon Sep 17 00:00:00 2001 From: GangCao Date: Wed, 26 Sep 2018 18:31:35 -0400 Subject: [PATCH] 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: GangCao Reviewed-on: https://review.gerrithub.io/426854 Chandler-Test-Pool: SPDK Automated Test System Tested-by: SPDK CI Jenkins Reviewed-by: Paul Luse Reviewed-by: Shuhei Matsumoto Reviewed-by: Changpeng Liu Reviewed-by: Ben Walker --- etc/spdk/nvmf.conf.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/etc/spdk/nvmf.conf.in b/etc/spdk/nvmf.conf.in index c143f8dd8..f39c3283b 100644 --- a/etc/spdk/nvmf.conf.in +++ b/etc/spdk/nvmf.conf.in @@ -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