LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-03-2007, 11:58 AM   #1
tnine9
Member
 
Registered: Jan 2003
Posts: 39

Rep: Reputation: 15
Resizing Swap in LVM on Fedora 6


Hi all,
I have fedora 6 running in a vmware image. I'm having issues with lighttpd and ruby on rails eating all of my RAM and swap when I get several concurrent users. Since this load rarely happens, I would like to increase my swap space until I can install more RAM on the host machine. The swap appears to be in the lvm group 00 volume 1. Below is my fstab

/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

How can I shrink LogVol00 and expand LogVol01? I can't find any documentation that is a sufficiently satisfying "how to". Any help would be greatly appreciated. As a I said earlier, its a vmware guest OS, so if it destroy my LVM I can always restore the snapshot.

Thanks,
Todd
 
Old 03-03-2007, 12:05 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if this really is a temporary measure, just use a secondary swap file whereever you have some free space. you can use mkswap on a file just as easily as a partition, e.g.
Code:
dd if=/dev/null of=/swap.file bs=1024 count=512
mkswap /swap.file
swapon /swap.file
 
Old 03-03-2007, 12:12 PM   #3
tnine9
Member
 
Registered: Jan 2003
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks for the reply. I actually have already done this, but I've read its a performance hit on the file system. I was unsure how big of a hit it would be in an LVM environment since there are now two layers of abstraction between the data and the file system (plus vmware). Does it really make a difference, or is it just a purist approach to not use temporary swap file?
 
  


Reply



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
LVM: Resizing the root partition fulat2k Linux - General 6 01-08-2012 04:35 PM
Resizing a root LVM filesystem eigoteacher Linux - Newbie 7 08-23-2007 09:36 AM
resizing non-LVM partition laggerific Linux - Software 1 11-09-2006 06:20 PM
Resizing / with LVM zivota Red Hat 2 07-12-2006 03:30 PM
Resizing an ext3 LVM Partition PenguinPwrdBox Linux - Software 1 09-04-2005 02:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:03 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
Open Source Consulting | Domain Registration