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 1jm0F6-0003Dc-45 for pgsql-general@arkaria.postgresql.org; Thu, 18 Jun 2020 19:30:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jm0F4-0000gj-VT for pgsql-general@arkaria.postgresql.org; Thu, 18 Jun 2020 19:30:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jm0F4-0000gc-LE for pgsql-general@lists.postgresql.org; Thu, 18 Jun 2020 19:30:30 +0000 Received: from mail-oi1-x241.google.com ([2607:f8b0:4864:20::241]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jm0F2-0002oY-9M for pgsql-general@lists.postgresql.org; Thu, 18 Jun 2020 19:30:30 +0000 Received: by mail-oi1-x241.google.com with SMTP id i74so6174406oib.0 for ; Thu, 18 Jun 2020 12:30:27 -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-transfer-encoding:content-language; bh=qeBCuk28AAJJTzETFr3TI4UUCsFU0+yF3QBPshIEYeA=; b=X3UVmz8qldtfQUA9aEZJj3+K0CC6imco78rEaI36KhDJSPV3ll+c7YWdG290uiEQfR itxDar/5gOtNoqZ18KtSntx5LBFgLfX/Jsedvt8jvnJ7fl7tWe2D3lXMWUxgOE86QtRL yBqzchEswXYz1y6AdVUg/2vWE09bDH1HqvrbAmY9nes7L5jK/GxzimcJtP5Wip5Nl4fA CgKBinueQvigLV2p8x9gXiUnRkYWNdxz4cw8Woq9vMPqTD9/zoURGQEcb48DD02R5e5S 12A5FwUgRFGwSevLCsH8U1aeQsKYMzvwF6q4xBfGWDTnhpKazApKbN0Iza+XZgRGQQTc Q/ng== 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-transfer-encoding :content-language; bh=qeBCuk28AAJJTzETFr3TI4UUCsFU0+yF3QBPshIEYeA=; b=U33tOm8e4ttWiH/VwYQ+/IuocuC1V3OfcT0HMAi5QhNztVla5EXOc6sr+kU2JN/WD9 40lFRgLZQCC2SFFEf8khIeS9XX+z5x6g1sdWrpTLIeHTmYLQ5O+KzllQ8oiB2as/09kH QDpitITNo+M8yGNqjxwLsP8535/hiGS0hby9M/mlC0MGtoYwGMJUf8HFuirXzkvMNDP6 V1y+bARLr6Rh7C4dQlzCDu/lI/paEstuCv/PPqpMXy35fba2TAKhvDFG+xQkH2TcpMMz iqWHwE6zxTocSC0BZKycfDm4Zv72ULHluFNVNrZSS1n5t+Qixmia6M5msIlv3TP9pzu/ j4+g== X-Gm-Message-State: AOAM530e1DyWp6WL9fvL+bIBw3rzQ+0MB3IHJRfgOQJpe6Ot2jUU+BEj CS/MN+UovVLpNGGZOaJiZNty2PD4/y7Tsg== X-Google-Smtp-Source: ABdhPJyIbTAA7PnB5MkuE4M/jAsjC6rmAJbL3h5O9edv16C4VrVG/0NBYDLRobN+tjRW58ac4g2jRQ== X-Received: by 2002:aca:ac94:: with SMTP id v142mr278825oie.165.1592508625097; Thu, 18 Jun 2020 12:30:25 -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 w5sm901671otb.38.2020.06.18.12.30.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Jun 2020 12:30:24 -0700 (PDT) Subject: Re: Netapp SnapCenter To: pgsql-general@lists.postgresql.org References: <4D23B288-6A0B-4BDB-A723-FC47F2E832C7@gmail.com> <2C6D03C3-CFF0-4F14-BA83-A2809BA29196@gmail.com> From: Ron Message-ID: <369c9ea4-3ab6-e6a6-0e6d-314ba88a4e28@gmail.com> Date: Thu, 18 Jun 2020 14:30:23 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <2C6D03C3-CFF0-4F14-BA83-A2809BA29196@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/18/20 11:49 AM, Paul Förster wrote: > Hi Magnus, > >> On 18. Jun, 2020, at 16:19, Magnus Hagander wrote: >> I don't know specifically about SnapCenter, but for snapshots in general, it does require backup mode *unless* all your data is on the same disk and you have an atomic snapshot across that disk (in theory it can be on different disk as well, as long as the snapshots in that case are atomic across *all* those disks, not just individually, but that is unusual). > according to what I know from our storage guys, Netapp does atomic snapshots for each volume. We have the database and its corresponding WAL files (pg_wal directory) on the same volume and the archived WALs (archive_command) on another. And the snapshots on those two volumes are not taken at the same time. Currently, the database is set to backup mode (using cron) and the storage guys have a window during which they can take the snapshots. > >> So the upthread suggestion of putting data and wal on different disk and snapshoting them at different times is *NOT* safe. Unless the reference to the directory for the logs means a directory where log files are copied out with archive_command, and it's actually the log archive (in which case it will work, but the recommendation is that the log archive should not be on the same machine). > as I said above, pg_wal is a directory in PGDATA at the default location and WALs are archived using the archive_command to a different volume. So I guess, we should be safe then. But it's trivial to make pg_xlog a separate mount point. -- Angular momentum makes the world go 'round.