pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
how to add a new data partition
11+ messages / 6 participants
[nested] [flat]

* how to add a new data partition
@ 2007-02-06 21:46 Karthikeyan Sundaram <skarthi98@hotmail.com>
  2007-02-06 21:49 ` Re: how to add a new data partition Andrew Sullivan <ajs@crankycanuck.ca>
  2007-02-06 21:52 ` Re: how to add a new data partition Phillip Smith <phillip.smith@weatherbeeta.com.au>
  2007-02-06 23:17 ` Re: how to add a new data partition Scott Marlowe <smarlowe@g2switchworks.com>
  0 siblings, 3 replies; 11+ messages in thread

From: Karthikeyan Sundaram @ 2007-02-06 21:46 UTC (permalink / raw)
  To: pgsql-admin

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




^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: how to add a new data partition
  2007-02-06 21:46 how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
@ 2007-02-06 21:49 ` Andrew Sullivan <ajs@crankycanuck.ca>
  2 siblings, 0 replies; 11+ messages in thread

From: Andrew Sullivan @ 2007-02-06 21:49 UTC (permalink / raw)
  To: pgsql-admin

On Tue, Feb 06, 2007 at 01:46:19PM -0800, Karthikeyan Sundaram wrote:
>  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 

Which partition is getting full?

>   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.

Not like in Oracle; Postgres doesn't manage the disk the way Oracle
does.  My suggestion is to use the underlying operating system tools
to do this.  I know you _can_, but I haven't done it recently on
Linux.

A

-- 
Andrew Sullivan  | ajs@crankycanuck.ca
Everything that happens in the world happens at some place.
		--Jane Jacobs 



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: how to add a new data partition
  2007-02-06 21:46 how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
@ 2007-02-06 21:52 ` Phillip Smith <phillip.smith@weatherbeeta.com.au>
  2007-02-06 21:55   ` Re: how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
  2 siblings, 1 reply; 11+ messages in thread

From: Phillip Smith @ 2007-02-06 21:52 UTC (permalink / raw)
  To: 'Karthikeyan Sundaram' <skarthi98@hotmail.com>; pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: how to add a new data partition
  2007-02-06 21:46 how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
  2007-02-06 21:52 ` Re: how to add a new data partition Phillip Smith <phillip.smith@weatherbeeta.com.au>
@ 2007-02-06 21:55   ` Karthikeyan Sundaram <skarthi98@hotmail.com>
  2007-02-06 22:14     ` Re: how to add a new data partition Phillip Smith <phillip.smith@weatherbeeta.com.au>
  0 siblings, 1 reply; 11+ messages in thread

From: Karthikeyan Sundaram @ 2007-02-06 21:55 UTC (permalink / raw)
  To: phillip.smith@weatherbeeta.com.au; pgsql-admin

Hi Philip,

   Thanks for the reply.  Our DB grows very fast.  Hence I don't want to 
move the exisisting data dir.  If I move my data file to the new partition, 
I will face the same issue in another month instead of week.

    My requirement is to keep the old data directory along with the new 
partition.

   In Oracle, we can tell the alter database add data file '/new partition' 
so the the new partition will take into effect along with the old one.

   Is there a similar way in postgres?


Regards
skarthi


>From: "Phillip Smith" <phillip.smith@weatherbeeta.com.au>
>To: "'Karthikeyan Sundaram'" 
><skarthi98@hotmail.com>,<pgsql-admin@postgresql.org>
>Subject: Re: [ADMIN] how to add a new data partition
>Date: Wed, 7 Feb 2007 08:52:06 +1100
>
>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
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: don't forget to increase your free space map settings

_________________________________________________________________
Valentine’s Day -- Shop for gifts that spell L-O-V-E at MSN Shopping 
http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcode=wlmtagline




^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: how to add a new data partition
  2007-02-06 21:46 how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
  2007-02-06 21:52 ` Re: how to add a new data partition Phillip Smith <phillip.smith@weatherbeeta.com.au>
  2007-02-06 21:55   ` Re: how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
@ 2007-02-06 22:14     ` Phillip Smith <phillip.smith@weatherbeeta.com.au>
  2007-02-06 22:59       ` Re: how to add a new data partition Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 11+ messages in thread

From: Phillip Smith @ 2007-02-06 22:14 UTC (permalink / raw)
  To: Karthikeyan Sundaram <skarthi98@hotmail.com>; +Cc: pgsql-admin

AFAIK, Postgres doesn't support anything like this, apart from
table-spaces which you've already indicated aren't appropriate.

Perhaps a LVM group would be appropriate in this situation if you have
the luxury of being able to implement that somehow...

Cheers,
-p


On Tue, 2007-02-06 at 13:55 -0800, Karthikeyan Sundaram wrote:
> Hi Philip,
> 
>    Thanks for the reply.  Our DB grows very fast.  Hence I don't want to 
> move the exisisting data dir.  If I move my data file to the new partition, 
> I will face the same issue in another month instead of week.
> 
>     My requirement is to keep the old data directory along with the new 
> partition.
> 
>    In Oracle, we can tell the alter database add data file '/new partition' 
> so the the new partition will take into effect along with the old one.
> 
>    Is there a similar way in postgres?
> 
> 
> Regards
> skarthi
> 
> 
> >From: "Phillip Smith" <phillip.smith@weatherbeeta.com.au>
> >To: "'Karthikeyan Sundaram'" 
> ><skarthi98@hotmail.com>,<pgsql-admin@postgresql.org>
> >Subject: Re: [ADMIN] how to add a new data partition
> >Date: Wed, 7 Feb 2007 08:52:06 +1100
> >
> >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
> >
> >---------------------------(end of broadcast)---------------------------
> >TIP 5: don't forget to increase your free space map settings
> 
> _________________________________________________________________
> Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping 
> http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcode=wlmtagline
> 
> 


*******************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



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: how to add a new data partition
  2007-02-06 21:46 how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
  2007-02-06 21:52 ` Re: how to add a new data partition Phillip Smith <phillip.smith@weatherbeeta.com.au>
  2007-02-06 21:55   ` Re: how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
  2007-02-06 22:14     ` Re: how to add a new data partition Phillip Smith <phillip.smith@weatherbeeta.com.au>
@ 2007-02-06 22:59       ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 11+ messages in thread

From: Tom Lane @ 2007-02-06 22:59 UTC (permalink / raw)
  To: Phillip Smith <phillip.smith@weatherbeeta.com.au>; +Cc: Karthikeyan Sundaram <skarthi98@hotmail.com>; pgsql-admin

Phillip Smith <phillip.smith@weatherbeeta.com.au> writes:
> Perhaps a LVM group would be appropriate in this situation if you have
> the luxury of being able to implement that somehow...

Indeed, the existence of LVM and similar tools is exactly why we don't
deem it pressing to come up with Oracle-like tablespace management.
If you want a tablespace to span multiple physical volumes, use LVM.
The Postgres project tries to avoid re-inventing perfectly good wheels ...

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: how to add a new data partition
  2007-02-06 21:46 how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
@ 2007-02-06 23:17 ` Scott Marlowe <smarlowe@g2switchworks.com>
  2007-02-07 00:09   ` Re: how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
  2 siblings, 1 reply; 11+ messages in thread

From: Scott Marlowe @ 2007-02-06 23:17 UTC (permalink / raw)
  To: Karthikeyan Sundaram <skarthi98@hotmail.com>; +Cc: pgsql-admin

On Tue, 2007-02-06 at 15:46, Karthikeyan Sundaram wrote:
> 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.

So,

alter table ... set tablespace new_tablespace

doesn't work for you in this circumstance?  



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: how to add a new data partition
  2007-02-06 21:46 how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
  2007-02-06 23:17 ` Re: how to add a new data partition Scott Marlowe <smarlowe@g2switchworks.com>
@ 2007-02-07 00:09   ` Karthikeyan Sundaram <skarthi98@hotmail.com>
  2007-02-07 00:16     ` Re: how to add a new data partition Phillip Smith <phillip.smith@weatherbeeta.com.au>
  2007-02-07 08:31     ` Re: how to add a new data partition Shane Ambler <pgsql@007Marketing.com>
  0 siblings, 2 replies; 11+ messages in thread

From: Karthikeyan Sundaram @ 2007-02-07 00:09 UTC (permalink / raw)
  To: smarlowe@g2switchworks.com; +Cc: pgsql-admin

Hi Scott,

   Thanks for replying.  The tablespace is not the main problem here.  I 
want the data files to grow in the new partition along with the old linux 
partition.

   Let me put like this.

    We have a linux partition of 120GB called as 
/local/postgres/database/Data/< followed by all files>

     This /local partition is 95 % used.

     So we are adding one more partition called /local1 which is 
approximately 250 GB.  Now I want to inform postgres that after /local 
partiion is 100 %, I want to utilize the /local1 so that the database can 
grow significantly.  In other words, the data file created and maintained by 
postgres will grow in the /local1 partition.

    How to do this in postgres?

    I don't want to compare with Oracle.  But in Oracle, when we create the 
DB

    we will tell alter database add data file 
'/local/postgres/database/data'
    then if /local partition is full, we can add another data file  such as
    alter database <db Name> add data file '/local1/data2'

    Is there a similar way or equivalent way to do in postgres?

Regards
skarthi



>From: Scott Marlowe <smarlowe@g2switchworks.com>
>To: Karthikeyan Sundaram <skarthi98@hotmail.com>
>CC: pgsql-admin@postgresql.org
>Subject: Re: [ADMIN] how to add a new data partition
>Date: Tue, 06 Feb 2007 17:17:15 -0600
>
>On Tue, 2007-02-06 at 15:46, Karthikeyan Sundaram wrote:
> > 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.
>
>So,
>
>alter table ... set tablespace new_tablespace
>
>doesn't work for you in this circumstance?
>
>---------------------------(end of broadcast)---------------------------
>TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match

_________________________________________________________________
Invite your Hotmail contacts to join your friends list with Windows Live 
Spaces 
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.a...




^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: how to add a new data partition
  2007-02-06 21:46 how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
  2007-02-06 23:17 ` Re: how to add a new data partition Scott Marlowe <smarlowe@g2switchworks.com>
  2007-02-07 00:09   ` Re: how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
@ 2007-02-07 00:16     ` Phillip Smith <phillip.smith@weatherbeeta.com.au>
  1 sibling, 0 replies; 11+ messages in thread

From: Phillip Smith @ 2007-02-07 00:16 UTC (permalink / raw)
  To: Karthikeyan Sundaram <skarthi98@hotmail.com>; +Cc: smarlowe@g2switchworks.com; pgsql-admin

No - As Tom Lane said: Why reinvent LVM?
-p


On Tue, 2007-02-06 at 16:09 -0800, Karthikeyan Sundaram wrote:
> Hi Scott,
> 
>    Thanks for replying.  The tablespace is not the main problem here.  I 
> want the data files to grow in the new partition along with the old linux 
> partition.
> 
>    Let me put like this.
> 
>     We have a linux partition of 120GB called as 
> /local/postgres/database/Data/< followed by all files>
> 
>      This /local partition is 95 % used.
> 
>      So we are adding one more partition called /local1 which is 
> approximately 250 GB.  Now I want to inform postgres that after /local 
> partiion is 100 %, I want to utilize the /local1 so that the database can 
> grow significantly.  In other words, the data file created and maintained by 
> postgres will grow in the /local1 partition.
> 
>     How to do this in postgres?
> 
>     I don't want to compare with Oracle.  But in Oracle, when we create the 
> DB
> 
>     we will tell alter database add data file 
> '/local/postgres/database/data'
>     then if /local partition is full, we can add another data file  such as
>     alter database <db Name> add data file '/local1/data2'
> 
>     Is there a similar way or equivalent way to do in postgres?
> 
> Regards
> skarthi
> 
> 
> 
> >From: Scott Marlowe <smarlowe@g2switchworks.com>
> >To: Karthikeyan Sundaram <skarthi98@hotmail.com>
> >CC: pgsql-admin@postgresql.org
> >Subject: Re: [ADMIN] how to add a new data partition
> >Date: Tue, 06 Feb 2007 17:17:15 -0600
> >
> >On Tue, 2007-02-06 at 15:46, Karthikeyan Sundaram wrote:
> > > 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.
> >
> >So,
> >
> >alter table ... set tablespace new_tablespace
> >
> >doesn't work for you in this circumstance?
> >
> >---------------------------(end of broadcast)---------------------------
> >TIP 9: In versions below 8.0, the planner will ignore your desire to
> >        choose an index scan if your joining column's datatypes do not
> >        match
> 
> _________________________________________________________________
> Invite your Hotmail contacts to join your friends list with Windows Live 
> Spaces 
> http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.a...
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
> 
>                http://www.postgresql.org/docs/faq
> 


*******************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



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: how to add a new data partition
  2007-02-06 21:46 how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
  2007-02-06 23:17 ` Re: how to add a new data partition Scott Marlowe <smarlowe@g2switchworks.com>
  2007-02-07 00:09   ` Re: how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
@ 2007-02-07 08:31     ` Shane Ambler <pgsql@007Marketing.com>
  1 sibling, 0 replies; 11+ messages in thread

From: Shane Ambler @ 2007-02-07 08:31 UTC (permalink / raw)
  To: Karthikeyan Sundaram <skarthi98@hotmail.com>; +Cc: smarlowe@g2switchworks.com; pgsql-admin

Karthikeyan Sundaram wrote:
> Hi Scott,
> 
>   Thanks for replying.  The tablespace is not the main problem here.  I 
> want the data files to grow in the new partition along with the old 
> linux partition.
> 
>   Let me put like this.
> 
>    We have a linux partition of 120GB called as 
> /local/postgres/database/Data/< followed by all files>
> 
>     This /local partition is 95 % used.
> 
>     So we are adding one more partition called /local1 which is 
> approximately 250 GB.  Now I want to inform postgres that after /local 
> partiion is 100 %, I want to utilize the /local1 so that the database 
> can grow significantly.  In other words, the data file created and 
> maintained by postgres will grow in the /local1 partition.

The closest I would think is partitioning - data matching certain 
criteria can be in one tablespace and other data in another tablespace.
This won't be just once this disk is full use another - you would say 
something like table1's rows with id<2000000 on this disk and 
id>=2000000 on another.
If your data is that large you may want to look into the benefit's it 
can offer even if you do use lvm.

http://www.postgresql.org/docs/current/interactive/ddl-partitioning.html




-- 

Shane Ambler
pgSQL@007Marketing.com

Get Sheeky @ http://Sheeky.Biz



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: how to add a new data partition
@ 2007-02-07 00:24 Phillip Smith <phillip.smith@weatherbeeta.com.au>
  0 siblings, 0 replies; 11+ messages in thread

From: Phillip Smith @ 2007-02-07 00:24 UTC (permalink / raw)
  To: Karthikeyan Sundaram <skarthi98@hotmail.com>; +Cc: pgsql-admin

Google is your friend here... Try these:

http://www.ibm.com/developerworks/linux/library/l-lvm/
http://www.gweep.net/~sfoskett/linux/lvmlinux.html
http://tldp.org/HOWTO/LVM-HOWTO/
http://www.linuxdevcenter.com/pub/a/linux/2006/04/27/managing-disk-space-with-lvm.html
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch27_:_Expanding_Disk_Capacity
http://www.gagme.com/greg/linux/raid-lvm.php



On Tue, 2007-02-06 at 16:20 -0800, Karthikeyan Sundaram wrote:
> Tom,
> 
>    Thanks for your reply.  I am new to postgres. What is LVM? and how should 
> I use it.  Can you guide me?.
> 
> Regards
> skarthi
> 
> 
> >From: Tom Lane <tgl@sss.pgh.pa.us>
> >To: Phillip Smith <phillip.smith@weatherbeeta.com.au>
> >CC: Karthikeyan Sundaram <skarthi98@hotmail.com>, 
> >pgsql-admin@postgresql.org
> >Subject: Re: [ADMIN] how to add a new data partition Date: Tue, 06 Feb 2007 
> >17:59:51 -0500
> >
> >Phillip Smith <phillip.smith@weatherbeeta.com.au> writes:
> > > Perhaps a LVM group would be appropriate in this situation if you have
> > > the luxury of being able to implement that somehow...
> >
> >Indeed, the existence of LVM and similar tools is exactly why we don't
> >deem it pressing to come up with Oracle-like tablespace management.
> >If you want a tablespace to span multiple physical volumes, use LVM.
> >The Postgres project tries to avoid re-inventing perfectly good wheels ...
> >
> >			regards, tom lane
> >
> >---------------------------(end of broadcast)---------------------------
> >TIP 1: if posting/reading through Usenet, please send an appropriate
> >        subscribe-nomail command to majordomo@postgresql.org so that your
> >        message can get through to the mailing list cleanly
> 
> _________________________________________________________________
> Search for grocery stores. Find gratitude. Turn a simple search into 
> something more. 
> http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_gratitude&FORM=WLM...
> 
> 


*******************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



^ permalink  raw  reply  [nested|flat] 11+ messages in thread


end of thread, other threads:[~2007-02-07 08:31 UTC | newest]

Thread overview: 11+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-02-06 21:46 how to add a new data partition Karthikeyan Sundaram <skarthi98@hotmail.com>
2007-02-06 21:49 ` Andrew Sullivan <ajs@crankycanuck.ca>
2007-02-06 21:52 ` Phillip Smith <phillip.smith@weatherbeeta.com.au>
2007-02-06 21:55   ` Karthikeyan Sundaram <skarthi98@hotmail.com>
2007-02-06 22:14     ` Phillip Smith <phillip.smith@weatherbeeta.com.au>
2007-02-06 22:59       ` Tom Lane <tgl@sss.pgh.pa.us>
2007-02-06 23:17 ` Scott Marlowe <smarlowe@g2switchworks.com>
2007-02-07 00:09   ` Karthikeyan Sundaram <skarthi98@hotmail.com>
2007-02-07 00:16     ` Phillip Smith <phillip.smith@weatherbeeta.com.au>
2007-02-07 08:31     ` Shane Ambler <pgsql@007Marketing.com>
2007-02-07 00:24 Re: how to add a new data partition Phillip Smith <phillip.smith@weatherbeeta.com.au>

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