VM下LINUX完美增加硬盘空间(LVM)(2)
PE Size (KByte) 32768
Total PE 252
Free PE 0
Allocated PE 252
PV UUID ua5FJN-jSLL-bGkp-w0XO-N8JG-MBR0-1yDzGW
--- Physical volume ---
PV Name /dev/sda3
VG Name VolGroup00
PV Size 3.84 GB / not usable 25.96 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 122
Free PE 122
Allocated PE 0
PV UUID mHKWzk-mQ1o-jkQB-0DZC-PVqW-w2R9-14y19G
把sda3变为LVM的虚拟磁盘(增加容量的关键)
vgextend /dev/VolGroup00/LogVol102 /dev/sda3
第三步 增加 /目录容量
lvm> lvextend -L +3.8G /dev/VolGroup00/LogVol00
Rounding up size to full physical extent 3.81 GB
Extending logical volume LogVol00 to 9.69 GB
Logical volume LogVol00 successfully resized
##还要重新一下识别磁盘容量
# resize2fs /dev/VolGroup00/LogVol00
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/VolGroup00/LogVol00 is mounted on /; on-line resizing required
Performing an on-line resize of /dev/VolGroup00/LogVol00 to 2539520 (4k) blocks.
The filesystem on /dev/VolGroup00/LogVol00 is now 2539520 blocks long.
查看最终结果:
lvm> lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID r9eG4x-njBD-z2HT-lmL2-2l81-P3XV-KVd0e4
LV Write Access read/write
LV Status available
# open 1
相关新闻>>
- 发表评论
-
- 最新评论 更多>>