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 1hOmbC-0004i4-HG for pgsql-general@arkaria.postgresql.org; Thu, 09 May 2019 17:12:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hOmbB-0002Tc-6y for pgsql-general@arkaria.postgresql.org; Thu, 09 May 2019 17:12:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOmbA-0002Lt-Nv for pgsql-general@lists.postgresql.org; Thu, 09 May 2019 17:12:48 +0000 Received: from athena.simkin.ca ([2607:f040:1001:2::ff:2]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOmb7-0007Mq-Tv for pgsql-general@postgresql.org; Thu, 09 May 2019 17:12:47 +0000 Received: from skynet.simkin.ca (skynet.simkin.ca [IPv6:2607:f040:1001:103::1000]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by athena.simkin.ca (Postfix) with ESMTPSA id F2073DC696E7; Thu, 9 May 2019 10:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.simkin.ca; s=athena; t=1557421962; bh=ZGKC4oaFXOaEDcfoH5MPBkho4soDs+sm11hZlNaQjDs=; h=Subject:From:To:Date:From:To:Subject:Date:Reply-To; b=dfT+Ce2VPDil9BvZbLqGwcOfiOamsIOpWapGmbyrGz7BNvBeN8+rp/zNjDkjxnWBK SBl54U5hwgtTjB8iMHfNrdu+Sw3KQxkgk7i0G6FIehDs+3qdEJOuugfZc+//viRarw rjBzx7LuUuqpDZjmwpUoHPeUwbpqWnxKsRtflOo+fr1moHBosPcdtWU1Zj+8NPgybN j7+jT43c+iiCAeBjZgGc8xD7MUra+0EnkzmqLfEgKabP0hlU09G2dZ7etXMUmXN0NG 8ws94snUQsmMfb0m7cStQ7H2czCEbyNwWDKCpuTrnIL3VsALmW0Qm9QZNpHdzRI4mJ vLCuhKD/GuqZg== Received: from skynet.simkin.ca (skynet.simkin.ca [IPv6:::1]) by skynet.simkin.ca (Postfix) with ESMTP id C826921A5CB83; Thu, 9 May 2019 10:12:40 -0700 (PDT) Message-ID: Subject: Re: running out of disk space From: Alan Hodgson To: Julie Nishimura , pgsql-general Date: Thu, 09 May 2019 10:12:40 -0700 In-Reply-To: References: , Content-Type: multipart/alternative; boundary="=-ryhdkRxEb6w8b9WR/GLA" User-Agent: Evolution 3.30.5 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=-ryhdkRxEb6w8b9WR/GLA Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Thu, 2019-05-09 at 16:49 +0000, Julie Nishimura wrote: > Alan, thanks for your reply. > > > > > > > > So, we currently have this situation: > > > > > > > > /dev/sda1 2.7T 2.4T 298G 90% /data/vol1 > > > /dev/sdb2 2.7T 2.4T 296G 89% /data/vol2 > > > > /dev/mapper/vg00-data > > > > 16T 16T 373G 98% /data/vol3 > > > > > > > > postgres=# SELECT * FROM pg_tablespace; > > > spcname | spcowner | spclocation | spcacl > > > > > ------------+----------+-------------+------------------------------- > ---- > > > > pg_default | 10 | | > > > > pg_global | 10 | | > > > > vol1 | 10 | /data/vol1 | > {postgres=C/postgres,=C/postgres} > > > > vol2 | 10 | /data/vol2 | > {postgres=C/postgres,=C/postgres} > > > > vol3 | 10 | /data/vol3 | > {postgres=C/postgres,=C/postgres} > > > > (5 rows) > > > > > > > > > > And we added new volume yday: > > > > > /dev/mapper/vg00-vol4 > > 4.0T 195M 3.8T 1% /data/vol4 > > > > > > > > So, if I understood you correctly, it is better to extend vol3 > instead of creating new tablespace on vol4 (if possible). > > > If not, then what is my best bet? > > > Well you already have a mess of tablespaces, so I guess one more won't hurt. But since the new device is already in LVM and in the same volume group it really would have been easier to grow vol3 instead of adding a vol4. > > > --=-ryhdkRxEb6w8b9WR/GLA Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
On Thu, 20= 19-05-09 at 16:49 +0000, Julie Nishimura wrote:
Alan, thanks for your reply.

So, we currently have this situation:

/dev/sda1             2.7T  2.4T &= nbsp;298G  90% /data/vol1
/dev/sdb2             2.7T  2.4T &n= bsp;296G  89% /data/vol2
/dev/mapper/vg00-data
                   =    16T   16T  373G  98% /data/vol3

postgres=3D# SELECT * FROM pg_tablespace;
  spcname   | spcowner | spclocation |       =        spcacl            =  
------------+----------+-------------+--------------------------------= ---
 pg_default |       10 |       &nbs= p;     |
 pg_global  |       10 |      =       |
 vol1       |       10 | /data/vol1=  | {postgres=3DC/postgres,=3DC/postgres}
 vol2       |       10 | /data/vol2=  | {postgres=3DC/postgres,=3DC/postgres}
 vol3       |       10 | /data/vol3=  | {postgres=3DC/postgres,=3DC/postgres}
(5 rows)


And we added new volume yday:
/dev/mapper/vg00-vol4
                 =     4.0T  195M  3.8T   1% /data/vol4

So, if I understood you correctly, it is better to extend vol3 = instead of creating new tablespace on vol4 (if possible).
If not, then what is my best bet?


Well y= ou already have a mess of tablespaces, so I guess one more won't hurt.

But since the new device is already in LVM and in the = same volume group it really would have been easier to grow vol3 instead of = adding a vol4.

--=-ryhdkRxEb6w8b9WR/GLA--