Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jaAYh-0000sg-8k for pgsql-general@arkaria.postgresql.org; Sun, 17 May 2020 04:05:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jaAYe-0000tC-Eo for pgsql-general@arkaria.postgresql.org; Sun, 17 May 2020 04:05:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jaAYe-0000t5-4u for pgsql-general@lists.postgresql.org; Sun, 17 May 2020 04:05:48 +0000 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jaAYX-0001AD-Kt for pgsql-general@lists.postgresql.org; Sun, 17 May 2020 04:05:47 +0000 Received: by mail-oi1-x233.google.com with SMTP id j145so6070607oib.5 for ; Sat, 16 May 2020 21:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=swyGOrC4fMw9XuLqspq514mQ9lmFcQE+kiOxgG5on9M=; b=b0UD51upEkL6nZvSF99teS/C2Wohm4BcKlio3ZfaEbo+V9FsvLGbvVS+ELoInRoKrj RjH5A3JF5BjjWjP7R0+8DK7Pa3G1awVwcxiTWuGbPhgus7dzxUdzZEKlDdThhaAhhK5f uoJ8VkBIHNRs0vKRcfZtKbZy3IxMYBxqhoj7W0avIBB7J+EHGx8I4LMFJiBIpRSauUdv 08/ecopMkVhvnoW31aF01qlPItK2skZ4qtXiMfywhNP0/CaEMWWcjrGQNDIf4GXw3zJR Ay90cR7FYJacv40FukfN6gY2qtBYx2sRktk1onep2lLkC1ok2aKvygAWRHtnUS9PcL1X MwUQ== 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; bh=swyGOrC4fMw9XuLqspq514mQ9lmFcQE+kiOxgG5on9M=; b=nLLasTy8+7HbZUvf3750ikxqNBMuV5CHNc09zDN23oGn7N5CK439FBEuMTWxOJwRQs RqjeAF6NqGuKepsUO34+Oazi3/P8HO0AoxApYWmY/yG63lwhMntBW6J/ahCBlZu/mudq UheBPebCBCS51Hczk8Tt/OuIsRFDj4vYGlYBZKFjB5cFhBa3mGK+Tg3CawbwNA5zMM3i i9+Q1Qxb6NlbckUE39JH872hPIODRbNBxqUYbRF6QjZsH52mVukzzVI/kLO18IotW1NO flqWecsDyw7UNLbchJTLKkGWHSQUWyXMvOOA8hdt4is/vukVnXkJFpCwNR9lTP/6Gi7U Lf8w== X-Gm-Message-State: AOAM532L8thiAf+p33PLQ+sSs1b2s/TgKqPBOQX4a2sC6VqpCA6l2GGC q2eoW4ocqH4woj4dedGmVh6u7WCG62M= X-Google-Smtp-Source: ABdhPJynFe6/ViXMoxY0DTaZ9DGwgBGWjXsXI9vejUeEfmK04qJ6uiu0V3iS9O0NShxW3M+VCu9ehA== X-Received: by 2002:aca:3106:: with SMTP id x6mr6730622oix.94.1589688339884; Sat, 16 May 2020 21:05:39 -0700 (PDT) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id i15sm1268966oov.23.2020.05.16.21.05.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 May 2020 21:05:39 -0700 (PDT) Subject: Re: Inherited an 18TB DB & need to backup To: pgsql-general@lists.postgresql.org References: <3E78DA08-175B-4D3D-B61F-8AF65786E155@gmail.com> <777f67e9-1abe-3acd-e204-dce4371e8081@gmail.com> <686bfa77-069f-e65a-8fab-d982d7284c88@archidevsys.co.nz> From: Ron Message-ID: <26c4b31e-063d-40c5-d74d-6b13918845c6@gmail.com> Date: Sat, 16 May 2020 23:05:37 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <686bfa77-069f-e65a-8fab-d982d7284c88@archidevsys.co.nz> Content-Type: multipart/alternative; boundary="------------DC933EFFAE660ED431DD7852" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------DC933EFFAE660ED431DD7852 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 5/16/20 3:30 PM, Gavin Flower wrote: > On 17/05/2020 08:12, Ron wrote: >> On 5/16/20 7:18 AM, Rob Sargent wrote: >>>> O >>>>> Another problem is storage devices fail.  S3 storage lakes _should_ be >>>>> checking your data integrity on a regular basis and possibly >>>>> maintaining copies of it iin multiple locations so you're not >>>>> vulnerable to a site disaster. >>>> Tape FTW!! >>> Or WTF Tape??   :) >> >> Tape is durable, long-lasting, high-density, under your control, can be >> taken off-site (don't underestimate the bandwidth of a station wagon full >> of tapes hurtling down the highway!) and -- with the proper software -- >> is multi-threaded. >> > Don't you mean multi-spooled??? :-) That's a superset of multi-threaded IO. > Fascinating problem.  If the dump & load programs are designed to take a > parameter for N drives for effective parallel operation, and N > 2, then > things will run a lot faster. > > I can think of several ways the the data can be dumped in parallel, with > various trade-offs.  Would love to know how it's implemented in practice. An OS with asynchronous, queued, non-blocking IO, and a programming language with callbacks.  OpenVMS has had it since since *at least* the early 1990s, and probably mid-1980s.  I remember backing up an Rdb/VMS database to 10 tape drives at the same time. Typically, though, we "only" used six tape drives for that database, because we simultaneously backed up multiple databases. -- Angular momentum makes the world go 'round. --------------DC933EFFAE660ED431DD7852 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 5/16/20 3:30 PM, Gavin Flower wrote:
On 17/05/2020 08:12, Ron wrote:
On 5/16/20 7:18 AM, Rob Sargent wrote:
O
Another problem is storage devices fail.  S3 storage lakes _should_ be checking your data integrity on a regular basis and possibly maintaining copies of it iin multiple locations so you're not vulnerable to a site disaster.
Tape FTW!!
Or WTF Tape??   :)

Tape is durable, long-lasting, high-density, under your control, can be taken off-site (don't underestimate the bandwidth of a station wagon full of tapes hurtling down the highway!) and -- with the proper software -- is multi-threaded.

Don't you mean multi-spooled??? :-)

That's a superset of multi-threaded IO.

Fascinating problem.  If the dump & load programs are designed to take a parameter for N drives for effective parallel operation, and N > 2, then things will run a lot faster.

I can think of several ways the the data can be dumped in parallel, with various trade-offs.  Would love to know how it's implemented in practice.

An OS with asynchronous, queued, non-blocking IO, and a programming language with callbacks.  OpenVMS has had it since since at least the early 1990s, and probably mid-1980s.  I remember backing up an Rdb/VMS database to 10 tape drives at the same time.  Typically, though, we "only" used six tape drives for that database, because we simultaneously backed up multiple databases.

--
Angular momentum makes the world go 'round.
--------------DC933EFFAE660ED431DD7852--