pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: Upgrade from 9.2 to 9.6 without space
3+ messages / 3 participants
[nested] [flat]

* Upgrade from 9.2 to 9.6 without space
@ 2021-03-24 13:09 Erik Serrano <eserranos@gmail.com>
  2021-03-24 13:09 ` Re: Upgrade from 9.2 to 9.6 without space Bruce Momjian <bruce@momjian.us>
  2021-03-24 13:11 ` Re: Upgrade from 9.2 to 9.6 without space Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 2 replies; 3+ messages in thread

From: Erik Serrano @ 2021-03-24 13:09 UTC (permalink / raw)
  To: Pgsql-admin <pgsql-admin@lists.postgresql.org>

Hello good day.

I am writing why I need guidance regarding a version upgrade in Postgresql.
I have a server with 85% of the disk occupied only in the / var / lib /
pgsql / data folder and when doing an upgrade it drops because it does not
have space to create the new / var / lib / pgsql folder /9.6/data in your
process.
So I need to know if there is any procedure to upgrade without making a
copy since I do not have space for another folder of the same size.

PS: I am upgrading from 9.2 to 9.6

I hope they can help me

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

* Re: Upgrade from 9.2 to 9.6 without space
  2021-03-24 13:09 Upgrade from 9.2 to 9.6 without space Erik Serrano <eserranos@gmail.com>
@ 2021-03-24 13:09 ` Bruce Momjian <bruce@momjian.us>
  1 sibling, 0 replies; 3+ messages in thread

From: Bruce Momjian @ 2021-03-24 13:09 UTC (permalink / raw)
  To: Erik Serrano <eserranos@gmail.com>; +Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>

On Wed, Mar 24, 2021 at 10:09:57AM -0300, Erik Serrano wrote:
> Hello good day.
> 
> I am writing why I need guidance regarding a version upgrade in Postgresql. I
> have a server with 85% of the disk occupied only in the / var / lib / pgsql /
> data folder and when doing an upgrade it drops because it does not have space
> to create the new / var / lib / pgsql folder /9.6/data in your process.
> So I need to know if there is any procedure to upgrade without making a copy
> since I do not have space for another folder of the same size.
> 
> PS: I am upgrading from 9.2 to 9.6

The only option is pg_upgrade in link mode.  Also, you might want to
upgrade to a newer version of Postgres than 9.6.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  If only the physical world exists, free will is an illusion.






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

* Re: Upgrade from 9.2 to 9.6 without space
  2021-03-24 13:09 Upgrade from 9.2 to 9.6 without space Erik Serrano <eserranos@gmail.com>
@ 2021-03-24 13:11 ` Alvaro Herrera <alvherre@alvh.no-ip.org>
  1 sibling, 0 replies; 3+ messages in thread

From: Alvaro Herrera @ 2021-03-24 13:11 UTC (permalink / raw)
  To: Erik Serrano <eserranos@gmail.com>; +Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>

Hello Erik

On 2021-Mar-24, Erik Serrano wrote:

> I am writing why I need guidance regarding a version upgrade in Postgresql.
> I have a server with 85% of the disk occupied only in the / var / lib /
> pgsql / data folder and when doing an upgrade it drops because it does not
> have space to create the new / var / lib / pgsql folder /9.6/data in your
> process.
> So I need to know if there is any procedure to upgrade without making a
> copy since I do not have space for another folder of the same size.

pg_upgrade can do that if you use link mode (pg_upgrade -k).  It is
strongly recommended to make a snapshot of the data directory before the
upgrade, so that you can roll back to the original if things go wrong.

Going up only to 9.6 means that you will be pressed to move to a more
recent version soon, since 9.6 goes out of support at the end of the
year.  Why not go straight to, say, 12?

I suggest to add more storage space.

The pgsql-es-ayuda@lists.postgresql.org can help you if you would like
to discuss in Spanish.

-- 
Álvaro Herrera                            39°49'30"S 73°17'W





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


end of thread, other threads:[~2021-03-24 13:11 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24 13:09 Upgrade from 9.2 to 9.6 without space Erik Serrano <eserranos@gmail.com>
2021-03-24 13:09 ` Bruce Momjian <bruce@momjian.us>
2021-03-24 13:11 ` Alvaro Herrera <alvherre@alvh.no-ip.org>

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