Tâche #21486
Scénario #21485: Le partitionnement des modules EOLE doit être un paramétrage dans GenConfig (suite)
Mettre en place l’infrastructure nécessaire à la gestion des volumes logiques dans GenConfig
Description
Nous mettons en place une infrastructure commune afin que chaque module n’ait qu’à fournir la liste des volumes et la répartition de l’espace libre entre chacun dans le cas d’un partitionnement standard EOLE.
Related issues
Associated revisions
We need an infrastructure to manage logical volumes in GenConfig
This infrastructure must works on all EOLE modules without problem
even if they don't provide the logical volume liste.
We need 3 things:
- some variables to store informations
- some utilities to get logical volume names on disk and check if we
can automatically extend volumes
- manage the automatic vs. non automatic cases in partition resize
- dicos/00_partitioning.xml: add 4 variables to store the per EOLE
module name and percent extension of logical volumes and the list of
created logical volumes.
Fill the list of logical volume names with existing ones.
Fill the extension percent with “0” for every logical volume, the
pretemplate will have a special case.
- pretemplate/00-partitioning: do not use the same sizing variable
between automatic extension of standard partitioning and manual size
definition.
(extend_lv): better message for logical volume with “0%” extension.
Ref: #21486
Variable names should be coherent
Multi should be in plural form to denote the multitude of values.
- dicos/00_partitioning.xml: use plural form for
“eole_lv_standard_extends”.
Ref: #21486
History
#1 Updated by Daniel Dehennin over 5 years ago
- Project changed from Distribution EOLE to eole-common
- Subject changed from Créer des utilitaires EOS creole pour lister les volumes logiques to Mettre en place l’infrastructure nécessaire à la gestion des volumes logiques dans GenConfig
- Description updated (diff)
- Status changed from Nouveau to En cours
- Assigned To set to Daniel Dehennin
#2 Updated by Daniel Dehennin over 5 years ago
- % Done changed from 0 to 100
- Remaining (hours) changed from 2.0 to 0.5
Pour tester¶
- Démarrer une machine virtuelle en ajoutant de l’espace disque avant de cliquer sur
Create
dans OpenNebula : - Etendre la partition
/dev/sda2
parted /dev/sda resizepart 2 100%
Plusieurs cas doivent être testés avec l’exécution de la commande suivante :
/usr/share/eole/pretemplate/00-partitioning instance
- Rien ne se passe sur un module sans espace libre (vous n’avez pas exécuté
pvresize /dev/sda2
) - Rien ne se passe sur un module avec un partitionnement non standard et de la place non allouée (vous pouvez simplement créer un volume logique supplémentaire après avoir exécutez
pvresize /dev/sda2
) - L’espace est répartie comme vous le voulez si vous modifiez la configuration GenConfig sur un module avec un partitionnement standard et de la place non allouée (exécutez
pvresize /dev/sda2
)
#3 Updated by Scrum Master over 5 years ago
- Project changed from eole-common to Distribution EOLE
- Status changed from En cours to Résolu
#4 Updated by Gérald Schwartzmann about 5 years ago
- Status changed from Résolu to Fermé
- Remaining (hours) changed from 0.5 to 0.0