|
initdb PgSQL 7.4.2 на Solaris 8
|
|||
---|---|---|---|
#18+
С солярисом разбираюсь неделю. До этого все время работал во FreeBSD. Скомпилил PostgreSQL 7.4.2, пытаюсь запустить initdb и вот что пишет: # /usr/local/pgsql/bin/initdb -D /export/spare/pgsql_db/data The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale C. fixing permissions on existing directory /export/spare/pgsql_db/data... ok creating directory /export/spare/pgsql_db/data/base... ok creating directory /export/spare/pgsql_db/data/global... ok creating directory /export/spare/pgsql_db/data/pg_xlog... ok creating directory /export/spare/pgsql_db/data/pg_clog... ok selecting default max_connections... 10 selecting default shared_buffers... 50 creating configuration files... ok creating template1 database in /export/spare/pgsql_db/data/base/1... FATAL: could not create shared memory segment: Invalid argument DETAIL: Failed system call was shmget(key=1, size=1081344, 03600). HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter. You can either reduce the request size or reconfigure the kernel with larger SHMMAX. To reduce the request size (currently 1081344 bytes), reduce PostgreSQL's shared_buffers parameter (currently 50) and/or its max_connections parameter (currently 10). If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for. The PostgreSQL documentation contains more information about shared memory configuration. initdb: failed Все понятно, так вот как мне увеличить SHMMAX в ядре ? Спасибо. ... |
|||
:
Нравится:
Не нравится:
|
|||
03.06.2004, 17:26 |
|
initdb PgSQL 7.4.2 на Solaris 8
|
|||
---|---|---|---|
#18+
PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter увелич максимум доступрой разделяемой памяти..руским же язиком написанно :) ... |
|||
:
Нравится:
Не нравится:
|
|||
03.06.2004, 18:23 |
|
initdb PgSQL 7.4.2 на Solaris 8
|
|||
---|---|---|---|
#18+
блин глаза сегодня кривые... sysctl -a |grep shm там поставь в FreeBSD это в ядре стявиса (есть в доках по posgresy там же для линуха было ) ... |
|||
:
Нравится:
Не нравится:
|
|||
03.06.2004, 18:25 |
|
initdb PgSQL 7.4.2 на Solaris 8
|
|||
---|---|---|---|
#18+
Дак я ж говорю, что во FreeBSD мне все известно, но сейчас у меня все под Solaris 8 - а как там, я не знаю. Вернее, знаю, что надо Add the following lines to the end of your /etc/system file: set shmsys:shminfo_shmmax=4294967295 но вот цифра меня эта смущает, так как у меня 512Mb RAM... Сколько ставить - то ??? ... |
|||
:
Нравится:
Не нравится:
|
|||
03.06.2004, 18:33 |
|
|
start [/forum/topic.php?fid=53&fpage=356&tid=2007832]: |
0ms |
get settings: |
9ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
49ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
37ms |
get tp. blocked users: |
1ms |
others: | 342ms |
total: | 470ms |
0 / 0 |