LinuxServer1 & LinuxServer2
***************************
swapoff -av /dev/vg00/swapvol
swapon -s
lvresize /dev/vg00/swapvol -L 32G
mkswap /dev/vg00/swapvol
swapon -va
free -tg
==============================================
bash-3.2# hostname
LinuxServer1
bash-3.2# swapoff -av /dev/vg00/swapvol
swapoff on /dev/vg00/swapvol
swapoff on /dev/vg00/swapvol
bash-3.2# swapon -s
bash-3.2# lvresize /dev/vg00/swapvol -L 32G
Extending logical volume swapvol to 32.00 GB
Logical volume swapvol successfully resized
bash-3.2# mkswap /dev/vg00/swapvol
Setting up swapspace version 1, size = 34359734 kB
bash-3.2# swapon -va
swapon on /dev/vg00/swapvol
bash-3.2# swapon -s
Filename Type Size Used Priority
/dev/mapper/vg00-swapvol partition 33554424 0 -2
bash-3.2# free -tg
total used free shared buffers cached
Mem: 251 1 249 0 0 0
-/+ buffers/cache: 0 251
Swap: 31 0 31
Total: 283 1 281
bash-3.2# free -tm
total used free shared buffers cached
Mem: 257565 1694 255870 0 245 956
-/+ buffers/cache: 493 257071
Swap: 32767 0 32767
Total: 290333 1694 288638
bash-3.2#
=================================================
bash-3.2# swapoff -av /dev/vg00/swapvol
swapoff on /dev/vg00/swapvol
swapoff on /dev/vg00/swapvol
bash-3.2# swapon -s
bash-3.2# lvresize /dev/vg00/swapvol -L 4G
/dev/hda: open failed: No medium found
Extending logical volume swapvol to 4.00 GB
Logical volume swapvol successfully resized
bash-3.2# mkswap /dev/vg00/swapvol
Setting up swapspace version 1, size = 4294963 kB
bash-3.2# swapon -va
swapon on /dev/vg00/swapvol
bash-3.2# free -tg
total used free shared buffers cached
Mem: 3 3 0 0 0 2
-/+ buffers/cache: 0 2
Swap: 3 0 3
Total: 7 3 4
bash-3.2# free -tm
total used free shared buffers cached
Mem: 3775 3753 21 0 146 2672
-/+ buffers/cache: 933 2841
Swap: 4095 0 4095
Total: 7871 3753 4117
bash-3.2#
No comments:
Post a Comment