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

Notices

Reply
 
Search this Thread
Old 04-04-2006, 09:56 AM   #1
Akhran
Member
 
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, 10:47 AM   #2
WhatsHisName
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 10:48 AM.
 
  


Reply


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 12:45 PM
Increase EXT3 Filesystem size in a LVM? jadupl2 Red Hat 3 11-14-2004 09:40 PM
Looking to increase swap partition Patgod Linux - Newbie 8 03-29-2004 06:46 PM
increase point size size when printing PDF files newlin Red Hat 0 09-27-2003 08:13 AM
Increase Swap Space? star geezer Linux - Software 9 03-10-2003 01:04 PM


All times are GMT -5. The time now is 09:39 AM.

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