Child pages
  • iSCSI

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Planning

Information required:

  • A user name and password (for the iSCSI configuration so an arbitrary choice)
  • A target (server) computer:
    • root access
    • Useful to know its IP address(es)
    • A local block device to be made available to the initiator (client) via iSCSI.  May be a file, a HDD (whole device or partition), an LVM volume or a RAID device.
  • An initiator (client) computer
    • root access

Setting up the target (server)

...

The next step sets up to serve a single LVM volume, /dev/vg0/lv0.  Values that need to be changed are red.  Values that are arbitrary strings (so could be changed) are in blue.

user=someone
password=secret
local_device=/dev/vg0/lv0

...

( echo "Target iqn.$(date +%Y-%m)$backwards_fqdn:storage.lun0"
    echo "    IncomingUser $user $password"
    echo "    OutgoingUser"
    echo "    Lun 0 Path=$local_device,Type=fileio"
    echo "    Alias LUN0"
) > /etc/iet/ietd.conf

Further devices can be added by editing /etc/iet/ietd.conf, replicating and modifying the first stanza.

Setting up the initiator (client)

 

aptitude install open-iscsi