diff --git a/README.md b/README.md index 5495da6..6e964c7 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/doc/setup_kernel_nvmf_target.md b/doc/setup_kernel_nvmf_target.md index 02cf0b8..71c4c9b 100644 --- a/doc/setup_kernel_nvmf_target.md +++ b/doc/setup_kernel_nvmf_target.md @@ -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 diff --git a/examples/kubernetes/example/pv.yaml b/examples/kubernetes/example/pv.yaml index 1c3610d..2ee570a 100644 --- a/examples/kubernetes/example/pv.yaml +++ b/examples/kubernetes/example/pv.yaml @@ -3,7 +3,7 @@ kind: PersistentVolume metadata: name: csi-nvmf-pv spec: - storageClassName: cs-nvmf-sc + storageClassName: csi-nvmf-sc accessModes: - ReadWriteOnce capacity: