Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YPXVU-00036h-NS for pgsql-admin@arkaria.postgresql.org; Sun, 22 Feb 2015 14:27:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YPXVT-0003FD-15 for pgsql-admin@arkaria.postgresql.org; Sun, 22 Feb 2015 14:27:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YPXVR-0003F5-Eb for pgsql-admin@postgresql.org; Sun, 22 Feb 2015 14:27:37 +0000 Received: from nm22-vm4.bullet.mail.ne1.yahoo.com ([98.138.91.182]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YPXVI-000084-9U for pgsql-admin@postgresql.org; Sun, 22 Feb 2015 14:27:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1424615246; bh=ASqnB4omBzm7yRpAHgrgOvF8gRdR/sFmyuwWi0AGek8=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=TEqXyI5lHh9jpbC0H8tSR/3m/U9a8uUqqH8/vlMw6OjfOFIGfJQoMzWAEefGNeOUgphwoB3aWXxsdieLOjHGI/Cab6hBe4uw6cRDHTPYpc+ft/LoXrRgumTkqYc7nHoa6sNIWs23uoXzhrnEagMVJIBssgUVjC+b9opcVj78pZUfGAZnDfIK6HM+ZRPn17wKNB60yLzuBvqgTIwkSrYocoj4B8GzOD4ue+jYKVEfMj+QwUaDEJeflSbAda9/8Kn/jQ2zBf7AKC/x1lU8gqDiqawjae9WBNrjxDpvmhs+nyf8rXS5y236KHAuMAbPYQHfD97T93C5gZN/ucNK6aH+/A== Received: from [98.138.100.114] by nm22.bullet.mail.ne1.yahoo.com with NNFMP; 22 Feb 2015 14:27:26 -0000 Received: from [98.138.89.197] by tm105.bullet.mail.ne1.yahoo.com with NNFMP; 22 Feb 2015 14:27:26 -0000 Received: from [127.0.0.1] by omp1055.mail.ne1.yahoo.com with NNFMP; 22 Feb 2015 14:27:26 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 616094.24765.bm@omp1055.mail.ne1.yahoo.com X-YMail-OSG: Ar8rjFIVM1l9o5vbX30scJKpWyt2rn4makTjRVoHKWAGNJtbEPwLbyf5lGaria5 wplpUUsWtGUlgsQtrJH4i2kK7Ooq_rkCfbOty8ktehh03ivfZF0bS6VYNVgkpk7CDciY_n8ruvFA 808EHBBp2xikXxepsLAVIJWBnmrI8TjE8yOVKpGPwnV0ElOjnzR0paLP3qP2esS1SWeeS9l4r.sU VXQt3DyPLnXB4Yvh8PEBPRBzbLkcJQuR9xHYBz.608t0GcJntQ6or7QlJ3k67GT9b.sd0QZ47QsJ lymwWiv.qHIcQwbkrR3cbN6dpCkwXn2f2p58h0nmx1PA86dfo7esvr91hyzgiNXIjdWs0bXrm9NX gXLOBk4o4by_kjtZCZep4HOTiM1MoHmxJpo6ifgCaQPTEm8bF4YTOUTXGPRz4miFGsfSKR6O1.zB g0OcHBVwZsP58iykX0.HKkKDMx4ZxX4T9vYQLmz8TDADCh3TKqy2jFRprFLWRXT1yBpyOdPG3f0R jTEElD2Btluo86gVsqjPNSuBfC0B52p_kR8H01JOQSdDhZRlx..DmfOhILP1cjyZ9H_szUzudAP8 c9kRWftceL0ux1.oO2eoFAhPHSHmFLzLuTJtEmqqFMOlV8P0Zoae9MkGTo1iWDQl6rcAsz.bJYfE 9Pc9kmF8cwY9qAJ3u Received: by 98.138.105.242; Sun, 22 Feb 2015 14:27:26 +0000 Date: Sun, 22 Feb 2015 14:27:25 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: Josef Springer , "pgsql-admin@postgresql.org" Message-ID: <217776053.3846435.1424615245759.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <54E9AAA5.1000705@joops.com> References: <54E9AAA5.1000705@joops.com> Subject: Re: How can i keep my databases when installing PostgreSQL ? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 1239 X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Josef Springer wrote: > i must reinstall PostgreSQL, because the installed server does not > work anymore. Because of lost disk sectors the server can not be > started in the system-services GUI. The result of the starting > request is > "Fehler 1053 Der Dienst antwortet nicht auf die Start oder > Steueranweisung" > > What is the doing to preserve existing databases, when reinstalling > PostgreSQL ? First, copy the data directory tree to some safe medium. https://wiki.postgresql.org/wiki/Corruption The exact steps required after installing new software are going to vary somewhat depending on the OS and the installer used. Once the software is there you will either need to set up a service script pointing to the data directory or copy the data directory in place of what the installer sets up. Once you are able to start the database service, I would recommend that you immediately pg_dump of all databases and restore them to a freshly created cluster. I would only put that new cluster on the old machine if I was confident that the cause of the storage failure had been found and fixed. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin