1.查看硬盘的情况。

可以看到硬盘新增了大小,但是没有被用起来。
下面我要做的其实就是lvm扩展
[root@Slave2 ~]# fdisk /dev/sda
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sda: 429.5 GB, 429496729600 bytes, 838860800 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0001784c
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 2099199 1048576 83 Linux
/dev/sda2 2099200 33554431 15727616 8e Linux LVM
Command (m for help): n
Partition type:
p primary (2 primary, 0 extended, 2 free)
e extended
Select (defau

本文详细介绍了如何使用LVM(Logical Volume Manager)进行硬盘扩容的全过程。从创建新的物理卷,将其加入现有卷组,再到扩展逻辑卷并同步至文件系统,每一步都附有具体操作命令及解释。
最低0.47元/天 解锁文章
1739





