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 4596 게시물 읽기
No. 4596
설치후 삭제 그리고 다시 설치...-_-;
작성자
서문교(munggo)
작성일
2003-02-27 10:39
조회수
1,690

freebsd 4.7 stable를 쓰고 있습니다.

 

7.3.2 를 소스 설치한후 데몬띄우고 접속 몇번한뒤에 데몬 내리고

/usr/local/pgsql 를 지우고 다시 설치하려니까 안되는군요 -_-

설치는 되는데 initdb 명령을 내리면 아래와 같은 에러 메세지가 --;

 

그래서 ports로 설치해봐도 마찬가지입니다. 왜 이런것일까요?

 

 

root@merong:postgresql7 ~( ε:> $ su -l pgsql -c initdb

The files belonging to this database system will be owned by user "pgsql".

This user must also own the server process.

 

The database cluster will be initialized with locale ko_KR.eucKR.

This locale setting will prevent the use of indexes for pattern matching

operations. If that is a concern, rerun initdb with the collation order

set to "C". For more information see the Administrator's Guide.

 

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

creating directory /usr/local/pgsql/data/base... ok

creating directory /usr/local/pgsql/data/global... ok

creating directory /usr/local/pgsql/data/pg_xlog... ok

creating directory /usr/local/pgsql/data/pg_clog... ok

creating template1 database in /usr/local/pgsql/data/base/1... IpcSemaphoreCreate: semget(key=1, num=17, 03600) failed: No space left on device

 

This error does *not* mean that you have run out of disk space.

 

It occurs when either the system limit for the maximum number of

semaphore sets (SEMMNI), or the system wide maximum number of

semaphores (SEMMNS), would be exceeded. You need to raise the

respective kernel parameter. Alternatively, reduce PostgreSQL's

consumption of semaphores by reducing its max_connections parameter

(currently 1).

 

The PostgreSQL Administrator's Guide contains more information about

configuring your system for PostgreSQL.

 

 

initdb failed.

Removing /usr/local/pgsql/data.

root@merong:postgresql7 <:3 )~ $

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

http://database.sarang.net/?inc=read&aid=3573&criteria=pgsql&subcrit=tutorials&record_idx=0&currpg=0

 

기존 문서구요. 자세히 설명되어있습니다.

 

콘솔에서 sysctl 명령으로 커널의 세마포어와 쉐어메모리 설정값을 살펴보세요. 이곳 FreeBSD 4.7 에서는 아래와 같이 나왔네요. 이곳에서는 디폴트로 잘 설치가 되네요.

 

$ sysctl -a | egrep 'sem|shm'

kern.ipc.semmap: 30

kern.ipc.semmni: 10

kern.ipc.semmns: 60

kern.ipc.semmnu: 30

kern.ipc.semmsl: 60

kern.ipc.semopm: 100

kern.ipc.semume: 10

kern.ipc.semusz: 92

kern.ipc.semvmx: 32767

kern.ipc.semaem: 16384

kern.ipc.shmmax: 33554432

kern.ipc.shmmin: 1

kern.ipc.shmmni: 192

kern.ipc.shmseg: 128

kern.ipc.shmall: 8192

kern.ipc.shm_use_phys: 0

김상기(ioseph)님이 2003-02-27 14:56에 작성한 댓글입니다.

저도 똑같이 나오는데....-_- 흑

 

munggo@merong:munggo ~( ε:> $ sysctl -a|egrep 'sem|shm'

kern.ipc.semmap: 30

kern.ipc.semmni: 10

kern.ipc.semmns: 60

kern.ipc.semmnu: 30

kern.ipc.semmsl: 60

kern.ipc.semopm: 100

kern.ipc.semume: 10

kern.ipc.semusz: 92

kern.ipc.semvmx: 32767

kern.ipc.semaem: 16384

kern.ipc.shmmax: 33554432

kern.ipc.shmmin: 1

kern.ipc.shmmni: 192

kern.ipc.shmseg: 128

kern.ipc.shmall: 8192

kern.ipc.shm_use_phys: 0

p1003_1b.semaphores: 0

p1003_1b.sem_nsems_max: 0

p1003_1b.sem_value_max: 0

munggo@merong:munggo <:3 )~ $

서문교(munggo)님이 2003-02-27 16:09에 작성한 댓글입니다.

시스템 ipcs 명령으로 PostgreSQL에서 사용중인 세마포어, 쉐어 메모리가 있는지 살펴보시고,

만일 있다면, 그놈들을 모두 지우고 해보세요.

혹 이문제일지도 모르니...

자세한 것은 ipc 관련 명령들을 참조 하시고.

김상기(ioseph)님이 2003-02-27 17:40에 작성한 댓글입니다.

잘 되는군요...답변 감사드립니다.

세마포어와 쉐어메모리에 상주해있었더군요......

서문교(munggo)님이 2003-02-27 18:10에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
4599솔라리스 설치할때여...
내맘
2003-02-28
1118
4598Vacuum 문제 발생. [1]
한태욱
2003-02-27
1436
4597음..어떡하면 좋아요 ㅜ.ㅜ [3]
박지영
2003-02-27
1563
4596설치후 삭제 그리고 다시 설치...-_-; [4]
서문교
2003-02-27
1690
4595날짜관련 변환 ?? [5]
미투
2003-02-25
3778
4594오라클에서 pgsql 로 변환시... sql문 [1]
어떤생각
2003-02-24
1750
4593변수 타입과 함수정의에 대해서.. [3]
imcrazy
2003-02-24
1785
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.017초, 이곳 서비스는
	PostgreSQL v16.4로 자료를 관리합니다