不做第二个别人,永远做第一个自己。
分类: 云计算
2014-04-10 10:39:12
[root@aa ~]# resize2fs /dev/mapper/VolGroup-lv_root
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/mapper/VolGroup-lv_root is mounted on /; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 7
Performing an on-line resize of /dev/mapper/VolGroup-lv_root to 27673600 (4k) blocks.
The filesystem on /dev/mapper/VolGroup-lv_root is now 27673600 blocks long.
df -hT 查看分区情况
[root@aa ~]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root ext4 104G 3.1G 96G 4% /
tmpfs tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/vda1 ext4 485M 54M 406M 12% /boot
删除swap分区
swapoff /dev/dm-1
rm -rf /dev/mapper/VolGroup-lv_swap