Exposing disk with multiple paths?

zeha

Well-Known Member
Oct 11, 2016
32
4
48
I would like to test dm-multipath setups inside VMs. Is there a way to expose a scsiN device as multiple paths/devices?

Unsupported hacks would be good enough, obviously :)

Chris
 
IIRC using the same raw image (with cache=none) and serial for two scsi devices should work - but obviously for testing purposes only ;)
 
That works, indeed:

scsi1: pve_disk_02:vm-113-disk-1,cache=none,serial=YYYYYNN,wwn=0x5001438032b17f50,size=8G scsi2: pve_disk_02:vm-113-disk-1,cache=none,serial=YYYYYNN,wwn=0x5001438032b17f50,size=8G

Plus, for VirtIO SCSI, add boot param scsi_mod.default_dev_flags=0x10000000 to force VPD read.

Thanks!
 
  • Like
Reactions: fabian
For testing such setups, I always use a storage VM with two IPs, exporting a LUN to another machine via SCSI and using the default iSCSI stack on the client with multiple portals to have "real" multipath over iSCSI. Another way I usually go is with a fiberchannel-SAN, I passthrough a dual port card and have proper SAN integration.
 
Right. I do have such an iSCSI setup, but if I don’t have to use it, it’s better for me. (And FC can die in a lonely corner for all I care …)
 
  • Like
Reactions: fabian

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!