Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syZpE-000tCX-GR for pgsql-general@arkaria.postgresql.org; Wed, 09 Oct 2024 16:46:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1syZpD-0039oE-Md for pgsql-general@arkaria.postgresql.org; Wed, 09 Oct 2024 16:46:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syZpD-0039o4-9k for pgsql-general@lists.postgresql.org; Wed, 09 Oct 2024 16:46:11 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1syZp9-0003zS-S7 for pgsql-general@lists.postgresql.org; Wed, 09 Oct 2024 16:46:10 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-43058268d91so12670295e9.0 for ; Wed, 09 Oct 2024 09:46:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728492366; x=1729097166; darn=lists.postgresql.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Kh5RWg2tOhhH67627JTWmGXikwtBVCqnbkACyslsBV0=; b=ejEUTBI3Mu8YQRT+4zcQfKGIAeHGCweIRySRw+wD3t3PiPxqS6in+J3JlGpXTRYKvR OKWQbEIq5uW54sHVhmhs7nmUzB7P2Lk9BjY9IQtiK7/FY2RCCXsnAjiaV16yZDmr/hqR IpXu5K9bQ8QgBilIEaIzfvHStcktWHBIA8IThhs0m8cDOqT2w8EjfLMtWZwcm9Vc4RL/ cjAwRGNZAlI3uGuYzwBFdG2D7CLEk9YYu0XF4FMN/hXffBTX1OlWx9Ho8nismIJOeS2Y 4xf/g4+d4gPVPUrvXVsxL8RJx0XvjQMSf+vc1xM/LB0y1mf3sirCAB0XFQjPoSENWDeu Bxvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728492366; x=1729097166; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Kh5RWg2tOhhH67627JTWmGXikwtBVCqnbkACyslsBV0=; b=bX/NzEZAR9OYPjqHyeTszO/3KggU2+3meT2w9xi0mk/7+3z3v5j6va/hGugNl0Kyte tXBdPdBXM/LgyysSZWfN7pVga2ygsn51wMMZv2e/rzxLwU5aImtckV4z5b3IIXvLYlyM heTB8xuhDWptoxWQYDbMuuZiggK7gVJvB3IEYlRGqiRUgE1QlJTxEa9+vwn5zg0t0tK9 ZSa1iR0sUaa3n0yqHTKogSemFbSOKANtT25DryNfTJlpf6fig9L+Hucfek0+EgAhM/ZC asvXgkj0ECxDIKDgVnUWXh0hAOeibP1/zrDjIi5udGp3pLoSCnGy3cBw+Jt/CZJwdD4s j02g== X-Gm-Message-State: AOJu0YzWy78R64123r0BN6v3X7dtAOXWNOdwKQMi4nc9Y06PJbOZvUNP rZzItp072hUuUzRnbGYHIIsFN7LGA5x9Oz9x5p9NcWCis5LO/CDbC/wl7fQ2CfqwqaUAIHaipsr 6xCgNaSSaLCHYjk8RIhTMXmyYXVPkq9a1wEw= X-Google-Smtp-Source: AGHT+IEjTvz8bsP1jp62yXZehDd5pFZvUu3cLAKXQPfN9s2uDaOgUvfjzkWe4It1yU6Vlm66kpsPTegk13KEfLz6Dos= X-Received: by 2002:a05:600c:3b1e:b0:42f:8515:e490 with SMTP id 5b1f17b1804b1-430ccf0ce1emr27327555e9.5.1728492365716; Wed, 09 Oct 2024 09:46:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sergey Fukanchik Date: Wed, 9 Oct 2024 19:45:52 +0300 Message-ID: Subject: Re: Disk is filling up with large files. How can I clean? To: "pgsql-general@lists.postgresql.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Another possibility is orphaned files. See https://www.dbi-services.com/blog/can-there-be-orphaned-data-files-in-p= ostgresql/ and https://github.com/bdrouvot/pg_orphaned -- Sergey On Wed, 9 Oct 2024 at 19:02, Greg Sabino Mullane wrote= : > > On Wed, Oct 9, 2024 at 4:10=E2=80=AFAM Mikael Petterson wrote: >> >> Hi, >> >> I find our disk is filling up. >> >> sudo find /var/lib -type f -size +100M -exec ls -lh {} \; | awk '{ print= $9 ": " $5 }' > > ... > > Those files only add up to about 30GB. That's pretty small these days : t= ime for a bigger disk? Or perhaps the space is elsewhere: probably want to = do something like > sudo find / -xdev -maxdepth 2 -exec du -sh {} \; | grep -E 'G|M' | sort -= g > > Cheers, > Greg > --=20 Sergey