[pve-devel] [PATCH WIP storage 0/2] add disk management

Dominik Csapak d.csapak at proxmox.com
Mon May 23 11:03:11 CEST 2016


this is a first version of basic disk management
functionality, please provide feedback

the plan would be to move the ceph specific code from
pve-manager to pve-storage (incl pveceph) and make
many function generic (such as list disk) for it to be used
more than once

my proposed structure would be:

pve-storage/PVE/Diskmanage.pm <- for generic utilities such as list disk
pve-storage/PVE/Ceph/* <- for Ceph specific code
pve-storage/PVE/ZFS/* <- for ZFS specific code
etc.

the api for ceph should not change
and the disk management should be under

/nodes/NODENAME/disks
/nodes/NODENAME/zfs
et.

to be consistent with

/nodes/NODENAME/ceph

for the gui, we have a very clear picture how the interface should look
(mostly oriented after the ceph gui), but no idea where to put it

ideas brought up:
 * as tabs at the nodes (like ceph)
     not really good, we already have way too many tabs there
 * all storage related things under one tab
     we need an additional layer of organizing (disks->zfs/lvm/ceph->subpoints)
     so also not very good
 * a seperate entry in the tree for storage
     breaks convention of an item under a node is an object

if someone has an idea, please provide it :)

Dominik Csapak (2):
  add Diskmanage Utilities
  add api entries for disk management

 PVE/API2/Disks.pm | 188 ++++++++++++++++++++++++++++++++
 PVE/API2/Makefile |   3 +-
 PVE/Diskmanage.pm | 312 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 PVE/Makefile      |   1 +
 4 files changed, 503 insertions(+), 1 deletion(-)
 create mode 100644 PVE/API2/Disks.pm
 create mode 100644 PVE/Diskmanage.pm

-- 
2.1.4





More information about the pve-devel mailing list