mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-02 19:20:23 +00:00
44 lines
988 B
Markdown
44 lines
988 B
Markdown
|
# CSI ISCSI driver
|
||
|
|
||
|
## Usage:
|
||
|
|
||
|
### Start ISCSI driver
|
||
|
```
|
||
|
$ sudo ../_output/iscsidriver --endpoint tcp://127.0.0.1:10000 --nodeid CSINode
|
||
|
```
|
||
|
|
||
|
### Test using csc
|
||
|
Get ```csc``` tool from https://github.com/chakri-nelluri/gocsi/tree/master/csc
|
||
|
|
||
|
#### Get plugin info
|
||
|
```
|
||
|
$ csc identity plugin-info --endpoint tcp://127.0.0.1:10000
|
||
|
"ISCSI" "0.1.0"
|
||
|
```
|
||
|
|
||
|
### Get supported versions
|
||
|
```
|
||
|
$ csc identity supported-versions --endpoint tcp://127.0.0.1:10000
|
||
|
0.1.0
|
||
|
```
|
||
|
|
||
|
#### NodePublish a volume
|
||
|
```
|
||
|
$ export ISCSI_TARGET="iSCSI Target Server IP (Ex: 10.10.10.10)"
|
||
|
$ export IQN="Target IQN"
|
||
|
$ csc node publish --endpoint tcp://127.0.0.1:10000 --target-path /mnt/iscsi --attrib targetPortal=$ISCSI_TARGET --attrib iqn=$IQN --attrib lun=<lun-id> iscsitestvol
|
||
|
iscsitestvol
|
||
|
```
|
||
|
|
||
|
#### NodeUnpublish a volume
|
||
|
```
|
||
|
$ csc node unpublish --endpoint tcp://127.0.0.1:10000 --target-path /mnt/iscsi iscsitestvol
|
||
|
iscsitestvol
|
||
|
```
|
||
|
|
||
|
#### Get NodeID
|
||
|
```
|
||
|
$ csc node get-id --endpoint tcp://127.0.0.1:10000
|
||
|
CSINode
|
||
|
```
|