Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSiT3-0006G4-CW for pgsql-general@arkaria.postgresql.org; Sat, 23 Dec 2017 11:59:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSiT1-0006a4-NQ for pgsql-general@arkaria.postgresql.org; Sat, 23 Dec 2017 11:59:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eSiT1-0006Zu-As for pgsql-general@lists.postgresql.org; Sat, 23 Dec 2017 11:59:51 +0000 Received: from mail-qk0-f194.google.com ([209.85.220.194]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eSiSx-00073Y-Ct for pgsql-general@postgresql.org; Sat, 23 Dec 2017 11:59:49 +0000 Received: by mail-qk0-f194.google.com with SMTP id x7so20180391qkb.0 for ; Sat, 23 Dec 2017 03:59:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=GyGWGpP+JKlh3VtDcPEl4hai8SQgHy89L87/b4Pxc08=; b=mZ42gMB5uE6Xl5Ur0cVwwAYwP3cFDE5mtUDXXwoixbG4w41JAJ9FkpUVigZz110r8B GF0/fV10CKIxyjP6P7N6zL8lMW/haveqRp1uBKtYnD7es0UNVtc7NCAL+JlLXmY6v7nW N+GFBHZCgG5YTYesvsQe+VC/Gridn90o6D2hNEmuTYn9IgglM1Dtw/krkctknyRCFN7W ul62I6l26hK/g4/yfvBMo7XIBKszOrO/vHjvT/IVkBotQqiJel2nWofxpGJWgueTNUgu E7qDMcFTImZiNZe+toOoGKeb52EZybg6x6urvMK799G3Iv6I8wRM6wNRxLXOs1V6oLTC uhsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GyGWGpP+JKlh3VtDcPEl4hai8SQgHy89L87/b4Pxc08=; b=ARKFCaWeRZciwfjhO+sltE8JliF6kL3rM5xcMglZih+gOma32oFWOhJ9zyqhoy+o53 KuEtTwMdjSJnSqcYwBzVeWj/TDFu6jshbhKZMZdEMRGEeL8/3fmxFm3kjjBdsKqSnYuK wlsln/f8e1gm9T1zXDfoOQcNtKZg01TrNrrQuNzP9Gs8NllQZMuglRGhsertZBeJBCvV E1UqfmedTMRm2JdqOFTZQmU253MnWjzR4roy492iG8Mr3fGiVJjhzvdq7YnoRjeev84M dyz/QJcrlDKH2OGFlI0CUBrxqupHAugOyoKCccOC6nCpaN5XBp3MbZajy46nAIYH+ion KC/w== X-Gm-Message-State: AKGB3mK0R4yBeZswXIthCbQ30AwCp7JcrYj8DyiTiO/fMFatFsFrQg/F etdauW86gIY0CLbjfa487nBtVxbEnXhfOt0cbuLkhfsmpDKkc8S7L/KM/gzJ1Qe3Iyvt3ZdZK5C 9FO+KHxyjlJuRe1/Ck59w2L0zxRoEqi1p9iioD5eHPxJ15KdMQ7N6vcjGFVLNztXh4cAe/EKnlw YQ277XO8F8aqwvMg== X-Google-Smtp-Source: ACJfBosn4KVYNk+A//I2blJqR3+MM2zGLwo3jd4lTQpLsIKzDWDxM9qgkwxqoLZVjNsvI/i9Wbv6CA== X-Received: by 10.55.185.132 with SMTP id j126mr23239389qkf.275.1514030325229; Sat, 23 Dec 2017 03:58:45 -0800 (PST) Received: from alderaan.marques ([200.82.53.14]) by smtp.googlemail.com with ESMTPSA id x40sm15571972qtb.77.2017.12.23.03.58.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Dec 2017 03:58:44 -0800 (PST) Subject: Re: Stand by server (9.6.6) with corrupt file To: Edson Carlos Ericksson Richter , "pgsql-general@postgresql.org" References: From: Martin Marques Message-ID: Date: Sat, 23 Dec 2017 08:58:42 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk El 22/12/17 a las 10:29, Edson Carlos Ericksson Richter escribió: > Environment: PostgreSQL 9.6.6 installed from yum repository. Oracle > Linux 7 EL x64. Dell servers with Raid 5 (hw). > > > I was testing our database backup system (based on pgBarman), and > discovered that one base file is corrupt in our standby database server. > The file is OK in master server, but has 0 bytes in size in standby server. How was the standby built? Did you use a recovered backup from barman or did you clone from the master with some tool. An if it's the former, which exact process did you use? (Using pg_basebackup would be the safest way of cloning) Regards, -- Martín Marqués http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services