X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id F38129FB2C0 for ; Fri, 15 Sep 2006 11:47:31 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 79209-02 for ; Fri, 15 Sep 2006 11:47:24 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id D928E9FB2CE for ; Fri, 15 Sep 2006 11:47:23 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k8FElJfI024625; Fri, 15 Sep 2006 10:47:19 -0400 (EDT) To: Achilleas Mantzios cc: pgsql-admin@postgresql.org Subject: Re: Postgresql 7.4 migration to (partially) new disks In-reply-to: <200609151725.24976.achill@matrix.gatewaynet.com> References: <200609151344.34058.achill@matrix.gatewaynet.com> <200609151725.24976.achill@matrix.gatewaynet.com> Comments: In-reply-to Achilleas Mantzios message dated "Fri, 15 Sep 2006 17:25:24 +0300" Date: Fri, 15 Sep 2006 10:47:19 -0400 Message-ID: <24624.1158331639@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.106 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200609/156 X-Sequence-Number: 23070 Achilleas Mantzios writes: > What considerations should someone take if he is about to just > cp -r /data . > .i.e. creating the PGDATA dir *not* following the standard initdb procedure If you copy the *entire* data tree (data, xlog, clog, any outside tablespaces), and use exactly the same Postgres executables at both ends, then it should pretty much Just Work. > chown -R postgres:postgres ./data > (new postgres user on the new SUSE might have a different uid/gid than the > original Debian), This is OK. > I'd suppose this might work on a test system, but should someone > rely on it for a critical production system? As long as the DBA has practiced beforehand ;-), sure. regards, tom lane