From: Geoffrey <esoteric@3times25.net>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: when datas filesystem is full how to do
Date: Wed, 16 Feb 2005 08:17:17 -0500
Message-ID: <421347DD.2090602@3times25.net> (raw)
In-Reply-To: <nD949783794582.03450@send2.inner-21cn.com>
References: <nD949783794582.03450@send2.inner-21cn.com>
guly wrote:
> I have installed postgresql in /usr/local filesystem on RH Linux. But Running for two months,the datas are growing too fast.There is no enough space at /usr/local filesystem. I want to make this filesystem bigger or move the database to another
> filesystem and don't stop the database.Someone can tell me how to do that?Thanks.
I don't know about all the aspects regarding Postgresql, but you could
create another partition, either from current free space, or by adding
another drive and migrate /usr/local to it.
Create the new space (format existing unused space, add a new drive)
mount the new space (/tmpmnt or something)
Boot to single user, insure your postgresql database is not active.
Copy /usr/local to /tmpmnt
Modify /etc/fstab to mount /usr/local on /tmpmnt
Once you verify this all works, you will need to reboot to single user,
unmount your new /usr/local so you can remove the old stuff that was in
the old /usr/local partition/directory in order to recover that space.
Others may shoot this down because of issues with Postgresql I'm not
aware of, but I do this all the time to move stuff around or create new
space.
--
Until later, Geoffrey
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: esoteric@3times25.net
Subject: Re: when datas filesystem is full how to do
In-Reply-To: <421347DD.2090602@3times25.net>
References: <nD949783794582.03450@send2.inner-21cn.com> <421347DD.2090602@3times25.net>
* 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