Use 2 disks, each with a capacity of about 16GB. All disks are combinate in to one Volume Groups (VG) Create a Logical Volumes (LV) name called "logical.volume" and use the entire capacity of Volume Groups (VG).
2022-12-12_144418.png
Creating Physical Volumes (PV)
Use the pvcreate command to create a Physical Volumes (PV). Partitioned or unpartitioned disks both can be created. Both disks partition's names are /dev/sdb and /dev/sdc
Removing a physical volume You can remove a physical volume with the pvremove command.
pvremove <pvname>
Volume Groups (VG)
Extending a volume group
Extending a volume group (VG) means adding additional physical volumes (PV) to a volume group (VG). The vgextend command is used. 2022-12-12_145839.png
2022-12-12_145949.png
2022-12-12_150303.png
sudo vgextend <vgname> /dev/sdd
Reducing a volume group
Use the vgreduce command to do this.
vgreduce <vgname> <pvname1> <pvname2>....
Removing a volume group
Remove a logical volume with the vgremove command.
sudo vgremove <vgname>
Logical Volumes (LV)
Resizing a logical volume
To extend a logical volume using lvextend command and reduce its size using lvreduce command. Or you can use the single command lvresize to accomplish both tasks. 2022-12-12_150622.png
lvresize -L [+|-][Size] <vgname>/<lvname>
After the volume size has increased, the filesystem must be resized as well. For ext4, the command to use is resize2fs.
sudo resize2fs /dev/<vgname>/<lvname>
Removing a logical volume You remove a logical volume with the lvremove command. The command syntax is as follows:-
lvremove <vgname>/<lvname>
Conclusion:
Many manufacturers now use LVM the default file system, such as PVE, Ubuntu, Synology, QNAS, etc.