Forrest logo
back to the vgcreate tool

vgcreate:tldr:a732c

vgcreate: Create a new volume group called vg1 using multiple devices.
$ vgcreate ${vg1} ${-dev-sda1} ${-dev-sdb1} ${-dev-sdc1}
try on your machine

This command is used to create a volume group using the physical volumes specified in the command. Here's a breakdown of the parts:

  • vgcreate: This is the command that creates a volume group.
  • ${vg1}: This is a placeholder for the name of the volume group you want to create. You need to replace ${vg1} with an actual name.
  • ${-dev-sda1}: This specifies the first physical volume to be added to the volume group. Similarly, ${-dev-sdb1} and ${-dev-sdc1} represent the second and third physical volumes, respectively. You also need to replace these placeholders with the actual device paths of the physical volumes you want to include in the volume group.

Overall, the command creates a volume group with the given name, using the specified physical volumes.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the vgcreate tool