Storage components
File
Directory
File system
Logical storage
Physical storage
Logical Volume Manager
Problems with traditional UNIX disk storage
Fixed partition
Enlarge the size of the partition
A file system and a file size limit
Need for disk space continuity
The time and effort required to plan your storage beforehand
Benefits of Logical Volume Manager (LVM)
Solves the problem of the nonadjacent space
You can cross disk
Size can be dynamically increased
Can do mirroring
It's easy to add a hard drive to the system
Logical volumes can be relocated
Statistical data that can be collected from volume groups and logical volumes
Compared to traditional UNIX systems, these tasks can be dynamically executed
Physical storage
Physical Volume (PV) an actual disk that exists. The hard disk in the machine can be divided into internal hard disk and external hard drive. The newly added disk must be added to a volume group or a specific volume group is created for the disk so that the disk can be used by the logical Volume Manager.
A physical volume can belong to only one volume group
A volume group (VG) is the largest unit of storage allocation, and a volume group consists of one or a set of physical volumes. The volume group's capacity size is the sum of the size of these physical volumes. Other storage entities can use volume group space.
Physical partitions (PP) are the basic unit of disk allocation. All physical partitions within a volume group are of the same size and cannot be dynamically changed. By default, a physical volume can contain up to 1016 physical partitions. If a volume group contains a physical volume and the physical volume is larger than 4GB, either the physical volume's unit physical partition size is greater than 4MB, or the physical volume contains more physical partitions.
Volume Group (VG)
Why to create a new VG
Isolate user data and system files
Disaster recovery
Data portability
Data integrity and security
Limit of volume group
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/unix/
The diagram above illustrates the relationship between this parameter and the number of physical volumes for both volume groups. For example, Mkvg–t 2 allows 2032 pp per volume group. If the volume group is a normal volume group, the maximum number of physical volumes allowed for the volume group is 16, and if it is a large volume group, the maximum number of physical volumes allowed for the volume group is 64.