From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <471EDB61.1030703@nevod.ru> Date: Wed, 24 Oct 2007 11:42:57 +0600 From: Kostarev Alexey Organization: Nevod Ltd User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040808 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: ALT Linux Community general discussions References: <105561193202947@webmail18.yandex.ru> In-Reply-To: <105561193202947@webmail18.yandex.ru> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------000000050503080102000803" X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [Comm] =?koi8-r?b?79DR1NggMWMgySBwb3N0Z3Jlc3FsLTg=?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2007 05:34:33 -0000 Archived-At: List-Archive: List-Post: This is a multi-part message in MIME format. --------------000000050503080102000803 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Дмитрий wrote: >При запуске он выдает мне: >[root@db1c ~]# LANG=ru_RU.utf-8 /etc/init.d/postgresql start >Adjusting environment for postgresql: [ DONE ] >Creating default database: Файлы, сопутствующие этой системе баз данных, будут >принадлежать пользователю "postgres". Этот пользователь >также должен быть владельцем процесса сервера. >Кластер баз данных будет инициализирован с локалью ru_RU.UTF-8. >Кодировка базы по умолчанию установлена в UTF8. > >исправление прав на существующую директорию /var/lib/pgsql-root/var/lib/pgsql/data ... ок >creating subdirectories ... ок >выбирается значение по-умолчанию для max_connections ... 100 >selecting default shared_buffers/max_fsm_pages ... 24MB/153600 >создание конфигурационных файлов ... ок >создание базы template1 в /var/lib/pgsql-root/var/lib/pgsql/data/base/1 ... FATAL: could not create shared memory segment: Недопустимый аргумент >ПОДРОБНОСТИ: Failed system call was shmget(key=1, size=112754688, 03600). >ПОДСКАЗКА: 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 112754688 bytes), reduce PostgreSQL's shared_buffers parameter (currently 12800) and/or its max_connections parameter (currently 100). > 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. >дочерний процесс завершился с кодом возврата 1 >initdb: удаление содержимого директории данных "/var/lib/pgsql-root/var/lib/pgsql/data" > >я так понимаю надо значение shared_buffers изменить, тока не пойму на какое значение >_______________________________________________ >community mailing list >community@lists.altlinux.org >https://lists.altlinux.org/mailman/listinfo/community > Лучше сделать то, что советуют - увеличить значение SHMMAX echo новый_размер >/proc/sys/kernel/shmmax -- С Уважением Директор ООО НЕВОД Костарев А.Ф. --------------000000050503080102000803 Content-Type: text/x-vcard; charset=utf-8; name="kaf.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kaf.vcf" begin:vcard fn:Alexey Kostarev n:Kostarev;Alexey org:Nevod Ltd. adr:;;;Perm;;;Russia email;internet:kaf@nevod.ru tel;work:(3422) 196-960 url:http://www.nevod.ru/nevod/staff/kaf/ version:2.1 end:vcard --------------000000050503080102000803--