Skip to content

Instantly share code, notes, and snippets.

@pandada8
Created August 7, 2022 12:48
Show Gist options
  • Save pandada8/5760b66fd598a1d7deb1afcdeda75d08 to your computer and use it in GitHub Desktop.
Save pandada8/5760b66fd598a1d7deb1afcdeda75d08 to your computer and use it in GitHub Desktop.
Configure Proxmox Node for ZFS over iSCSI

Proxmox provided ZFS over iSCSI for storage. Most tutorials/guides are about using FreeNAS. But you can using an normal proxmox host for ZFS over iSCSI.

On Storage Node:

  1. Install disks, create zpool
  2. Install targetcli via apt install targetcli-fb
  3. Create default tpg via targetcli /iscsi create

On Every Proxmox Node

  1. get client InitiatorNames from /etc/iscsi/initiatorname.iscsi
  2. On Storage Node, run targetcli /iscsi/iqn.2003-01.org.linux-iscsi.pve-2.x8664:sn.71fbbfad3c47/tpg1/acls create <initiatorname>

On Proxmox GUI

  1. Create new Storage ZFS Over iSCSI
  2. Fill up information. portal is storage node ip, target can be found as targetcli ls /iscsi/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment