1、 关闭交换分区
[root@ts01 ~]# free
total used free shared buffers cached
Mem: 267269056 13625040 253644016 0 323824 5051312
-/+ buffers/cache: 8249904 259019152
Swap: 10354656 0 10354656
[root@ts01 ~]# swapoff /dev/VolGroup00/LogVol01
[root@ts01 ~]# free -m
total used free shared buffers cached
Mem: 261004 13305 247699 0 316 4932
-/+ buffers/cache: 8056 252948
Swap: 0 0 0
2、扩展 /dev/VolGroup00/LogVol01,增加70GB
[root@ts01 ~]# lvextend -L +70G /dev/VolGroup00/LogVol01
Extending logical volume LogVol01 to 79.88 GB
Logical volume LogVol01 successfully resized
3、将 /dev/VolGroup/lv_swap设置为swap分区
[root@ts01 ~]# mkswap /dev/VolGroup00/LogVol01
Setting up swapspace version 1, size = 85765111 kB
4、启动swap分区
[root@ts01 ~]# swapon /dev/VolGroup00/LogVol01
[root@ts01 ~]# free
total used free shared buffers cached
Mem: 267269056 13634224 253634832 0 323808 5051856
-/+ buffers/cache: 8258560 259010496
Swap: 83754976 0 83754976
原文:http://blog.csdn.net/clark_xu/article/details/22648309