database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
ㆍPostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
PostgreSQL Q&A 7587 게시물 읽기
No. 7587
UnixWare 7.1.2 PostgreSQL 구동 시 커널 파라미터 권장값?
작성자
김대청(dcmru)
작성일
2009-01-12 20:35ⓒ
2009-01-14 20:54ⓜ
조회수
7,188

UnixWare 상에서 PostgreSQL을 구동해서 사용하시는 분 계신가요?


OS별로 다 컴파일해보는것 같습니다 ㅡㅡ;


일단 8.3.1 버전을 소스 컴파일한 상태입니다.


initdb 시에 커널 파라미터를 수정하라고 하면서 에러가 나는데,


UnixWare 상의 PostgreSQL 커널 파라미터 권장값 아시는분 있으시면 알려주세요. ^^


에러메시지는 아래와 같습니다.


$ ./initdb -E UTF-8 --no-locale -A trust -W -D /usr/local/pgsql/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.

The default text search configuration will be set to "english".

creating directory /usr/local/secpgsql/data ... ok

creating subdirectories ... ok

selecting default max_connections ... 10

selecting default shared_buffers/max_fsm_pages ... 400kB/20000

creating configuration files ... ok

creating template1 database in /usr/local/secpgsql/data/base/1 ... FATAL:  could not create shared memory segment: Invalid argument

DETAIL:  Failed system call was shmget(key=1, size=1777664, 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 1777664 bytes), reduce PostgreSQL's shared_buffers parameter (currently 50) and/or its max_connections parameter (currently 13).

        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.

child process exited with exit code 1

initdb: removing data directory "/usr/local/pgsql/data"







이 글에 대한 댓글이 총 2건 있습니다.

친절하게 설명을 하고 있네요.


OS의 공유 메모리를 적당히 늘려주세요. 그렇게 많이 필요하지도 않습니다. 적당히 몇 메가 정도만 늘려주셔도 될듯합니다.


UnixWare 에서 공유 메모리 설정하는 방법은 UnixWare OS 사용설명서를 참조하시고.

김상기(ioseph)님이 2009-01-14 16:44에 작성한 댓글입니다.

찾았습니다. ^^ 커널 파라미터를 수정해도 계속 에러가 나길래 왜 그런가 했더니,

UnixWare의 커널 파라미터를 수정한 후 init 6 으로 재시작을 해야 수정한 커널 파라미터가 적용이 됩니다.

init 6 재시작 방법은 shutdown -y -g0 -i6 으로 하시면 됩니다.

그냥 재부팅하면 수정한 값이 적용이 안됩니다.

김대청(dcmru)님이 2009-01-14 20:45에 작성한 댓글입니다.
이 댓글은 2009-01-14 20:49에 마지막으로 수정되었습니다.
[Top]
No.
제목
작성자
작성일
조회
7590commit 전에 insert 하고 그 currval 을 구할수 있나요? [1]
멍기사
2009-01-23
7275
7589- [4]
압피
2009-01-19
6304
7588PostgreSQL 제대로 지원하는 ER 모델러 없나요??? [1]
최정대
2009-01-19
7070
7587UnixWare 7.1.2 PostgreSQL 구동 시 커널 파라미터 권장값? [2]
김대청
2009-01-12
7188
7585IPv6기반에서 PostgreSQL 사용하려면 어떤 부분이 변경되야 하나요? [1]
박민지
2009-01-05
6397
7584텍스트 파일에 있는 테이블 [3]
궁금이
2009-01-05
6443
7583- [3]
압피
2009-01-04
6329
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.018초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다