[pve-devel] [PATCH container/storage 0/1] Remove the need for 2xRBD storage entries
Alwin Antreich
a.antreich at proxmox.com
Fri Aug 17 15:44:25 CEST 2018
This is from the idea, how to remove the need for two RBD storage entries to
get LXC and KVM (through librbd) run on the same RBD pool. Especially needed if
the ceph cluster is not under PVE control (eg. hosted ceph service).
See the discussion for reference.
https://pve.proxmox.com/pipermail/pve-devel/2018-July/032895.html
This version takes a different approach and introduces a flag called $map. The
flag indicates that an explicit mapping of the image is wanted. In this series
only the RBDPlugin has been updated, but I will add this flag, if
approved/needed to all other storage plugins.
Suggestions and comments are welcome.
Note:
What didn't and still isn't working, is the move of a base image from one
storage to another, when they underlying RBD pool is the same.
Alwin Antreich (3):
Add flag $map so container images can be mapped
PVE/CLI/pvesm.pm | 6 ++---
PVE/Storage.pm | 63 +++++++++++++++++++++++++--------------------------
PVE/Storage/Plugin.pm | 36 ++++++++++++++---------------
3 files changed, 52 insertions(+), 53 deletions(-)
Implement the flag $map in the RBDPlugin
PVE/Storage/RBDPlugin.pm | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
Add paramter map in used storage methods
src/PVE/API2/LXC.pm | 30 +++++++++++++++---------------
src/PVE/CLI/pct.pm | 2 +-
src/PVE/LXC.pm | 46 ++++++++++++++++++++--------------------------
src/PVE/LXC/Config.pm | 4 ++--
src/PVE/LXC/Migrate.pm | 10 +++++-----
src/PVE/VZDump/LXC.pm | 4 ++--
6 files changed, 45 insertions(+), 51 deletions(-)
--
2.11.0
More information about the pve-devel
mailing list