Re: Temporary files directory

From: Ragnar Kjørstad <postgres(at)ragnark(dot)vestdata(dot)no>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert(dot)Farrugia(at)go(dot)com(dot)mt, pgsql-admin(at)postgresql(dot)org
Subject: Re: Temporary files directory
Date: 2001-01-23 17:04:47
Message-ID: 20010123180447.A15764@vestdata.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, Jan 23, 2001 at 11:38:55AM -0500, Tom Lane wrote:
> > Additionally, is it possible to create a database than spans on more than
> > one partition or harddisk under Linux ?
>
> Right now, the only way to do this is to manually move individual files
> around and then establish symlinks to them from where they were in the
> database directory. While this works, it's pretty darn tedious to
> maintain, especially for large tables that might contain many segments;
> and you more or less have to shut down the database while moving files
> around, too. We have plans to create a more useful "tablespace"
> administration capability in the future.
>
> What I'd recommend in the short term is that you use a filesystem
> implementation that allows a logical filesystem to span multiple
> physical disks. My preferred OS, HPUX, can do this easily; I believe
> the same thing can be done with some Linux filesystems but don't know
> the details. (Any help out there?)

It's not really a filesystem issue, but a volume-manager issue.
On linux you can use LVM or md to create devices that span multiple
disks. With LVM you can even add more disks and grow your devices
without stoping your databases! :-)

--
Ragnar Kjørstad
Big Storage

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Oliver Elphick 2001-01-23 17:46:11 Re: Temporary files directory
Previous Message Tom Lane 2001-01-23 16:38:55 Re: Temporary files directory