Find the answer to your Linux question:
Results 1 to 3 of 3
Is it uncommon to resize a swap partition? Lets say I have this configuration setup. /dev/sda3 setup as swap space and is 4 GB, I need to grow it to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2013
    Posts
    18

    Swap


    Is it uncommon to resize a swap partition? Lets say I have this configuration setup.
    /dev/sda3 setup as swap space and is 4 GB, I need to grow it to 8GB.
    Is it uncommon to use LVM to resize this partition? What is best practice?

  2. #2
    Just Joined!
    Join Date
    Sep 2013
    Location
    Hyderabad
    Posts
    29
    Youcan use LVM to resize. It worksout great

  3. #3
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,882
    Quote Originally Posted by rajesh00749 View Post
    Youcan use LVM to resize. It worksout great
    Yes, completely agree.

    It's actually quite uncommon to resize swap partitions at all, but if your swap is on a logical volume (which is pretty standard these days) then the best practice way to resize it is with the LVM tools. You don't have to do it from the command line, though. As you're running a RedHat based distro, you can install 'system-config-lvm' through the package manger and have a nice graphical interface to the tools.
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •