Chang's blog
learn and share...
Configure iSCSI on Ubuntu

iSCSI (Internet Small Computer System Interface) is a protocol that allows SCSI commands to be transmitted over a network.

The SCSI communicates with devices such as hard disks through the SCSI controller, and the SCSI controller is called the Target. While the client application that initiates the access is called the Initiator.

  • Assumed that you already have an iSCSI target on your local network

  • Install open-iscsi package in Ubuntu server, and configure it into an iSCSI initiator.

    sudo apt install open-iscsi
  • Check which targets are available through a target IP address on your network.

    Add an eth devicde on your server, and configure the IP address into

    sudo iscsiadm -m discovery -t st -p

    change into the target IP address on your network.

  • Login and mount the target device

    iscsiadm -m node -T -p --login
    sleep 6
    mount -o usrquota,grpquota /dev/sdb1 /storage

Last modified on 2020-02-22