pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Tablespace setup issue
Date: Thu, 21 Nov 2019 09:11:43 -0600
Message-ID: <8997b55f-d9d1-9d38-fbc0-3bb335e0dc8a@gmail.com> (raw)
In-Reply-To: <6cd665d763b22de54422718cbd616a520868e258.camel@cybertec.at>
References: <CABR8ZvrdNH9HyzjKpvxaiM4bdYZhXo2tXhbD5ni78UsWNB7-EQ@mail.gmail.com>
	<734fcddec1c9c75316f81657294d3f5274f6d344.camel@cybertec.at>
	<1b00f9ad-535a-6c67-b8c8-0a0237167e7a@gmail.com>
	<6cd665d763b22de54422718cbd616a520868e258.camel@cybertec.at>

On 11/21/19 8:59 AM, Laurenz Albe wrote:
> On Thu, 2019-11-21 at 08:54 -0600, Ron wrote:
>>> Don't create tablespaces.
>>> Stick with the default tablespace.
>> Why?
> Because you won't need them.
>
> Tablespaces have a limited number of use cases:
> - Distribute I/O across several devices (you can do the same
>    on a lower level using striping).
> - Put some tables or indexes faster and some on slower storage.
> - Provide a size limit for a table or a database.
> - Have your temporary files on a different file system.
>
> In a virtualized environment, you never want tablespaces.

After adding another 350GB to the data/base filesystem, the storage team 
said that the virtual LUN on our ESX host is full.  No more expansion of 
this database until and unless they create a new LUN (on storage replicated 
to a different DC using SRM).

Thus, to enlarge the database on this VM, we either...

1. create a tablespace on a different (modest sized) LUN, or
2. create a completely new 10TB LUN and migrate the whole db (including 
backups) to that new LUN.

Honestly, using a new tablespace seems simpler.

-- 
Angular momentum makes the world go 'round.





view thread (10+ messages)  latest in thread

Message-ID: <8997b55f-d9d1-9d38-fbc0-3bb335e0dc8a@gmail.com>
Permalink:  ../8997b55f-d9d1-9d38-fbc0-3bb335e0dc8a@gmail.com/
Also on:    postgresql.org/message-id/8997b55f-d9d1-9d38-fbc0-3bb335e0dc8a@gmail.com

 · 

reply

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: ronljohnsonjr@gmail.com
  Subject: Re: Tablespace setup issue
  In-Reply-To: <8997b55f-d9d1-9d38-fbc0-3bb335e0dc8a@gmail.com>
  References: <CABR8ZvrdNH9HyzjKpvxaiM4bdYZhXo2tXhbD5ni78UsWNB7-EQ@mail.gmail.com> <734fcddec1c9c75316f81657294d3f5274f6d344.camel@cybertec.at> <1b00f9ad-535a-6c67-b8c8-0a0237167e7a@gmail.com> <6cd665d763b22de54422718cbd616a520868e258.camel@cybertec.at> <8997b55f-d9d1-9d38-fbc0-3bb335e0dc8a@gmail.com>

* 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