I am trying to install MySQL for xCAT (xcat-mysql-5.1-37) on AIX 6.1 TL7 SP1 with 2GB of memory.
I've changed /etc/security/limits:
mysql:
data = -1
rss = -1
rss_hard = -1
When I run the script:
scripts/mysql_install_db --user mysql
I get the following error:
Installing MySQL system tables...
120112 8:41:38 InnoDB: Error: cannot allocate 2113536 bytes of
InnoDB: memory with malloc! Total allocated memory
InnoDB: by InnoDB 22063760 bytes. Operating system errno: 12
InnoDB: Check if you should increase the swap file or
InnoDB: ulimits of your operating system.
InnoDB: On FreeBSD check you have compiled the OS with
InnoDB: a big enough maximum process size.
InnoDB: Note that in most 32-bit computers the process
InnoDB: memory space is limited to 2 GB or 4 GB.
InnoDB: We keep retrying the allocation for 60 seconds...
120112 8:42:38 InnoDB: We now intentionally generate a seg fault so that
InnoDB: on Linux we get a stack trace.
120112 8:42:38 - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.
key_buffer_size=268435456
read_buffer_size=1048576
max_used_connections=0
max_threads=151
threads_connected=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 572918 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Installation of system tables failed! Examine the logs in
./data for more information.
You can try to start the mysqld daemon with:
shell> ./bin/mysqld --skip-grant &
and use the command line tool ./bin/mysql
to connect to the mysql database and look at the grant tables:
shell> ./bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in ./data that may be helpful.
I found reference to this error in:
http://www.unixmen.com/howto-install-mysql-on-aix-53/
And made the recommended changes with no improvement:
If you get the following error at mysqld startup:
Error:070627 21:36:12 InnoDB: Error: cannot allocate 209731584 bytes ofInnoDB: memory with malloc! Total allocated memoryInnoDB: by InnoDB 29352528 bytes. Operating system errno: 12InnoDB: Check if you should increase the swap file orInnoDB: ulimits of your operating system.[...]
Add this to /etc/security/limits:
mysql: data = -1
And in bin/mysqld_safe something like:
export LDR_CNTRL=’MAXDATA=0×80000000′
I am at a loss.
Does any one have any ideas as to what to do?
Thanks.
Steve Shapiro
I've changed /etc/security/limits:
mysql:
data = -1
rss = -1
rss_hard = -1
When I run the script:
scripts/mysql_install_db --user mysql
I get the following error:
Installing MySQL system tables...
120112 8:41:38 InnoDB: Error: cannot allocate 2113536 bytes of
InnoDB: memory with malloc! Total allocated memory
InnoDB: by InnoDB 22063760 bytes. Operating system errno: 12
InnoDB: Check if you should increase the swap file or
InnoDB: ulimits of your operating system.
InnoDB: On FreeBSD check you have compiled the OS with
InnoDB: a big enough maximum process size.
InnoDB: Note that in most 32-bit computers the process
InnoDB: memory space is limited to 2 GB or 4 GB.
InnoDB: We keep retrying the allocation for 60 seconds...
120112 8:42:38 InnoDB: We now intentionally generate a seg fault so that
InnoDB: on Linux we get a stack trace.
120112 8:42:38 - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.
key_buffer_size=268435456
read_buffer_size=1048576
max_used_connections=0
max_threads=151
threads_connected=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 572918 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Installation of system tables failed! Examine the logs in
./data for more information.
You can try to start the mysqld daemon with:
shell> ./bin/mysqld --skip-grant &
and use the command line tool ./bin/mysql
to connect to the mysql database and look at the grant tables:
shell> ./bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in ./data that may be helpful.
I found reference to this error in:
http://www.unixmen.com/howto-install-mysql-on-aix-53/
And made the recommended changes with no improvement:
If you get the following error at mysqld startup:
Error:070627 21:36:12 InnoDB: Error: cannot allocate 209731584 bytes ofInnoDB: memory with malloc! Total allocated memoryInnoDB: by InnoDB 29352528 bytes. Operating system errno: 12InnoDB: Check if you should increase the swap file orInnoDB: ulimits of your operating system.[...]
Add this to /etc/security/limits:
mysql: data = -1
And in bin/mysqld_safe something like:
export LDR_CNTRL=’MAXDATA=0×80000000′
I am at a loss.
Does any one have any ideas as to what to do?
Thanks.
Steve Shapiro