ZFS over iSCSI Multipath

fabioteixei

New Member
Aug 4, 2024
1
0
1
Hello

I have configured classic iSCSI with LVM but no thin provisioning for me is a deal breaker, so i want to configure ZFS over iSCSI.

On my PVE server i have two NICs that comunicates with my Truenas for iSCSI traffic. Each NIC is on its own network / vlan:

PVE server
iSCSI01 NIC:
  • IP: 192.168.30.1
  • VLAN: 30
iSCSI02 NIC
  • IP: 192.168.31.1
  • VLAN: 31
TrueNas Server:
iSCSI01 NIC:
  • IP: 192.168.30.30
  • VLAN: 30
iSCSI02 NIC:
  • IP: 192.168.31.30
  • VLAN: 31
Netwwork traffic is up and running, i can ssh with the ssh key (same key) on both IPs.

I have configured my storage as follows:

Code:
 dir: local
        path /var/lib/vz
        content vztmpl,iso,backup

lvmthin: local-lvm
        thinpool data
        vgname pve
        content images,rootdir

iscsi: ssd-0001-30
        portal 192.168.30.30
        target iqn.2022-02.br.com.home-truenas:target-ssd-0001
        content none

iscsi: ssd-0001-31
        portal 192.168.31.30
        target iqn.2022-02.br.com.home-truenas:target-ssd-0001
        content none

lvm: lvm-ssd-0001
        vgname vg-ssd-0001
        content images,rootdir
        saferemove 0
        shared 1

zfs: ssd-0001
        blocksize 4k
        iscsiprovider istgt
        pool pool-ssd-001
        portal 192.168.30.30
        target target-ssd-0001
        content images
        nowritecache 0
        sparse 1

How can i configure this to work in multipath?

I have configured multipath for standard iSCSI but i dont know if it will work for ZFS over iSCSI because on the ZFS config i'm pointing to only one IP and not both IPs on my TrueNas.

Here is my multipath config:

Code:
blacklist {
        wwid .*
}

blacklist_exceptions {
        wwid "mydiskwwid"
}



defaults {
        polling_interval        2
        path_selector           "round-robin 0"
        path_grouping_policy    multibus
        uid_attribute           ID_SERIAL
        rr_min_io               100
        failback                immediate
        no_path_retry           queue
        user_friendly_names     yes
}

do i need to do something else? it seems working, but i dont know if multipath is working for ZFS over iSCSI

I'm kinda new to proxmox. used to run hyper-v for my virtualisation. I know well Hyper-V but not proxmox
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!