From: Alan Hodgson <ahodgson@lists.simkin.ca>
To: Julie Nishimura <juliezain@hotmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: running out of disk space
Date: Thu, 09 May 2019 10:12:40 -0700
Message-ID: <a1d44946019a65b0bf79ff29708d88b901b834c9.camel@lists.simkin.ca> (raw)
In-Reply-To: <BYAPR08MB5014AA76F28F617E4B5FC49EAC330@BYAPR08MB5014.namprd08.prod.outlook.com>
References: <BYAPR08MB50148F4C9E3FE5505F634399AC330@BYAPR08MB5014.namprd08.prod.outlook.com>
<d92e9ca9af415f2fb93c3f43bb9ebe2928436cd8.camel@lists.simkin.ca>
<BYAPR08MB5014AA76F28F617E4B5FC49EAC330@BYAPR08MB5014.namprd08.prod.outlook.com>
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.
>
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ahodgson@lists.simkin.ca, juliezain@hotmail.com
Subject: Re: running out of disk space
In-Reply-To: <a1d44946019a65b0bf79ff29708d88b901b834c9.camel@lists.simkin.ca>
References: <BYAPR08MB50148F4C9E3FE5505F634399AC330@BYAPR08MB5014.namprd08.prod.outlook.com> <d92e9ca9af415f2fb93c3f43bb9ebe2928436cd8.camel@lists.simkin.ca> <BYAPR08MB5014AA76F28F617E4B5FC49EAC330@BYAPR08MB5014.namprd08.prod.outlook.com> <a1d44946019a65b0bf79ff29708d88b901b834c9.camel@lists.simkin.ca>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox