Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 04-04-2006, 08:56 AM   #1
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Rep: Reputation: 30
How to increase swap size in LVM?

My current swap file is a logical volume of a volume group. How should I go about increasing the swap size after adding another physical disk?

Thanks !

PS. Is it recommended to put the swap file on a partition/disk under LVM?
Old 04-04-2006, 09:47 AM   #2
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
You could remove/resize (lvremove/lvresize) the current swap logical volume and create a larger one, but it’s probably easier to add a second swap logical volume (lvcreate, mkswap, swapon) if you really think you need it.


If you’re not really using much swap, then it really doesn’t make a lot of difference as to where it is. My personal preference is to have a small 1st priority swap partition at the outer edge of the disk (i.e., the “fast” zone) and for the rest, if present, to be 2nd priority swap buried somewhere down the disk in a partition or LVM. But swap size and location is strictly a personal preference.

Last edited by WhatsHisName; 04-04-2006 at 09:48 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu - increase swap size dna9 Linux - Distributions 11 01-24-2005 11:45 AM
Increase EXT3 Filesystem size in a LVM? jadupl2 Red Hat 3 11-14-2004 08:40 PM
Looking to increase swap partition Patgod Linux - Newbie 8 03-29-2004 05:46 PM
increase point size size when printing PDF files newlin Red Hat 0 09-27-2003 07:13 AM
Increase Swap Space? star geezer Linux - Software 9 03-10-2003 12:04 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration