How do I increase my swap space on RH Linux AS 4.0
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do I increase my swap space on RH Linux AS 4.0
I am runnint "Linux beaurac2.beaumont.edu 2.6.9-42.0.2.ELlargesmp #1 SMP x86_64 GNU/Linux".
Swap space is currently set at 8gig on logicla volume "/dev/osvg/swap".
I need to increase my swap space to approximately 10gig for my 10gR2 RAC linux install.
I am using logical volume manager but I am not able to make any changes to the swap space.
Can some one tell me how to increase my swap space?
Of course before you can use those commands for adding to swap you'll have to either increase your existing logical volume (LV) or add another one. I'd suggest the latter just because it is easier.
vgdisplay /dev/osvg # Will show you how much space if any you have left in the Volume Group (VG) named osvg.
You can use the lvcreate command to create another LV using the space needed assuming you have space in the VG.
There is an lvextend command as well but I'm not sure you could just extend a swap LV and have it work. At a minimum you'd have to reboot - and it might not even allow you to do the extend because swap is in use. You might have to do something like:
-Comment out the swap entries in /etc/fstab
-Boot the system (swap won't start)
-Do the lvextend on the swap LV
-Use the swap commands to insure the new LV is fully set as swap.
-Uncomment the swap entries in /etc/fstab
-Reboot the server and verify you have the correct amount of swap.
I'd caution you on the Oracle specifications though. So far as I can tell they just base what they tell you on the machine they happened to have been on rather than actually checking requirement. I once saw a specification for shared memory max (shmmax) kernel parameter that was larger than my machine's physical memory. The system ran just fine once I allocated what seemed a much more reasonable number.
10GB swap should mean you have at least 5GB physical memory (using the old rule of thumb Swap = 2 x Physical. Some people just do 1 x Physical. The swap won't really let you increase your SGA though - that resides in shared memory (shmmax, shmmni etc... are the kernel parameters for that).
Of course the SGA is for the DB server. For the apps (middle tier) swap probably have more of an impact though they aren't really memory intensive the way the DB is.
By the way: We have RAC 10g Lite on RHEL AS 3 and only have 5 GB swap configured there.
Last edited by MensaWater; 01-18-2007 at 09:28 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.