This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
ubuntu:iser_rdma [2018/02/21 12:35] tschulz [Disable ISCSI Authentication] |
ubuntu:iser_rdma [2018/02/21 12:44] tschulz [ISER/RMDA with ZFS on Ubuntu Server 17.04] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== ISER/RMDA with ZFS on Ubuntu Server 17.04 ====== | + | ====== ISER/RMDA with ZFS on Ubuntu Server 17.04/17.10 ====== |
gg | gg | ||
Line 54: | Line 54: | ||
- | ===== Other Commands ===== | + | ===== Configure TargetCLI ===== |
- | ==== Check IO Delay/Sats ==== | + | |
- | <file> | + | |
- | apt install sysstat | + | |
- | </file> | + | |
- | <file> | + | |
- | iostat -x 1 | + | |
- | </file> | + | |
==== Disable ISCSI Authentication ==== | ==== Disable ISCSI Authentication ==== | ||
+ | * Remember on new version of Debian and Ubuntu **targetcli** has been replaced with **targetcli-fb** | ||
<file> | <file> | ||
cd iscsi/iqn.*/tpgt1/ | cd iscsi/iqn.*/tpgt1/ | ||
Line 74: | Line 67: | ||
</file> | </file> | ||
- | ==== Check ZFS IO Stats ==== | + | ==== Create File based iSCSI backstore ==== |
<file> | <file> | ||
- | zpool iostat -v 1 | + | cd /backstores/fileio/ |
+ | create file_or_dev=/tank/vol1/iservol2 name=iservol2 size=20G write_back=true | ||
</file> | </file> | ||
- | ==== Discover Targets from ISCSI Portal ==== | + | |
+ | ==== Assign a new lun to a target ==== | ||
+ | <file> | ||
+ | cd /iscsi/iqn.*/tpg1/luns/ | ||
+ | create /backstores/fileio/iservol2 | ||
+ | </file> | ||
+ | |||
+ | ===== ISCSI Admin Commands ===== | ||
+ | ==== Discover Targets from ISCSI Portal (TCP) ==== | ||
<file> | <file> | ||
iscsiadm -m discovery -p <IP>:<PORT> | iscsiadm -m discovery -p <IP>:<PORT> | ||
+ | </file> | ||
+ | |||
+ | ==== Discover Targets from ISCSI Portal using iSER ==== | ||
+ | <file> | ||
+ | iscsiadm -m discovery -p <IP>:<PORT> -I iser | ||
</file> | </file> | ||
==== Refresh LUNS of ISCSI Target ==== | ==== Refresh LUNS of ISCSI Target ==== | ||
Line 103: | Line 110: | ||
iscsiadm -m node -T <TARGETNAME> -l | iscsiadm -m node -T <TARGETNAME> -l | ||
</file> | </file> | ||
+ | |||
+ | ===== Other Commands ===== | ||
+ | ==== Check IO Delay/Sats ==== | ||
+ | <file> | ||
+ | apt install sysstat | ||
+ | </file> | ||
+ | <file> | ||
+ | iostat -x 1 | ||
+ | </file> | ||
+ | ==== Check ZFS IO Stats ==== | ||
+ | <file> | ||
+ | zpool iostat -v 1 | ||
+ | </file> | ||
+ | |||