Increase LVswap partition size

Source: Internet
Author: User

1. Disable swap Partition

[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. Extended/dev/VolGroup00/LogVol01, increased by 70 GB

[Root @ ts01 ~] # Lvextend-L + 70G/dev/VolGroup00/LogVol01
Extending logical volume LogVol01 to 79.88 GB
Logical volume LogVol01 successfully resized

3. Set/dev/VolGroup/lv_swap to swap partition.

[Root @ ts01 ~] # Mkswap/dev/VolGroup00/LogVol01
Setting up swapspace version 1, size = 85765111 kB

4. Start the swap partition.

[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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.