Create a volume group called vg1 from the physical volume on /dev/sdXY

lvm

  • Manage physical volumes, volume groups, and logical volumes using the Logical Volume Manager (LVM) interactive shell.
    More information: <https://man7.org/linux/man-pages/man8/lvm.8.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo lvm vgcreate {{vg1}} {{/dev/sdXY}}

click the source code to copy install lvm on any operating system with command-not-found.com