[TriLUG] CentOS 5.5: kickstart shmall and shmmax woes

Brian Weaver cmdrclueless at gmail.com
Fri Jan 7 08:05:35 EST 2011


That's effectively what I did. I added the following code to the %pre section

sysctl=`which sysctl`
if [ -n "$sysctl" -a -x "$sysctl" ]  ; then
	"$sysctl" -w kernel.shmmax=4294967295 kernel.shmall=268435456

This works around the problem and things now work as expected. I guess I was just hoping to understand why it change on one type of install and not on another. Also, I wondered if anyone had any ideas on what I might look for since I couldn't find the change in any obvious location.

-- Weave

On Jan 6, 2011, at 9:45 PM, Kristopher Kane wrote:

> On Thu, Jan 6, 2011 at 9:31 PM, Brian Weaver <cmdrclueless at gmail.com> wrote:
>> Kristopher,
>> The only problem with what you've posted is that it requires the system to
>> be rebooted. I need PostgreSQL to run during the initial kickstart. I've
>> added a bit of code to the %pre section of the kickstart configuration to
>> work around the issue. I'm just curious why it changes during package
>> installation on a cdrom install but doesn't change during package
>> installation of a network install.
> Weave,
> From the second post,
> $ sysctl -w kernel.shmmax=17179869184
> This should, according to man, modify at runtime while editing the
> conf file will make it persistent.  Does anyone know if the chroot of
> kickstart changes this normal function?
> -Kristopher
> -- 
> This message was sent to: cmdrclueless at gmail.com <cmdrclueless at gmail.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web	: http://www.trilug.org/mailman/options/trilug/cmdrclueless%40gmail.com
> TriLUG FAQ          : http://www.trilug.org/wiki/Frequently_Asked_Questions

More information about the TriLUG mailing list