mirror of
https://github.com/kubernetes-csi/csi-driver-nvmf.git
synced 2025-04-27 11:01:15 +00:00
chore: fix some error in setup
1. add SPDK target setup in README. 2. fix setup_kernel_nvmf_target command error. 3. fix pv.yaml's storageclass name. Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>
This commit is contained in:
parent
a2c52a6e60
commit
996d83f3b3
@ -39,10 +39,15 @@ $ make
|
||||
$ ./output/nvmfplugin --endpoint tcp://127.0.0.1:10000 --nodeid CSINode
|
||||
```
|
||||
|
||||
### 2.2 Prepare nvmf kernel target
|
||||
### 2.2 Prepare nvmf backend target(Kernel or SPDK)
|
||||
|
||||
#### Kernel
|
||||
Follow [guide to set up kernel target](doc/setup_kernel_nvmf_target.md) to deploy kernel nvmf storage service on localhost.
|
||||
|
||||
#### SPDK
|
||||
Follow [guide to set up SPDK target](https://spdk.io/doc/nvmf.html) to deploy spdk nvmf storage service on localhost.
|
||||
|
||||
You can get the information needed for 3.2 through spdk's `script/rpc.py nvmf_get_subsystem`
|
||||
### 3.1 Get plugin info
|
||||
```
|
||||
$ csc identity plugin-info --endpoint tcp://127.0.0.1:10000
|
||||
|
@ -51,7 +51,7 @@ echo 49153 > /sys/kernel/config/nvmet/ports/1/addr_trsvcid # target port is 4915
|
||||
### 3.4 Link port and namespace
|
||||
|
||||
``` bash
|
||||
ln -s /sys/kernel/config/nvmet/subsystems/nqn.2022-08.org.test-nvmf.example/namespaces/ /sys/kernel/config/nvmet/ports/1/subsystems/nqn.2022-08.org.test-nvmf.example
|
||||
ln -s /sys/kernel/config/nvmet/subsystems/nqn.2022-08.org.test-nvmf.example/ /sys/kernel/config/nvmet/ports/1/subsystems/nqn.2022-08.org.test-nvmf.example
|
||||
```
|
||||
|
||||
### 3.5 Record the DeviceUUID
|
||||
|
@ -3,7 +3,7 @@ kind: PersistentVolume
|
||||
metadata:
|
||||
name: csi-nvmf-pv
|
||||
spec:
|
||||
storageClassName: cs-nvmf-sc
|
||||
storageClassName: csi-nvmf-sc
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
capacity:
|
||||
|
Loading…
Reference in New Issue
Block a user