Univention Bugzilla – Bug 36376
PostgreSQL migration from 8.4 to 9.1
Last modified: 2015-09-18 16:04:14 CEST
+++ This bug was initially created as a clone of Bug #36371 +++ Update with postgresql-8.4 works, postgresql-8.4 is not removed and postgresql-9.1 not installed during the update. Database still works. But we may need an acticle how to upgrade from 8.4 to 9.1.
<http://sdb.univention.de/admin/index.php?action=editentry&id=284&lang=en> Please note that "pg_upgradecluser" prints the following error message: This happens because the configuration files in /etc/postgresql/9.1/main/ are removed before installing (they are UCR configuration files, which break the installation of version 9.1) and PostgreSQL then picks a too large SHMMAX size. After commiting the files PostgreSQL start fine. As pg_upgradecluster does all the magic about temporarily starting the old version on a different port and copying over the config files, it's not possible to interrupt in between for commiting the files in the right moment. (the script supports hook scripts, but that's IMHO overkill for a one-time upgrade) 2014-11-24 15:52:37 CET FATAL: konnte Shared-Memory-Segment nicht erzeugen: Das Argument ist ung?ltig 2014-11-24 15:52:37 CET DETAIL: Fehlgeschlagener Systemaufruf war shmget(Key=5432001, Gr?sse=36954112, 03600). 2014-11-24 15:52:37 CET TIPP: Dieser Fehler bedeutet gew?hnlich, dass das von PostgreSQL angeforderte Shared-Memory-Segment den Kernelparameter SHMMAX ?berschreitet. Sie k?nnen entweder die ben?tigte Shared-Memory-Gr?sse reduzieren oder SHMMAX im Kernel gr?sser konfigurieren. Um die ben?tigte Shared-Memory-Gr?sse zu reduzieren (aktuell 36954112 Bytes), reduzieren Sie den Shared-Memory-Verbrauch von PostgreSQL, beispielsweise indem Sie >>shared_buffers<< oder >>max_connections<< reduzieren. Wenn die angeforderte Gr?sse schon klein ist, ist es m?glich, dass sie kleiner ist als der Kernelparameter SHMMIN. Dann m?ssen Sie die ben?tigte Shared-Memory-Gr?sse erh?hen oder SHMMIN ?ndern. Die PostgreSQL-Dokumentation enth?lt weitere Informationen ?ber die Konfiguration von Shared Memory. Error: Could not start target cluster; please check configuration and log files
OK