Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQYSU-0003qz-EN for pgsql-general@arkaria.postgresql.org; Tue, 14 May 2019 14:31:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hQYST-0001fx-8w for pgsql-general@arkaria.postgresql.org; Tue, 14 May 2019 14:31:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQYSS-0001fp-Vn for pgsql-general@lists.postgresql.org; Tue, 14 May 2019 14:31:09 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQYSO-0006vq-So for pgsql-general@lists.postgresql.org; Tue, 14 May 2019 14:31:08 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 958232AD6E; Tue, 14 May 2019 10:31:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 14 May 2019 10:31:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=H R3evxtL97+4JM2fMT/sRbEfFmB8H6yEJl1+znKDQTg=; b=HtgpPgcdSSwRCKo18 DF0A+tWj5u9uNGMc24wv777eOHfuzycE4DdTlzIKtyc9gqlkbiFPWI3DHsamV3eK KdjKTAEVXKywBOi7h+uo6jVNgebZ022y9uq5pYKNpMLP9Uco67JTa1lH488vQxcg QK2m2jtw534lwBucSiDVguiGJuwyE7FncOg4MW/xh8erUTgv6cc9WgspTPMTlKe0 0cNxGsAPbh90vQEgkj3ec1qG91Qn/Kyh3/a8bQjk8y2BA4pToPlFbnaY0tTPzVxD cV/dXmdSzlKtZKvYFCmU8vNTv3XsrPw6ZPfq5TjTHHU19VefOpQkjD2ZjRetD3fe 44iuA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=HR3evxtL97+4JM2fMT/sRbEfFmB8H6yEJl1+znKDQ Tg=; b=ID2ktiWZBPefopiEdjBHYxlln2tlb6Ut4CZkRJYFfLEYLip8i7FedDXKN tMWLao/Btx0WZX0NYiC63JkdId8yIBMPaZQi4GMOczvtpJ5nPITQ6YfksWLwD6/O nbCVVMJ2M43DI2L2zUP2QVVrK9Th+r1kmP46gnb8mbBK85G/CQDPm6P9ya/mivdM 7GIKN2mKEoz7d+WoMWBRCruyJlzRbL/lqI5ySdrt/ZBiRd9kB5m8JHT5IjedsC4I GSY1AT+xkpZpNp/kJylCG1/owyG+t5iwkSPmHudclmTBAb3AetL/UgkgNlY7Ls8s By9s+RmeMrHIz7NpHFPK2R/Bq88Ow== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrleeigdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuffhomhgrihhnpegvnhhtvghrphhrihhsvghnvghtrdhorhhgnecukfhppeejuddr vdduvddrudehtddrvddtvdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrd hklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 77B508005A; Tue, 14 May 2019 10:31:02 -0400 (EDT) Subject: Re: perl path issue To: Prakash Ramakrishnan Cc: Ravi Krishna , David Steele , "pgsql-generallists.postgresql.org" References: <805b87a3-9849-7366-2e38-7dc63c8123c2@aklaver.com> <06dbaf91-2842-678c-e4a6-0aba40486292@aklaver.com> <6888C5C1-CB5A-41DD-976F-466E298CCBD6@aol.com> <0981c691-5105-5051-2568-4d661e8788f8@aklaver.com> From: Adrian Klaver Message-ID: <53e6f04f-1302-1598-8bc8-d6902eb63fcf@aklaver.com> Date: Tue, 14 May 2019 07:31:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/14/19 7:28 AM, Prakash Ramakrishnan wrote: > Yes, that is correct. How about graphical layout of your backup/restore procedure? > > On Tue, May 14, 2019 at 7:54 PM Adrian Klaver > wrote: > > On 5/14/19 2:51 AM, Prakash Ramakrishnan wrote: > > Hi Ravi, > > > > Not , am saying we have the daily backup and full backup in prod > server > > only and there is one database like a4 the db size is 1.5TB. > > so am not restore again in prod . > > Am taking directly single backup restore in dev its means in dev > server > > only restore the database in new cluster. > > existing cluster we cant restore backups. > > so thats why am struggling the issue getting some perl issue and > remote > > option terminated otherwise wont disturb anyone and need to solve > this > > issue. > > this activity has been planned every 3 weeks. > > I think to make this clearer for everyone a graphical layout might > help. > Something like: > > prod Pg db --pgBackRest--> some_host/some_dir/some_file  @daily > > dev Pg db <--pgBackRest -- some_host/some_dir/some_file  @3 weeks > > Of course the above is just made up. > > > What I think we know so far, please check and correct as necessary: > > 1) Prod server CentOS 7, Postgres 10 from EDB installer, pgBackRest > from > PGDG repo > > 2) Dev server CentOS 7, Postgres 10 from EDB installer, pgBackRest from > PGDG repo > > 3) sydcosausd001.enterprisenet.org > is your dev > > 4) sydcosafpp001.enterprisenet.org >   is your prod > > > 5) pgBackRest works on prod server. > > 6) pgBackRest fails on dev server with: > > Can't load '/usr/lib64/perl5/vendor_perl/auto/DBD/Pg/Pg.so' for module > DBD::Pg: libpq.so.5: cannot open shared object file: No such file or > directory at /usr/lib64/perl5/DynaLoader.pm line 190. > > 7) ldd of Pg.so. From dev correct?: > >   ldd /usr/lib64/perl5/vendor_perl/auto/DBD/Pg/Pg.so >          linux-vdso.so.1 =>  (0x00007fffddd8f000) >          libpq.so.5 => /usr/lib64/perl5/CORE/libpq.so.5 > (0x00007f5ecdbd6000) >          libm.so.6 => /lib64/libm.so.6 (0x00007f5ecd8d4000) >          libc.so.6 => /lib64/libc.so.6 (0x00007f5ecd507000) >          libssl.so.1.0.0 => /usr/lib64/perl5/CORE/libssl.so.1.0.0 > (0x00007f5ecd297000) >          libcrypto.so.1.0.0 => > /usr/lib64/perl5/CORE/libcrypto.so.1.0.0 > (0x00007f5ecce5d000) >          libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 > (0x00007f5eccc10000) >          libldap_r-2.4.so.2 => /lib64/libldap_r-2.4.so.2 > (0x00007f5ecc9b1000) >          libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5ecc795000) >          /lib64/ld-linux-x86-64.so.2 (0x00007f5ece056000) >          libdl.so.2 => /lib64/libdl.so.2 (0x00007f5ecc591000) >          libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f5ecc2a8000) >          libk5crypto.so.3 => /lib64/libk5crypto.so.3 > (0x00007f5ecc075000) >          libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f5ecbe71000) >          libkrb5support.so.0 => /lib64/libkrb5support.so.0 > (0x00007f5ecbc61000) >          libkeyutils.so.1 => /lib64/libkeyutils.so.1 > (0x00007f5ecba5d000) >          libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f5ecb844000) >          liblber-2.4.so.2 => /lib64/liblber-2.4.so.2 > (0x00007f5ecb635000) >          libsasl2.so.3 => /lib64/libsasl2.so.3 (0x00007f5ecb418000) >          libssl.so.10 => /lib64/libssl.so.10 (0x00007f5ecb1a6000) >          libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f5ecad45000) >          libssl3.so => /lib64/libssl3.so (0x00007f5ecaaf3000) >          libsmime3.so => /lib64/libsmime3.so (0x00007f5eca8cc000) >          libnss3.so => /lib64/libnss3.so (0x00007f5eca59f000) >          libnssutil3.so => /lib64/libnssutil3.so (0x00007f5eca370000) >          libplds4.so => /lib64/libplds4.so (0x00007f5eca16c000) >          libplc4.so => /lib64/libplc4.so (0x00007f5ec9f67000) >          libnspr4.so => /lib64/libnspr4.so (0x00007f5ec9d29000) >          libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f5ec9b02000) >          libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f5ec98cb000) >          libz.so.1 => /lib64/libz.so.1 (0x00007f5ec96b5000) >          librt.so.1 => /lib64/librt.so.1 (0x00007f5ec94ad000) >          libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f5ec924b000) >          libfreebl3.so => /lib64/libfreebl3.so (0x00007f5ec9048000) > postgres@sydcosausd001.enterprisenet.org:/home/postgres > > > > Regards, > > Prakash.R > > > > On Tue, May 14, 2019 at 3:10 PM Ravi Krishna > > > >> wrote: > > > >      > > >      > Note - if am taking same prod single database backup and > restore > >     in new cluster no use for us and it will take more time. > >      > so business and team they need every 3 weeks for restore > in dev > >     server one single database and cant we do it in pg_dump and > restore . > >      > They want using pgbackrest tool the db size is huge so > tats why > >     am trying remote restore option. > > > >     I am baffled.  Are you telling that you are restoring it back on > >     prod (using remote restore option), > >     which effectively means overwriting prod db.  Also you never gave > >     this information until now. You > >     should have shared full details. > > > >     I have not used pgbackest, but I have read the FAQ. If I am not > >     mistaken it has single db restore option too. So you can restore > >     the db in dev. > > > > > > > > > > -- > > > > > > > > Thanks, > > Prakash.R > > PostgreSQL - Offshore DBA support TCS / Nielsen Infrastructure > Team On > > call : +91-8939599426 > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > > > -- > > > > Thanks, > Prakash.R > PostgreSQL - Offshore DBA support TCS / Nielsen Infrastructure Team On > call : +91-8939599426 -- Adrian Klaver adrian.klaver@aklaver.com