Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1erGIB-0000Ls-4p for pgsql-admin@arkaria.postgresql.org; Thu, 01 Mar 2018 04:58:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1erGI9-0000Nt-U8 for pgsql-admin@arkaria.postgresql.org; Thu, 01 Mar 2018 04:58:05 +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.89) (envelope-from ) id 1erGI9-0000Nk-E5 for pgsql-admin@lists.postgresql.org; Thu, 01 Mar 2018 04:58:05 +0000 Received: from mr28p48im-tydg10113601.me.com ([17.110.88.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1erGI7-0005Bl-27 for pgsql-admin@lists.postgresql.org; Thu, 01 Mar 2018 04:58:04 +0000 Received: from process-dkim-sign-daemon.mr28p48im-tydg10113601.me.com by mr28p48im-tydg10113601.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) id <0P4W00L00AUV7F00@mr28p48im-tydg10113601.me.com> for pgsql-admin@lists.postgresql.org; Thu, 01 Mar 2018 04:57:47 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=04042017; t=1519880267; bh=u0yAdoNJVWPvB/zetARNd8XTUC9k4+Co5yStL8dnQyU=; h=Content-type:MIME-version:Subject:From:Date:Message-id:To; b=XSSVvdcNiD5tGVEPYGmdssHtngGQ2qqExJXnC9E2V5R5XeXQkXVJzO9sChGq09a7Z q1eEr1zzMt6bldjcrHeboXJ7TzKKf8tK0707kSGDUJBZKgoy1gsC8PfArVNXh06qMJ xnEFytRWYEUVMAWimHVHJHQ8dxfjkaunwJf+6+L5LKPYsHfJ1xEz9MZWQs5tWH89Mt ZOHvNdF8MuoOsNnVqB3XowPX9ei/Eq2vM/8CSQvQhaJqx0MHtW9eGjn2IsiKrcomSZ 65gHyU0Dt97q02zj3OlnNlTMuFSLBzd0X70o7rJIusBZjBOAr4tL/zy5B/4+3ejkXH eN4/XRoWZBAvw== Received: from icloud.com ([127.0.0.1]) by mr28p48im-tydg10113601.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) with ESMTPSA id <0P4W00DHRB49ZN30@mr28p48im-tydg10113601.me.com>; Thu, 01 Mar 2018 04:57:46 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-01_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1015 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1803010063 Content-type: text/plain; charset=utf-8 MIME-version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: Reliable WAL file shipping over unreliable network From: Rui DeSousa In-reply-to: <06dd8b81-8b1a-ae5c-8ddd-1556b5946176@catalyst.net.nz> Date: Wed, 28 Feb 2018 23:57:44 -0500 Cc: Dianne Skoll , pgsql-admin@lists.postgresql.org Content-transfer-encoding: quoted-printable Message-id: <6056907B-551F-4ED0-804B-0FCACD39EB23@icloud.com> References: <400AC9CD-1E43-422C-A689-70BDBAFF231E@elevated-dev.com> <37C5A42B-4CDD-4F01-8F1E-1B185C1819B9@icloud.com> <20180228132620.2c882f84@hydrogen.roaringpenguin.com> <33220469-5BB2-4A40-8F56-8F4F392C95B3@icloud.com> <21AF0CB4-0873-4960-BA14-E72FA08B352E@icloud.com> <5a49c387-e4f4-f70c-537c-9c338c80b687@catalyst.net.nz> <9DDA6F85-077E-4F8D-8708-632CC2907D3C@icloud.com> <06dd8b81-8b1a-ae5c-8ddd-1556b5946176@catalyst.net.nz> To: Mark Kirkwood X-Mailer: Apple Mail (2.3445.5.20) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk It looks like rsync is not handling the disk quota when actually syncing = the file =E2=80=94 Disc quota exceeded (69) vs no space left (28). It = only fails if it can=E2=80=99t rename the truncated temp file =E2=80=94 = and in some cases there is just enough space left to allow the rename to = succeed thus leaving a truncated WAL file. =20 I=E2=80=99m using ZFS; and have 1GB quota on the given filesystem. [postgres@hades ~/dbc1/pg_wal]$ rsync -a 000000010000005B00000035 = ~/arch/dbc1/wal/000000010000005B00000035 rsync: rename = "/usr/home/postgres/arch/dbc1/wal/.000000010000005B00000035.6bjO94" -> = "000000010000005B00000035": Disc quota exceeded (69) rsync error: some files/attrs were not transferred (see previous errors) = (code 23) at main.c(1200) [sender=3D3.1.2]