[pve-devel] [PATCHv2] Add support for multipath-backed direct attached storage

Dmitry Petuhov mityapetuhov at gmail.com
Thu Jun 30 12:21:27 CEST 2016


This patch series adds storage type "mpdirect". Before using it, multipath-tools
package must be installed. After that, multipathd will create /dev/disk/by-id/wwn-0x*
devices, which can be directly attached to VMs via GUI. Partitions are ignored.

I'm not skilled in UI programming, so there's no storage addition via UI. Just add

mpdirect: STORNAME
        content images,rootdir

to storage.cfg.

Because of usage of multipath, this plugin is media-independent:
it was tested with iSCSI, but should also work with FC and SAS/SCSI.

May need manual storage bus rescans to dynamically add new LUNs.

In 2nd version we use text file /etc/pve/multipath.list. File format:
$wwn\s+\$name

$name must be in format vm-$N-disk-$M

Other storage-specific wwn-name mapping methods can be added later by using
LunCmd/* modules.


More information about the pve-devel mailing list