Panduan#
- Install package open-iscsi
sudo apt install -y open-iscsi
sudo dnf install -y iscsi-initiator-utils
# atau
sudo yum install -y iscsi-initiator-utils
- Konfigurasi IQN initiator
sudo vim /etc/iscsi/initiatorname.iscsi
- Tambahkan baris berikut
InitiatorName=iqn.2021-08.aa-lio-initiator:lio.initiator01
- 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>
- Restart servis iscsi
sudo systemctl restart iscsid open-iscsi
sudo systemctl restart iscsid
- Discover target
sudo iscsiadm -m discovery -t sendtargets -p <ip_iscsi_target>
- Masuk iSCSI target (Login)
sudo iscsiadm -m node --login
- Verifikasi
sudo iscsiadm -m session -o show
Referensi#