[pve-devel] [RFC cluster/manager/storage 0/4] add storage mapping support

Mira Limbeck m.limbeck at proxmox.com
Mon Nov 10 18:01:20 CET 2025


This RFC is the first draft of storage mapping support. It
includes a reworked iSCSI plugin that handles storage mapping, as well
as an API to get/create/delete mappings.

Some features are not yet implemented, for example reachability checks
for iSCSI.
The pve-manager patches are limited to the API, no UI exists for now.

The idea would be to make it easy for iSCSI storages to use local
mappings that are managed through the GUI.
For this we would need to check the reachability of all announced
portals for each node.
This will be the next step after the basic mapping support.

For now only an iSCSI plugin exists, but this could be extended to other
(future) storages as well. As such the idea is to have a generic base.


pve-cluster:

Mira Limbeck (1):
  mapping: add storage.cfg

 src/PVE/Cluster.pm  | 1 +
 src/pmxcfs/status.c | 1 +
 2 files changed, 2 insertions(+)

pve-manager:

Mira Limbeck (1):
  api: mapping: add storage mapping path

 PVE/API2/Cluster/Mapping.pm | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

pve-storage:

Mira Limbeck (2):
  add basic mapping support and iSCSI mapping plugin
  api: add mapping support

 src/PVE/API2/Storage/Makefile     |   2 +-
 src/PVE/API2/Storage/Mapping.pm   | 213 ++++++++++++++++++++++++++++++
 src/PVE/Storage.pm                |   3 +
 src/PVE/Storage/ISCSIPlugin.pm    | 207 +++++++++++++++++++++++------
 src/PVE/Storage/Makefile          |   4 +-
 src/PVE/Storage/Mapping.pm        |  44 ++++++
 src/PVE/Storage/Mapping/ISCSI.pm  |  54 ++++++++
 src/PVE/Storage/Mapping/Makefile  |   7 +
 src/PVE/Storage/Mapping/Plugin.pm |  88 ++++++++++++
 src/PVE/Storage/Plugin.pm         |   6 +
 10 files changed, 584 insertions(+), 44 deletions(-)
 create mode 100644 src/PVE/API2/Storage/Mapping.pm
 create mode 100644 src/PVE/Storage/Mapping.pm
 create mode 100644 src/PVE/Storage/Mapping/ISCSI.pm
 create mode 100644 src/PVE/Storage/Mapping/Makefile
 create mode 100644 src/PVE/Storage/Mapping/Plugin.pm

-- 
2.39.5




More information about the pve-devel mailing list