Iscsi: Difference between revisions

From DWIKI
Line 9: Line 9:
*[http://fibrevillage.com/storage/205-iscsiadm-command-examples-on-linux iscsiadm command examples]
*[http://fibrevillage.com/storage/205-iscsiadm-command-examples-on-linux iscsiadm command examples]
*[https://fedoraproject.org/wiki/Scsi-target-utils_Quickstart_Guide Scsi-target-utils Quickstart Guide]
*[https://fedoraproject.org/wiki/Scsi-target-utils_Quickstart_Guide Scsi-target-utils Quickstart Guide]
*https://wiki.archlinux.org/index.php/TGT_iSCSI_Target


==ISCSI client==
==ISCSI client==

Revision as of 16:27, 17 July 2018

Deamonns:

  • tgtd (used by ocf:heartbeat:iSCSITarget)
  • iscsid


Links

ISCSI client

iscsi_discovery 192.168.100.32

FAQ

On server: list targets

tgtadm --lld iscsi --mode target --op show


And disconnect target:

tgtadm --lld iscsi --op delete --mode conn --tid 1 --sid 2 --cid 0

Reload tgtd

tgt-admin --update ALL

Show tgdt config

tgt-admin --dump

List targets

iscsiadm -m discovery -t sendtargets -p 192.168.100.32

Connect to target

iscsiadm -m node --targetname="iqn.2018-5.mynet:drbd0" --portal "192.168.100.32" --login

Disconnect from target

iscsiadm -m node -T iqn.2018-5.mynet:drbd0 -p 192.168.100.32 -u


The disk contains an unclean file system (0, 0).

Metadata kept in Windows cache, refused to mount.
Falling back to read-only mount because the NTFS partition is in an
unsafe state. Please resume and shutdown Windows fully (no hibernation
or fast restarting.)
ntfsfix /dev/sdc1