[root@download1 ~]# lvextend -l +2559 /dev/VolGroup00/ 勿回车
LogVol00 LogVol01
注意!不知道选哪个,通过以下命令获取可以得到
[root@download1 ~]# df -hl
文件系统 容量 已用 可用 已用% 挂载点
/dev/mapper/VolGroup00-LogVol00
19G 12G 6.4G 64% /
/dev/sda1 99M 20M 75M 21% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
=========================================================
为/dev/VolGroup00/LogVol00增加容量
[root@download1 ~]# lvextend -l +2559 /dev/VolGroup00/LogVol00
/dev/hdc: open failed: 找不到介质
Extending logical volume LogVol00 to 99.09 GB
Insufficient free space: 2559 extents needed, but only 1280 available
[root@download1 ~]# lvextend -l +1280 /dev/VolGroup00/LogVol00
/dev/hdc: open failed: 找不到介质
Extending logical volume LogVol00 to 59.12 GB
Logical volume LogVol00 successfully resized
用 resize2fs 调整文件系统大小
[root@download1 ~]# resize2fs /dev/mapper/VolGroup00-LogVol00
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/mapper/VolGroup00-LogVol00 is mounted on /; on-line resizing required
Performing an on-line resize of /dev/mapper/VolGroup00-LogVol00 to 15499264 (4k) blocks.
The filesystem on /dev/mapper/VolGroup00-LogVol00 is now 15499264 blocks long.
[root@download1 ~]# df -hl
文件系统 容量 已用 可用 已用% 挂载点
/dev/mapper/VolGroup00-LogVol00
58G 12G 44G 21% /
/dev/sda1 99M 20M 75M 21% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm