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 <gang.cao@intel.com> Reviewed-on: https://review.gerrithub.io/426854 Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
036d923972
commit
2e2aba3927
@ -90,6 +90,8 @@
|
|||||||
# Y is the NSID (starts at 1).
|
# Y is the NSID (starts at 1).
|
||||||
TransportID "trtype:PCIe traddr:0000:00:00.0" Nvme0
|
TransportID "trtype:PCIe traddr:0000:00:00.0" Nvme0
|
||||||
TransportID "trtype:PCIe traddr:0000:01:00.0" Nvme1
|
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
|
# The number of attempts per I/O when an I/O fails. Do not include
|
||||||
# this key to get the default behavior.
|
# this key to get the default behavior.
|
||||||
@ -122,6 +124,19 @@
|
|||||||
# leaving the rest of the device inaccessible
|
# leaving the rest of the device inaccessible
|
||||||
Split Malloc3 8 1
|
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.
|
# Define an NVMf Subsystem.
|
||||||
# - NQN is required and must be unique.
|
# - NQN is required and must be unique.
|
||||||
# - Between 1 and 255 Listen directives are allowed. This defines
|
# - Between 1 and 255 Listen directives are allowed. This defines
|
||||||
@ -151,6 +166,7 @@
|
|||||||
MaxNamespaces 20
|
MaxNamespaces 20
|
||||||
Namespace Nvme0n1 1
|
Namespace Nvme0n1 1
|
||||||
Namespace Nvme1n1 2
|
Namespace Nvme1n1 2
|
||||||
|
Namespace Raid0
|
||||||
|
|
||||||
# Multiple subsystems are allowed.
|
# Multiple subsystems are allowed.
|
||||||
# Namespaces backed by non-NVMe devices
|
# Namespaces backed by non-NVMe devices
|
||||||
|
Loading…
Reference in New Issue
Block a user