pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Phillip Smith <phillip.smith@weatherbeeta.com.au>
To: 'Karthikeyan Sundaram' <skarthi98@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: how to add a new data partition
Date: Wed, 7 Feb 2007 08:52:06 +1100
Message-ID: <003b01c74a39$0b8252b0$9b0014ac@wbaus090> (raw)
In-Reply-To: <BAY131-F2983C065CADEA848ECCCAFB09F0@phx.gbl>

One option if you can have the DB offline for a little while:

1) Shutdown Postgres
2) Move your current data directory to the new partition
3) Update your PGDATA variable, and any scripts that reference it to reflect
the new data path. You might also like to symlink the old data dir to the
new one.
4) Restart Postgres. pg_ctl -D /new/path/to/data start

That's worked for me several time before.

Cheers,
-p

-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Karthikeyan Sundaram
Sent: Wednesday, 7 February 2007 08:46
To: pgsql-admin@postgresql.org
Subject: [ADMIN] how to add a new data partition

Hi all,

  We are using postgres 8.0.1 on our production and 8.2 on our development.

The linuix partition is getting full where the database resides.  In few 
weeks our partition will ran out of space so the database will also run out 
of space. We have added another HDD of 300GB.  Now my question is, how will 
I point the database to the new partition along with the old one. Do I need 
to create a symbolic link to the exitisting DB?

   Adding a new tablespace doesn't solve the issue as there are many tables 
in the old tablespace.  Is there a way to extend the tablespace to the new 
partition like in Oracle.

  Did anybody faced this problem and how did you resolve.  Please share your

thoughts.


Regards
skarthi

_________________________________________________________________
Talk now to your Hotmail contacts with Windows Live Messenger. 
http://get.live.com/messenger/overview


---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org


*******************Confidentiality and Privilege Notice*******************

The material contained in this message is privileged and confidential to
the addressee.  If you are not the addressee indicated in this message or
responsible for delivery of the message to such person, you may not copy
or deliver this message to anyone, and you should destroy it and kindly
notify the sender by reply email.

Information in this message that does not relate to the official business
of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta.
Weatherbeeta, its employees, contractors or associates shall not be liable
for direct, indirect or consequential loss arising from transmission of this
message or any attachments



view thread (11+ messages)  latest in thread

Message-ID: <003b01c74a39$0b8252b0$9b0014ac@wbaus090>
Permalink:  ../003b01c74a39$0b8252b0$9b0014ac@wbaus090/
Also on:    postgresql.org/message-id/003b01c74a39$0b8252b0$9b0014ac@wbaus090

 · 

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-admin@postgresql.org
  Cc: phillip.smith@weatherbeeta.com.au, skarthi98@hotmail.com
  Subject: Re: how to add a new data partition
  In-Reply-To: <003b01c74a39$0b8252b0$9b0014ac@wbaus090>
  References: <BAY131-F2983C065CADEA848ECCCAFB09F0@phx.gbl> <003b01c74a39$0b8252b0$9b0014ac@wbaus090>

* 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