Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YvKiX-0002Rf-0Q for pgsql-admin@arkaria.postgresql.org; Thu, 21 May 2015 07:16:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YvKiV-0005XJ-TW for pgsql-admin@arkaria.postgresql.org; Thu, 21 May 2015 07:16:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YvKiV-0005XD-4i for pgsql-admin@postgresql.org; Thu, 21 May 2015 07:16:31 +0000 Received: from mout.web.de ([212.227.17.11]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1YvKiR-0006Ib-FJ for pgsql-admin@postgresql.org; Thu, 21 May 2015 07:16:30 +0000 Received: from vm-mailsrv.lan.net ([87.155.99.161]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0MSai0-1YlX4e1fBU-00Rais for ; Thu, 21 May 2015 09:16:24 +0200 Received: from localhost (localhost [127.0.0.1]) by vm-mailsrv.lan.net (Postfix) with ESMTP id C3CAEF12E for ; Thu, 21 May 2015 09:16:22 +0200 (CEST) X-Spam-Flag: NO X-Spam-Score: -2.898 X-Spam-Level: X-Spam-Status: No, score=-2.898 tagged_above=-99.9 required=6.31 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, FREEMAIL_FROM=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Received: from vm-mailsrv.lan.net ([127.0.0.1]) by localhost (vm-mailsrv.lan.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gi9lX-7NF2om for ; Thu, 21 May 2015 09:16:17 +0200 (CEST) Received: from neslonek.homeunix.org (vm-webapp-ext.dmz-lan.net [192.168.0.100]) by vm-mailsrv.lan.net (Postfix) with ESMTP id CB5CDF12B for ; Thu, 21 May 2015 09:16:17 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Date: Thu, 21 May 2015 09:16:17 +0200 From: Jan Lentfer To: Subject: Re: File removed while backup is running In-Reply-To: References: Message-ID: <96a0ca326b635cb1121b60605297c453@imap.lan.net> X-Sender: Jan.Lentfer@web.de User-Agent: Roundcube Webmail/0.7.2 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:W5QzIzMWwLsTdmEzete1XKuHzpwf5Zd9cPcgW1hRpHmeAFBxrze LqUiBfSyMjuoCbTYsm3nGymsrISOC2WDQtFUliGpQhHqNG7tiPpOMv8CkesXcx2UpDROrpO aYNIMcDDE4tTOMbMn88gScNLuZzS5gRKFZ0rNrvx9sXMIt53sinmhl67MeElKq6BpUB0lXf OvzLVJAUqVV3uqHw7kLCw== X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -1.9 (-) 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 Hi, that is generally not a problem. _fsm is the "Free Space Map" file=20 (http://www.postgresql.org/docs/9.4/static/storage-fsm.html). It's OK=20 and normal, that files change or even disappear within PGDATA directory=20 during backup - because the Postgres cluster is still operational. Those=20 changes end up in the WAL files and that is why you need those from the=20 start of the backup. This is also described in the manual: "Some file system backup tools emit warnings or errors if the files=20 they are trying to copy change while the copy proceeds. When taking a=20 base backup of an active database, this situation is normal and not an=20 error. However, you need to ensure that you can distinguish complaints=20 of this sort from real errors. For example, some versions of rsync=20 return a separate exit code for "vanished source files", and you can=20 write a driver script to accept this exit code as a non-error case.=20 Also, some versions of GNU tar return an error code indistinguishable=20 from a fatal error if a file was truncated while tar was copying it.=20 Fortunately, GNU tar versions 1.16 and later exit with 1 if a file was=20 changed during the backup, and 2 for other errors. With GNU tar version=20 1.23 and later, you can use the warning options=20 --warning=3Dno-file-changed --warning=3Dno-file-removed to hide the related= =20 warning messages." http://www.postgresql.org/docs/9.4/interactive/continuous-archiving.html#BA= CKUP-LOWLEVEL-BASE-BACKUP hth Jan Am 2015-05-21 09:04, schrieb Mario Aguado: > Hi, > > I have two postgres cluster in 9.4 version and all run backups > correctly. Recently I add a new cluster and the backup doesnt work on > it.=C2=A0 > > All databases have archive_mode =3D on and wal_level=3Darchive > > My backup has this steeps: > =C2=A0 > SELECT pg_start_backup(${clustername});" > tar PGDATA and TABLESPACES > Select pg_stop_backup(); > tar WAL files > > With this database when I run backup I get errors like: > > t3_28961_fsm: File removed before we read it > > I dont know what file type is t3_28961_fsm. > > If I go to tablespace dir i have several t files and this file types > are adding and removing continously. > > -rw------- 1 postgres postgres 8.0K May 21 09:01 t3_29094 > -rw------- 1 postgres postgres =C2=A0 =C2=A00 May 21 09:01 t3_29087 > -rw------- 1 postgres postgres 8.0K May 21 09:01 t3_29093 > > Im looking for this error but i didnt found any. > > Any idea? > > Thanks in advance. > > Regards. > > Mario --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin