pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Tablespace setup issue
Date: Thu, 21 Nov 2019 16:28:54 +0100
Message-ID: <5ca0e395f1234e7edf9e19dca3788ff4e22a0539.camel@cybertec.at> (raw)
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>

On Thu, 2019-11-21 at 09:11 -0600, Ron wrote:
> 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.

Ok, that is a valid use case :^)

Change into the directory with the new file system.
Create a subdirectory and "chown" it to "postgres".
Become operating system user "postgres" and verify
that you can write to that directory.

If not, fix the permissions of the directories on the path.

If you can write to the directory, you will be able to create
a tablespace there.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (10+ messages)  latest in thread

Message-ID: <5ca0e395f1234e7edf9e19dca3788ff4e22a0539.camel@cybertec.at>
Permalink:  ../5ca0e395f1234e7edf9e19dca3788ff4e22a0539.camel@cybertec.at/
Also on:    postgresql.org/message-id/5ca0e395f1234e7edf9e19dca3788ff4e22a0539.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, ronljohnsonjr@gmail.com
  Subject: Re: Tablespace setup issue
  In-Reply-To: <5ca0e395f1234e7edf9e19dca3788ff4e22a0539.camel@cybertec.at>
  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> <5ca0e395f1234e7edf9e19dca3788ff4e22a0539.camel@cybertec.at>

* 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