Quickly combine physical disks into a single LVM volume group to manage storage flexibly. 29.06.2026 | reading time: 2 min Want to treat multiple disks as one pool? Use `vgcreate` to assemble physical volumes into a single logical volume group that makes allocation, snapshots and resizes simple. Hands-on example: create vg_data On a test host with two partitions available, run the following to prepare PVs and create a VG; the shown output is typical: ```bash # pvcreate /dev/sdb1 /dev/sdc1 Physical volume "/dev/sdb1" successfully created Physical volume "/dev/sdc1" successfully created ``` Then create the VG: ```bash # vgcreate vg_data /dev/sdb1 /dev/sdc1 Volume group "vg_data" successfully created ``` Quick verification with `vgs` or `pvs`: ```bash # vgs vg_data VG #PV #LV #SN Attr VSize VFree vg_data 2 0 0 wz--n- 100.00g 100.00g ``` Key options and patterns Create with different PE sizes or allocation policies by adding options such as `-s` to set physical extent size or `--alloc` to define allocation policy; use `-f` to force overwrite of metadata when recycling devices, and `--setauto` to control activation on boot. How vgcreate fits a workflow `vgcreate` follows `pvcreate` and precedes `lvcreate`; after creation you commonly run `vgchange -ay` to activate VGs, `vgextend` to add PVs, and monitoring commands like `vgs`, `pvs` and `lvs` to inspect sizes and free space. Practical cautions Always double-check device names before `pvcreate` since the operation writes LVM metadata; test on non-production disks, keep backups of important metadata with `vgcfgbackup`, and consider partition alignment and RAID if performance or redundancy matters. Next steps and study Try extending the VG with a spare disk, then create logical volumes and a filesystem to see resizing in action; mastering these steps is excellent preparation for certifications and real-world storage management. Join Bits & Bytes Academy First class LINUX exam preparation. storage setup utilities infrastructure Dieser Artikel wurde mithilfe von KI erstellt.