For experienced Linux System Administrators, System partitions are planned before the system is installed. To meet this requirement, next we will share some knowledge about Linux using the default centos partition.
Disk naming rules for Linux:
Hard Disk Type MARK: The first SCSI disk is/dev/SDA, the second SCSI disk is/dev/SDB, and the first SATA disk is/dev/hda, the second is/dev/HDB, and so on.
Hard Disk Partition Tag: in Linux, each partition number of each disk starts from 1. For example, the first partition of the first SCSI disk is/dev/sda1, the second partition is/dev/sda2.
It is the default disk partition of centos 5.4.
/Dev/SDA this server currently only adds one SCSI hard disk;
The first partition of the sda1 disk is mounted to/boot to the core components of the centos system;
The second partition of the sda2 disk. The type is physical disk, which is used for subsequent use of LVM;
VG volgroup00 creates a volume group. The volume group is used to centralize the partitions of many large physical disks into one volume group to form a logical large hard disk;
LV logvol00 creates a logical volume, which is equivalent to a partition of a large volume group. The root directory of the/system is hung here;
The principle of LV logvol01 is the same as that of the previous one. The format here is a swap partition, which is equivalent to a virtual memory.
Many VPs users increase hard disk space based on their data needs. Therefore, for VPs, the best way to solve this problem is to use volume groups. When the volume group space is insufficient, you only need to add the "physical hard disk" to the volume group to increase the volume group space. The effect is that the hard disk has a lot of space without changing the system directory.