swap領域を拡張する方法
# swapon -s
Filename Type Size Used Priority
/dev/mapper/VolGroup00-LogVol01 partition 524280 0 -1
# free
total used free shared buffers cached
Mem: 255004 251120 3884 0 11600 168480
-/+ buffers/cache: 71040 183964
Swap: 524280 76 524204
# swapoff /dev/mapper/VolGroup00-LogVol01
# free
total used free shared buffers cached
Mem: 255004 250888 4116 0 11308 169028
-/+ buffers/cache: 70552 184452
Swap: 0 0 0
# lvextend -L 1G /dev/mapper/VolGroup00-LogVol01
Extending logical volume LogVol01 to 1.00 GB
Logical volume LogVol01 successfully resized
# mkswap /dev/mapper/VolGroup00-LogVol01
Setting up swapspace version 1, size = 1073737 kB
# swapon /dev/mapper/VolGroup00-LogVol01
# free
total used free shared buffers cached
Mem: 255004 243956 11048 0 11252 161740
-/+ buffers/cache: 70964 184040
Swap: 1048568 0 1048568
# swapon -s
Filename Type Size Used Priority
/dev/mapper/VolGroup00-LogVol01 partition 1048568 0 -2
# free
total used free shared buffers cached
Mem: 255004 243956 11048 0 11252 161740
-/+ buffers/cache: 70964 184040
Swap: 1048568 0 1048568
# swapoff /dev/mapper/VolGroup00-LogVol01
# lvremove /dev/mapper/VolGroup00-LogVol01
Do you really want to remove active logical volume LogVol01? [y/n]: y
Logical volume "LogVol01" successfully removed
# lvcreate -L 512M -n LogVol01 VolGroup00
Logical volume "LogVol01" created
# mkswap /dev/mapper/VolGroup00-LogVol01
Setting up swapspace version 1, size = 536866 kB
# swapon /dev/mapper/VolGroup00-LogVol01
# free
total used free shared buffers cached
Mem: 255004 248516 6488 0 11444 168812
-/+ buffers/cache: 68260 186744
Swap: 524280 0 524280