PVE 4.4 ZFS over iscsi and iet target

ikn

Active Member
Mar 13, 2016
10
0
41
49
Hello,
I Install a Ubuntu as a ZFS Storage and created two datasets in ZFS.
The first dataset from SATA 7200k disks and the second from the PCI-E SSD.

Code:
#zfs list
NAME                     USED  AVAIL  REFER  MOUNTPOINT
ssd                     45,7G   384G    96K  /ssd
ssd/iscsi                 64K   384G    64K  -
tank                    45,7G  15,3T   140K  /tank
tank/iscsi                93K  15,3T    93K  -

I created two targets for this datasets in ietd.conf file
Code:
Target iqn.2017-04.Store002:ssd
Lun 0 Path=/dev/ssd,Type=blockio

Target iqn.2017-04.Store002:tank
    Lun 0 Path=/dev/tank,Type=blockio
I create two Storage in my cluster
Code:
zfs: Store-002.ZFS
    blocksize 16k
    iscsiprovider iet
    pool tank
    portal 192.168.250.192
    target iqn.2017-04.Store002:tank
    content images
    nowritecache 0
    sparse 0

zfs: Store-002.ZFS.SSD
    blocksize 16k
    iscsiprovider iet
    pool ssd
    portal 192.168.250.192
    target iqn.2017-04.Store002:ssd
    content images
    nowritecache 0
    sparse 0

After i created VM 1000003 on the Store-002.ZFS.
Then I migrated VM disk on the Store-002.ZFS.SSD
After that I cannot delete the old disk with error
"Could not find lu_name for zvol vm-1000003-disk-1 at /usr/share/perl5/PVE/Storage/ZFSPlugin.pm line 105. (500)"

The configuration in ietd.conf has very strange
Code:
# cat /etc/iet/ietd.conf
Target iqn.2017-04.Store002:ssd
Lun 0 Path=/dev/ssd,Type=blockio

Target iqn.2017-04.Store002:tank
    Lun 0 Path=/dev/tank,Type=blockio
    Lun 1 Path=/dev/tank/vm-1000003-disk-1,Type=blockio
    Lun 2 Path=/dev/ssd/vm-1000003-disk-1,Type=blockio

What did I do wrong?
 

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!