[root@skywalker /]#fdisk /dev/sdc - choisir "n" pour créer une nouvelle partition - puis p pour partition primaire - puis laisser ensuite les valeurs par défaut pour le numéro de partition, le début et la fin du disque. - choisir "t" pour odifier l'id de la partition et rentrer 8e pour attribuer un id de type lvm. - Choisir enfinw pour enregistrer les modifictions et quitter.
Physical volume "/dev/sdc1" successfully created [root@skywalker ~]# pvdisplay /dev/sdc1 "/dev/sdc1" is a new physical volume of "3,00 GiB" --- NEW Physical volume --- PV Name /dev/sdc1 VG Name PV Size 3,00 GiB Allocatable NO PE Size 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID F51Pmf-JyT2-SnUd-QRBp-DUx9-eWj2-8AP1gH
Créer un volume group et lister ses propriétés
[root@skywalker ~]# vgcreate vgtest /dev/sdb1 /dev/sdc1 Volume group "vgtest" successfully created [root@skywalker ~]# vgdisplay -v vgtest Using volume group(s) on command line Finding volume group "vgtest" --- Volume group --- VG Name vgtest System ID Format lvm2 Metadata Areas 2 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 2 Act PV 2 VG Size 12,99 GiB PE Size 4,00 MiB Total PE 3326 Alloc PE / Size 0 / 0 Free PE / Size 3326 / 12,99 GiB VG UUID 6ofc2H-9Xpo-Reb8-zqti-og60-BZ8u-dvhd7x --- Physical volumes --- PV Name /dev/sdb1 PV UUID xJxwWK-oFc7-MouK-Okph-0Kkm-qmu3-j3HMmA PV Status allocatable Total PE / Free PE 2559 / 2559 PV Name /dev/sdc1 PV UUID F51Pmf-JyT2-SnUd-QRBp-DUx9-eWj2-8AP1gH PV Status allocatable Total PE / Free PE 767 / 767
--- Logical volume --- LV Name /dev/vgtest/lvtest VG Name vgtest LV UUID Op16SE-Lzba-XN1H-O83d-ZH79-ZAkw-jwWAnn LV Write Access read/write LV Status available # open 0 LV Size 1,95 GiB Current LE 500 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2