Jump to content

Linux Administration/Devices and Filesystems/LVM/vgcreate

From Wikiversity

vgcreate[1] creates a VG to be used in Linux LVM.


Examples

[edit | edit source]
  • vgcreate VolGroup00 /dev/hdb167 (Select PV (/dev/hdb167) from pvs command)
vgcreate VolGroup00 /dev/hdb167
 Volume group "VolGroup00" successfully created
 vgdisplay VolGroup00
  --- Volume group ---
  VG Name               VolGroup00
  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               <9.10 TiB
  PE Size               4.00 MiB
  Total PE              2384620
  Alloc PE / Size       0 / 0
  Free  PE / Size       2384620 / <9.10 TiB
  VG UUID               2f4LTT-TsKL-83Nx-2bzc-LRve-tP2I-VREeXR


  --- Physical volumes ---
  PV Name               /dev/hdb167
  PV UUID               tM8ycn-ZsXx-al7S-dNTE-diiH-0wrr-SWvWxR
  PV Status             allocatable
  Total PE / Free PE    2384620 / 2384620

See also

[edit | edit source]
  1. http://man7.org/linux/man-pages/man8/vgcreate.8.html