LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-26-2011, 09:24 AM   #1
gssb
LQ Newbie
 
Registered: Apr 2011
Location: Germany
Distribution: RHEL 5.6
Posts: 6

Rep: Reputation: 0
Need to change shared memory limit in shmmax


Hi all,

I am running CentOS 64 bit and I need to install some specific database software which requires a shared memory limit greater than 32 MB.

I want to change the value of shmmax to the equivalent of 128 MB.

Unfortunately I cannot write away my changes in vi with wq! due to error E212 Can't open file for writing.

I can also not chmod the file due to "Operation not permitted".

I am working as ROOT and ROOT owns this file.

Any way I can get around this?

Thanks
Glenn
 
Old 08-26-2011, 05:42 PM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
What file are you trying change?
 
Old 08-26-2011, 06:20 PM   #3
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Rep: Reputation: 51
this may sound really dumb...but

try lsattr. Not sure why anything would get set that way. We use at work to block people from making changes alot. then again, with out the specific steps need to reproduce your error it may be kinda hard to figure out.
EXAMPLE:

Code:
$ touch test.txt
o_o$ lsattr -V test.txt 
lsattr 1.41.11 (14-Mar-2010)
-----------------e- test.txt
0_o$ chattr -V +ia test.txt; ll test.txt 
chattr 1.41.11 (14-Mar-2010)
Flags of test.txt set as ----ia-----------e-
chattr: Operation not permitted while setting flags on test.txt
-rw-r--r-- 1 0_o 0_o 0 2011-08-26 18:38 test.txt
chattr 1.41.11 (14-Mar-2010)
Flags of test.txt set as ----ia-----------e-
chattr: Operation not permitted while setting flags on test.txt
So, if you see ia after running lsattr against your file that might be a bump in the road.

Last edited by mrmnemo; 08-26-2011 at 06:42 PM.
 
Old 08-29-2011, 03:07 AM   #4
gssb
LQ Newbie
 
Registered: Apr 2011
Location: Germany
Distribution: RHEL 5.6
Posts: 6

Original Poster
Rep: Reputation: 0
I will ask my virtual server supplier about my problem and see what they say. It could be a restriction that they only have control over.

I will report back any solution.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chaning kernel.shmmax value after more physical memory is added princessshieh Linux - Kernel 2 09-09-2009 05:21 PM
parameter SHMMAX (largest shared memory segment) too small or insufficient swap space barkaline Fedora 1 07-29-2009 12:31 PM
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 04:05 AM
Shared memory size limit? nodger Programming 1 03-16-2005 08:28 AM
How to change shared memory and semaphore config on RHL9? ryanw Linux - Software 1 01-18-2005 10:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:04 PM.

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