...
- 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)The IP address. If there is more than one, the one that will be used by the initiator (client) to access it.
- 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
...
aptitude -y install iscsitarget iscsitarget-dkms
Configuration
Optionally make a backup of the configuration files that will be changed: /etc/default/iscsitarget and /etc/iet/ietd.conf.
sed -i 's/ISCSITARGET_ENABLE=false/ISCSITARGET_ENABLE=true/' /etc/default/iscsitarget
...
Setting up the initiator (client)
...
Installation
aptitude -y install open-iscsi
Configuration
Optionally backup the configuration file that will be changed: /etc/iscsi/iscsid.conf.
sed -i 's/node.startup = manual/node.startup = automatic/' /etc/iscsi/iscsid.conf
In the next step we use the iSCSI daemon to generate the configuration.
/etc/init.d/open-iscsi restart
iscsiadm -m discovery -t st -p 192.168.10.27