iSCSI creating two sessions

brooksaar

New Member
Mar 31, 2020
1
0
1
34
When I add an iSCSI target using the webui or by editing /etc/pve/storage.cfg, it gets mounted twice. Once using the IP, once using the hostname. See following output;

Code:
root@momcorp:~# iscsiadm -m session
tcp: [1] 10.20.0.13:3260,1 iqn.2005-10.org.freenas.ctl:momcorp-vms (non-flash)
tcp: [2] [scruffy]:3260,1 iqn.2005-10.org.freenas.ctl:momcorp-vms (non-flash)
root@momcorp:~# lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0   500G  0 disk
sdb           8:16   0   500G  0 disk
nvme0n1     259:0    0 465.8G  0 disk
├─nvme0n1p1 259:1    0  1007K  0 part
├─nvme0n1p2 259:2    0   512M  0 part
└─nvme0n1p3 259:3    0 465.3G  0 part
root@momcorp:~# blkid
/dev/nvme0n1: LABEL="rpool" UUID="3247089100681654765" UUID_SUB="13470923154272903015" TYPE="zfs_member" PTUUID="2efb3f2c-70d2-4f78-9098-345f9d1eceac" PTTYPE="gpt"
/dev/nvme0n1p2: UUID="D607-4807" TYPE="vfat" PARTUUID="cc0ac401-b7c9-4e4c-97f5-523b5f775638"
/dev/nvme0n1p3: LABEL="rpool" UUID="3247089100681654765" UUID_SUB="13470923154272903015" TYPE="zfs_member" PARTUUID="be76e7db-e160-407c-9328-846495ac750c"
/dev/nvme0n1p1: PARTUUID="68d0ba67-acfd-45fe-8aa7-9bc16a4b3af2"
/dev/sdb: PTUUID="e99dc274-daba-a148-b609-6f9c9d00c592" PTTYPE="gpt"
/dev/sda: PTUUID="e99dc274-daba-a148-b609-6f9c9d00c592" PTTYPE="gpt"
root@momcorp:~#

/dev/sda and /dev/sdb are the same disk.

This is my storage.cfg and pveversion:

Code:
root@momcorp:~# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content vztmpl,iso,backup

zfspool: local-zfs
        pool rpool/data
        content rootdir,images
        sparse 1

nfs: iso_store
        export /mnt/fast_ssd/iso_store
        path /mnt/pve/iso_store
        server scruffy
        content iso

iscsi: scruffy
        portal scruffy
        target iqn.2005-10.org.freenas.ctl:momcorp-vms
        content none

root@momcorp:~# pveversion -v
proxmox-ve: 6.1-2 (running kernel: 5.3.10-1-pve)
pve-manager: 6.1-3 (running version: 6.1-3/37248ce6)
pve-kernel-5.3: 6.0-12
pve-kernel-helper: 6.0-12
pve-kernel-5.3.10-1-pve: 5.3.10-1
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.0.2-pve4
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.13-pve1
libpve-access-control: 6.0-5
libpve-apiclient-perl: 3.0-2
libpve-common-perl: 6.0-9
libpve-guest-common-perl: 3.0-3
libpve-http-server-perl: 3.0-3
libpve-storage-perl: 6.1-2
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve3
lxc-pve: 3.2.1-1
lxcfs: 3.0.3-pve60
novnc-pve: 1.1.0-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.1-1
pve-cluster: 6.1-2
pve-container: 3.0-14
pve-docs: 6.1-3
pve-edk2-firmware: 2.20191002-1
pve-firewall: 4.0-9
pve-firmware: 3.0-4
pve-ha-manager: 3.0-8
pve-i18n: 2.0-3
pve-qemu-kvm: 4.1.1-2
pve-xtermjs: 3.13.2-1
qemu-server: 6.1-2
smartmontools: 7.0-pve2
spiceterm: 3.1-1
vncterm: 1.6-1
zfsutils-linux: 0.8.2-pve2


I can't imagine why this is occurring and I'm all out of ideas. I've tried recreating multiple times. This is causing me problems creating an LVM on the iscsi target.

When I use iscsiadm to log out of one session, it logs out of both. Same with login.

Does anyone have any suggestions?
 

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!