- Install open-iscsi
- # sudo apt-get install open-iscsi
- # sudo apt-get install open-iscsi-utils
- Configure the iscsid.conf file with your login credentials.
- vi /etc/iscsi/iscsid.conf
-
- edit the line 'node.session.auth.username='
- edit the line 'node.session.auth.password='
- enable CHAP authentication
- uncomment the line 'node.session.auth.authmethod = CHAP'
- Restart open-iscsi service
- /etc/init.d/open-iscsi restart
- Discover your iSCSI targets
- # iscsiadm -m discovery -t sendtargets -p <ip address of the iscsi target>:3260
- List your iSCSI nodes
- Restart open-iscsi service
- /etc/init.d/open-iscsi restart
- Find the disk
- Mount the disk
- # mount /dev/sdb1 /mnt/iscsi