Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YVjbL-0000cz-St for pgsql-admin@arkaria.postgresql.org; Wed, 11 Mar 2015 16:35:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YVjbL-0004x6-AW for pgsql-admin@arkaria.postgresql.org; Wed, 11 Mar 2015 16:35:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YVjbK-0004wf-EW for pgsql-admin@postgresql.org; Wed, 11 Mar 2015 16:35:18 +0000 Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YVjbH-000699-0o for pgsql-admin@postgresql.org; Wed, 11 Mar 2015 16:35:17 +0000 Received: by wesp10 with SMTP id p10so10460334wes.11 for ; Wed, 11 Mar 2015 09:35:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:reply-to:to:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; bh=y0p5ZIiXijF42ZZTjDlUIspMPoqv3awrpXzfjy1BUUo=; b=Iw7//Xcr02zBmPrSwn5VRfODOFJR+CUegyRqKwushdjG1PRKIMmz4QJeW9Umlbvpe6 PhHBKP3OV6CT+vevmE02yZbLiIYb8YZAr5iCxHntJA3HHj10gnTA1lW7/j1gyXp917pf vWwHJLRsI2G9pu/kly2im9Q/l/bAfgssbHMHBgMMuS0/qwHHw0OAirnEfUlMzrfFqfxZ nGwZ4nBkKn1EFjOd1dzpI2H1FG42tREZCIzd894VO3YyrGtECgHfBZe7KdUpOCW2HBjI 7KcizjPZ8UNqceP3QaWwvw49BXV5R5rn07i0zGxwMzNb+QV+jD9w9AFAMFno3TUUf67k kIcQ== X-Received: by 10.194.8.99 with SMTP id q3mr81255151wja.88.1426091713732; Wed, 11 Mar 2015 09:35:13 -0700 (PDT) Received: from enterprisedb01 (84.125.177.156.dyn.user.ono.com. [84.125.177.156]) by mx.google.com with ESMTPSA id fm10sm6831204wib.7.2015.03.11.09.35.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Mar 2015 09:35:13 -0700 (PDT) Message-ID: <1426091712.6353.4.camel@gmail.com> Subject: Re: Relocated Postgres From: jaime soler Reply-To: jaime.soler@gmail.com To: "Rossi, Maria" Cc: "'pgsql-admin@postgresql.org'" Date: Wed, 11 Mar 2015 17:35:12 +0100 In-Reply-To: <33A4D5087BF0D44DA69C5EEF666BC1D742507AD2@usprmbp01c> References: <33A4D5087BF0D44DA69C5EEF666BC1D742507AD2@usprmbp01c> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) 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 El mié, 11-03-2015 a las 01:02 +0000, Rossi, Maria escribió: > HI, > Hi, > > > I relocated an postgres instance. The pg_data, pg_tranlog, > pg_hba.conf, etc were copied to new directories. did you stop the instance, before start the copy ? > Then, I updated the postgresql.conf accordingly. Postgres started > ok, and I can connect. However when I stopped it, the following msg > appeared at the errorlog: > > > > cp: overwrite > `/dba/psg/gs07/pg_tranlog/pg_archlog/00000001000000000000004C'? < > 2015-03-10 20:50:38 EDT >LOG: database system is shut down > Could you share with us archive_command and archive_mode of postgresql.conf ? It seems than you are using "cp -i" in your archive_command, doesn't it ? > > > Postgres proceeded to shutdown. > > > > ‘ls’ showed that the file still have the old timestamp, which is the > timestamp when I copied it over: > > > > ls -ltr /dba/psg/gs07/pg_tranlog/pg_archlog/00000001000000000000004B > > -rw------- 1 gs07 dbagroup 16777216 Mar 10 > 12:07 /dba/psg/gs07/pg_tranlog/pg_archlog/0000000100 > > > > I did not have any transctions, though between the start-up and > shutdown. I would have expected the timestamp of the logfile to have > been changed. > > Looks like it was waiting for a response to ‘cp’. > > > > I am concerned that if there were any transactions, I would have lost > it. > > Pls advice. > > > > Thanks. > > > > Maria > > > > -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin