Code:
vgcreate vgname device(s)
creates a "volume group" as a collection of physical devices (which may be simply partitions).
You can specify the
extent size, the unit of size which can be used to create "logical volumes" but you can't specify the volume group size.
You maybe confusing
logical volumes and
volume groups.
You may create one large
volume group that has lots of space, then allocate the space needed by creating
logical volumes
using
lvcreate, which takes size as an arg.
Also, you may create your partitions in small units, then create a volume group as a collection of partitions, which you can add to, or remove from.
If you insist on having a 4096M VG, then
Create /dev/sdb1 to be 4096M
Code:
pvcreate /dev/sdb1
vgcreate vgname /dev/sdb1
and your VG vgname will be 4096M
You'll still have to create a logical volume, and in the end it will be slightly less than 4096M of usable space because of metadata.