关于lvm:Linux磁盘LVM根目录扩容
LVM 的基本概念 物理卷 Physical Volume (PV):能够在下面建设卷组的媒介,能够是硬盘分区,也能够是硬盘自身或者回环文件(loopback file)。物理卷包含一个非凡的 header,其余部分被切割为一块块物理区域(physical extents) 卷组 Volume group (VG):将一组物理卷收集为一个治理单元 逻辑卷 Logical volume (LV):虚构分区,由物理区域(physical extents)组成 物理区域 Physical extent (PE):硬盘可供指派给逻辑卷的最小单位(通常为 4MB) 新建分区 root@hello:~# fdisk /dev/sdaWelcome to fdisk (util-linux 2.34).Changes will remain in memory only, until you decide to write them.Be careful before using the write command.GPT PMBR size mismatch (209715199 != 629145599) will be corrected by write.The backup GPT table is not on the end of the device. This problem will be corrected by write.Command (m for help): nPartition number (4-128, default 4): First sector (209713152-629145566, default 209713152): Last sector, +/-sectors or +/-size{K,M,G,T,P} (209713152-629145566, default 629145566): Created a new partition 4 of type 'Linux filesystem' and of size 200 GiB.Command (m for help): pDisk /dev/sda: 300 GiB, 322122547200 bytes, 629145600 sectorsDisk model: QEMU HARDDISK Units: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisklabel type: gptDisk identifier: 9FD87B41-A400-4DD9-AE87-C852ACB2854DDevice Start End Sectors Size Type/dev/sda1 2048 4095 2048 1M BIOS boot/dev/sda2 4096 2101247 2097152 1G Linux filesystem/dev/sda3 2101248 209713151 207611904 99G Linux filesystem/dev/sda4 209713152 629145566 419432415 200G Linux filesystemCommand (m for help): wThe partition table has been altered.Syncing disks.root@hello:~#扩大pv并查看 ...