Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
Wat het doet
vgcreate NAME PV... joins PVs into a storage pool. Devices that are not PVs yet are initialized automatically. The extent size (-s, default 4 MiB) is the unit in which space is given to LVs; it is fixed for the life of the VG.
vgremove deletes a VG (and asks to remove its LVs).
Zo schrijf je het
vgcreate [OPTION]... VG_NAME PV...
vgremove [OPTION]... VG_NAME...Opties 28
Meest gebruikt
vgcreate
vgremove
Common LVM options
Niets past bij dit filter.
Voorbeelden 10
$ als gewone gebruiker# als root (of met sudo)
1Create a VG
vgcreate vgdata /dev/vdb1 /dev/vdc Volume group "vgdata" successfully createdTwo PVs in one pool.
2With an extent size of 8 MiB
vgcreate -s 8M vgfiles /dev/vdc1Exam tasks often name the extent size.
3Check it
PE Size, total and free extents.
4Directly on a new disk
vgcreate vgbackup /dev/vddvgcreate makes the PV for you.
5Test first
vgcreate -t vgtest /dev/vdeNothing changes.
6Remove a VG
vgremove vgtestAsks for every active LV. Remove fstab lines first!
7Remove with all LVs at once
vgremove -f vgtestNo questions — be sure.
8Rename a VG
vgrename vgdata vgprodUpdate fstab and other configs that use the old name.
9Tag a VG
vgcreate --addtag prod vgweb /dev/vdfSelect VGs by tag in scripts (@prod).
10Metadata backup after changes
ls /etc/lvm/backup/LVM writes a backup of each VG here automatically.
Niets past bij dit filter.
Exitcodes
0 :: Done. 5 :: Error.