Greetings, All. I'm using FreeBSD to export several ZFS ZVOLs via iSCSI (via ctl.conf(5)). Everything works fine, volumes are connected to from a Windows Server, running Hyper-V, hosting various development servers. My problem is that when I use iSCSI Initiator from a Windows Server, I end up with lots of Disk Drives all named "FREEBSD CTLDISK SCSI Disk Device" and is hard to tell which is which, i.e. which RAW disk drive to assign to which VM. The same goes when using disks from a Linux box. Can you suggest a way to change vendor ("FreeBSD") or product ("CTLDISK") so I can differentiate them (apart from LUN) on the other, initiator's/client's end?
From Linux initiator:
From Windows initiator:
sh:
root@storage:/etc # ctladm devlist
LUN Backend Size (Blocks) BS Serial Number Device ID
0 block 25165824 512 UBUNTU1804BUILD ubuntu-18.04.build
1 block 16777216 512 UBUNTU1804TEST ubuntu-18.04.test
2 block 16777216 512 UBUNTU1804MINI ubuntu-18.04.mini
3 block 67108864 512 FREEBSD120 freebsd-12.0
4 block 67108864 512 ESXISCRATCH esxi-scratch
root@storage:/etc # ctladm lunlist
(7:1:0/0): <FREEBSD CTLDISK 0001> Fixed Direct Access SPC-5 SCSI device
(7:1:1/1): <FREEBSD CTLDISK 0001> Fixed Direct Access SPC-5 SCSI device
(7:1:2/2): <FREEBSD CTLDISK 0001> Fixed Direct Access SPC-5 SCSI device
(7:1:3/3): <FREEBSD CTLDISK 0001> Fixed Direct Access SPC-5 SCSI device
(7:1:4/4): <FREEBSD CTLDISK 0001> Fixed Direct Access SPC-5 SCSI device
root@storage:/etc #
From Linux initiator:
sh:
root@devhost:/etc/iscsi# lsblk --scsi
NAME HCTL TYPE VENDOR MODEL REV TRAN
sda 0:0:0:0 disk ATA WDC WD5000AAKX-0 1H19 sata
sdb 4:0:0:0 disk ATA TOSHIBA DT01ACA0 A750 sata
sdd 11:0:0:0 disk FREEBSD CTLDISK 0001 iscsi
sde 11:0:0:1 disk FREEBSD CTLDISK 0001 iscsi
sdf 11:0:0:2 disk FREEBSD CTLDISK 0001 iscsi
sdg 11:0:0:3 disk FREEBSD CTLDISK 0001 iscsi
sdh 11:0:0:4 disk FREEBSD CTLDISK 0001 iscsi
sr0 1:0:0:0 rom PLDS DVD-RW DH16ACSH JL3B sata
From Windows initiator: