[pve-devel] students training question : local storage defined in /etc/pve/storage.cfg, is it the right place ?

Alexandre DERUMIER aderumier at odiso.com
Fri Jun 10 08:30:33 CEST 2016


> or if you want to define a local storage on node1, you need to define it in 
> datacenter then restrict it to node1. 

>>Why is that a problem?

not really a problem, just confusing that if you forget to choose node, the storage is defined on all nodes.

Student expect to define it (in gui I mean), in a storage tab in node. (even if it could be write to /etc/pve/storage.cfg with node restriction)



>> also, if you are on gui on node1, and want to define a zfs storage on node3, 
>> you can't because you can parse zfs vols of node3 from node1. 
>
>Sorry - I don't understand that. Can you try to explain? 

Not related to /etc/pve/datacenter.cfg, more a missing api,

but currently, if you are in gui on node1 (http://node1:8006), and you want to create a zfs local storage on node3,

you can't, because, the gui form "zfs pool", only display zfs pool from node1.

(We are in datacenter section, so we expect to be able to list all zfs pool from all nodes right ?)



Another thing:

you install a node1 with classic lvm (storage:local)  , then a node2 with zfs (storage:local-zfs).
then you join node2 to cluster of node1,  the local-zfs storage is removed from config.

For this, I think it could be great to merge local storage config from node2 to current cluster /etc/pve/datacenter.cfg





----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>, "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Vendredi 10 Juin 2016 08:09:41
Objet: Re: [pve-devel] students training question : local storage defined in /etc/pve/storage.cfg, is it the right place ?

> for example, how can you define a storage name "local" with zfs on node1, and 
> another storage "local" with lvm-thin on node2 ? 

Yes, you cannot do that, because that would be extremely confusing... 

> or if you want to define a local storage on node1, you need to define it in 
> datacenter then restrict it to node1. 

Why is that a problem? 

> also, if you are on gui on node1, and want to define a zfs storage on node3, 
> you can't because you can parse zfs vols of node3 from node1. 

Sorry - I don't understand that. Can you try to explain? 

> Couldn't it better to define local storage in 
> 
> /et/pve/nodes/xxxx/storage.fg 
> 
> 
> and shared storages in 
> 
> /et/pve/storage.cfg 

This would change fundamental assumption, and would make whole code base much 
more complex. 
IMHO the storage model is one of the big advantages of proxmox, so it makes no 
sense to abort that. 



More information about the pve-devel mailing list