Install targetcli

Install the targetcli tool to add, monitor, and remove iSCSI storage interconnects.

Procedure

  1. Install the targetcli tool:
    # dnf install targetcli
  2. Start the target service:
    # systemctl start target
  3. Configure target to start at boot time:
    # systemctl enable target
  4. Open port 3260 in the firewall and reload the firewall configuration:
    # firewall-cmd --permanent --add-port=3260/tcp
    success
    # firewall-cmd --reload
    success

Results

  • View the targetcli layout:
    # targetcli
    /> ls
    o- /........................................[...]
      o- backstores.............................[...]
      | o- block.................[Storage Objects: 0]
      | o- fileio................[Storage Objects: 0]
      | o- pscsi.................[Storage Objects: 0]
      | o- ramdisk...............[Storage Objects: 0]
      o- iscsi...........................[Targets: 0]
      o- loopback........................[Targets: 0]
      o- srpt ...........................[Targets: 0]