Bog'liq Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)
command as
root
to display the physical volumes you have available on your server:
Figure 9.10: Output of the pvdisplay command on a sample server
The screenshot shows only one volume, as it had to be formatted to fit this page.
The
pvdisplay
command will show more output if you scroll up. Although we have
some physical volumes to work with, none of them are assigned to a volume group.
In fact, we haven't even created a volume group yet. We can now create our volume
group with the
vgcreate
command, where we'll give our volume group a name and
assign our first disk to it:
sudo vgcreate vg-test /dev/sdb
Here, I'm creating a volume group named
vg-test
and I'm assigning it one of the
physical volumes I prepared earlier (
/dev/sdb
). Now that our volume group is
created, we can use the
vgdisplay
command with
sudo
to view details about it,
including the number of assigned disks (which should now be
1
):