Panduan

  1. Install package open-iscsi
  • Debian Based
sudo apt install -y open-iscsi
  • RHEL Based
sudo dnf install -y iscsi-initiator-utils 
# atau 
sudo yum install -y iscsi-initiator-utils 
  1. Konfigurasi IQN initiator
sudo vim /etc/iscsi/initiatorname.iscsi
  • Tambahkan baris berikut
    InitiatorName=iqn.2021-08.aa-lio-initiator:lio.initiator01
    
  1. Konfigurasi iscsi initiator
sudo vim /etc/iscsi/iscsid.conf
  • Sesuaikan baris berikut
    node.session.auth.authmethod = CHAP
    node.session.auth.username = <user>
    node.session.auth.password = <password>
    
  1. Restart servis iscsi
  • Debian Based
sudo systemctl restart iscsid open-iscsi
  • RHEL Based
sudo systemctl restart iscsid
  1. Discover target
sudo iscsiadm -m discovery -t sendtargets -p <ip_iscsi_target>
  1. Masuk iSCSI target (Login)
sudo iscsiadm -m node --login
  1. Verifikasi
sudo iscsiadm -m session -o show

Referensi