Map SAN LUN to VM in "passthrough" mode

acid27

New Member
Jul 10, 2024
1
0
1
I`m tring to setup a Hitachi Storage Management Environment with Proxmox.
For that we need "command devices". This are small SAN LUNs mapped via FC which accept commands for configure the Storage system.

in VMWare environment we can map a RDM to this VM and the VM has to recognize the LUN as follows:

[root@pm-esx01 ~]# ls /dev/sd* |/HORCM/usr/bin/inqraid -CLI
DEVICE_FILE PORT SERIAL LDEV CTG H/M/12 SSID R:Group PRODUCT_ID
sdb CL1-A 745563 64768 - - 0101 A:00000 OPEN-V-CM


At Proxmox server we mapped the discoverd LUN with:

qm set 102 -scsi1 /dev/mapper/360060e8023b1d2005070b1d20000fd01



At the Proxmox VM we see this sdb:

[root@pm-vm102 ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 100G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 98G 0 part
├─ol-root 252:0 0 88G 0 lvm /var/lib/containers/storage/overlay
│ /
└─ol-home 252:1 0 10G 0 lvm /home
sdb 8:16 0 50M 0 disk


[root@pm-vm102 ~]# sg_inq /dev/sdb -v
inquiry cdb: [12 00 00 00 24 00]
inquiry cdb: [12 01 00 00 fc 00]
standard INQUIRY:
PQual=0 PDT=0 RMB=0 LU_CONG=0 hot_pluggable=0 version=0x05 [SPC-3]
[AERC=0] [TrmTsk=0] NormACA=0 HiSUP=1 Resp_data_format=2
SCCS=0 ACC=0 TPGS=0 3PC=0 Protect=0 [BQue=0]
EncServ=0 MultiP=0 [MChngr=0] [ACKREQQ=0] Addr16=0
[RelAdr=0] WBus16=0 Sync=1 [Linked=0] [TranDis=0] CmdQue=1
length=36 (0x24) Peripheral device type: disk
Vendor identification: QEMU
Product identification: QEMU HARDDISK
Product revision level: 2.5+
[root@pm-vm102 ~]#


[root@pm-vm102 ~]# ls /dev/sd* |/HORCM/usr/bin/inqraid -CLI
DEVICE_FILE PORT SERIAL LDEV CTG H/M/12 SSID R:Group PRODUCT_ID
sdb - - - - - - - QEMU HARDDISK


How can we map the Hitachi LUN 1:1 to the VM?


Thanks for help
 
Hi acid27,

In case there is no procedure on Proxmox to make a kind of RDM or avoid getting the SCSI Vendor Identifier changed.

Install the Horcm1 instance on the Proxmox direct, once the Horcm1 instance is running it will be a Horcm Server (gateway).
The connection path will be as follow,
FC CMD device --> use in Horcm1 instance running on Proxmox (not on Guest VM) <-- Guest OS can use the IP CMD in Horcm10 to access the Horcm1 instance FC CMD.

e.g.
Horcm1.conf is running on Proxmox IP 10.0.0.100
HORCM_MON
#IP_ADDRESS SERVICE POLL (10ms) TIMEOUT(10ms)
127.0.0.1 11001 3000 3000

HORCM_CMD
#FC CMD device
/dev/sdl


Horcm10.conf running on VM with IP 10.0.0.20
HORCM_MON
#IP_ADDRESS SERVICE POLL (10ms) TIMEOUT(10ms)
127.0.0.1 11010 3000 3000

HORCM_CMD
#IP address of Proxmox which will be routed to FC command device /dev/sdl by Horcm1.conf
\\.\IPCMD-10.0.0.100-31001


Regards,

Stefan