Outils pour utilisateurs

Outils du site


volume_physique_et_groupe_de_volumes_lvm

Ceci est une ancienne révision du document !


Volume physique et groupe de volumes LVM

Installation de LVM

Si nécessaire :

# apt-get install lvm2

Création du "physical volume"

# pvcreate /dev/sda1  
Physical volume "/dev/sda1" successfully created
#

“/dev/sda1” pourra être remplacé par “/dev/mda1” sans le cas d'un raid logiciel.

Pour voir le résultat :

root@secours:~# pvdisplay 
  "/dev/sda1" is a new physical volume of "111,79 GiB"
  --- NEW Physical volume ---
  PV Name               /dev/sda1
  VG Name               
  PV Size               111,79 GiB
  Allocatable           NO
  PE Size               0   
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               wuAaOt-undv-E55L-Qbfo-UtPC-hJmF-xjA8mo
   
root@secours:~# 

Création du "volume group"

# vgcreate vg /dev/sda1
/proc/devices: No entry for device-mapper found
Volume group "vg" successfully created
#

Pour afficher le résultat :

# vgdisplay
  --- Volume group ---
  VG Name               vg
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               1,82 TiB
  PE Size               4,00 MiB
  Total PE              476439
  Alloc PE / Size       0 / 0   
  Free  PE / Size       476439 / 1,82 TiB
  VG UUID               Vetofl-gQwV-Y7fN-BS38-xgiB-uDr6-ZP4Vtr
#
volume_physique_et_groupe_de_volumes_lvm.1440317289.txt.gz · Dernière modification : 2023/07/04 10:55 (modification externe)