Opslag

Virtuele iSCSI.

Bron: https://www.tecmint.com/setup-iscsi-target-and-initiator-on-debian-9/

  • apt-get update
  • apt-get update && apt-get install tgt lvm2
  • apt-get update && apt-get install tgt lvm2 -y
  • lsblk
  • vgcreate debian_iscsi /dev/sdb
  • vgs
  • lvcreate -l 100%FREE -n debian_lun1 debian_iscsi
  • lvs
  • nano /etc/tgt/conf.d/debian_iscsi.conf
  • systemctl restart tgt
  • tgtadm –mode target –op show

Inhoud /etc/tgt/conf.d/debian_iscsi.conf:

<target iqn.2020-01.vamoa.lan:lun1>
# Provided device as an iSCSI target
backing-store /dev/mapper/debian_iscsi-debian_lun1
initiator-address 172.25.125.15
incominguser iscsi-user wwUser
outgoinguser iscsi-target wwTarget
</target>