pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Migration of server
6+ messages / 4 participants
[nested] [flat]

* Migration of server
@ 2013-05-16 18:04 Oscar Calderon <ocalderon@solucionesaplicativas.com>
  2013-05-16 18:20 ` Re: Migration of server Gilberto Castillo <gilberto.castillo@etecsa.cu>
  2013-05-16 18:35 ` Re: Migration of server Craig James <cjames@emolecules.com>
  0 siblings, 2 replies; 6+ messages in thread

From: Oscar Calderon @ 2013-05-16 18:04 UTC (permalink / raw)
  To: pgsql-admin

Hi everybody, this is my first message in this list. The company where i
work is bringing maintenance service of PostgreSQL to another company, and
currently they have installed PostgreSQL 9.1.1, and they want to move to
9.3 version when it will come out. So, because the difference of versions,
and because it was installed by compiling it (using source code), and
because the 9.1.1 installation is in a different directory than the
default, they decided to replace 9.1.1 version with 9.3 (no upgrade, but
replace it).

Currently, they only have one database in production of 2.2 GB with some
procedures and triggers. So, my plan to execute this database installation
is the next:


   1. Install PostgreSQL 9.3 from postgresql repository (yum.postgresql.org)
   with a different port to avoid interrupt the production PostgreSQL instance
   operation
   2. Tune the database parameters in postgresql.conf, also create the same
   rules in pg_hba as the production instance, configure log and so on.
   3. At the end of the operations day, create a backup of the production
   database and then restore it into the new instance
   4. Test the new instance with the PHP applications that use it and
   verify that all is in order
   5. Stop the old instance and change the port to another port, then
   change the port of the new instance to 5432 in order to avoid change the
   network configuration, permissions and so on.

But really is the first time that i do that, so i don't know if i'm missing
something or there's something wrong about i'm planning to do, so i will
appreciate very much if you can guide me about what steps i have to do
exactly and considerations during this process.


Regards.
***************************
Oscar Calderon
Analista de Sistemas
Soluciones Aplicativas S.A. de C.V.
www.solucionesaplicativas.com
Cel. (503) 7741 7850

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

* Re: Migration of server
  2013-05-16 18:04 Migration of server Oscar Calderon <ocalderon@solucionesaplicativas.com>
@ 2013-05-16 18:20 ` Gilberto Castillo <gilberto.castillo@etecsa.cu>
  1 sibling, 0 replies; 6+ messages in thread

From: Gilberto Castillo @ 2013-05-16 18:20 UTC (permalink / raw)
  To: Oscar Calderon <ocalderon@solucionesaplicativas.com>; +Cc: pgsql-admin



> Hi everybody, this is my first message in this list. The company where i
> work is bringing maintenance service of PostgreSQL to another company, and
> currently they have installed PostgreSQL 9.1.1, and they want to move to
> 9.3 version when it will come out. So, because the difference of versions,
> and because it was installed by compiling it (using source code), and
> because the 9.1.1 installation is in a different directory than the
> default, they decided to replace 9.1.1 version with 9.3 (no upgrade, but
> replace it).
>
> Currently, they only have one database in production of 2.2 GB with some
> procedures and triggers. So, my plan to execute this database installation
> is the next:
>
>
>    1. Install PostgreSQL 9.3 from postgresql repository
> (yum.postgresql.org)
>    with a different port to avoid interrupt the production PostgreSQL
> instance
>    operation
>    2. Tune the database parameters in postgresql.conf, also create the
> same
>    rules in pg_hba as the production instance, configure log and so on.
>    3. At the end of the operations day, create a backup of the production
>    database and then restore it into the new instance
>    4. Test the new instance with the PHP applications that use it and
>    verify that all is in order
>    5. Stop the old instance and change the port to another port, then
>    change the port of the new instance to 5432 in order to avoid change
> the
>    network configuration, permissions and so on.
>
> But really is the first time that i do that, so i don't know if i'm
> missing
> something or there's something wrong about i'm planning to do, so i will
> appreciate very much if you can guide me about what steps i have to do
> exactly and considerations during this process.


Not, only bad thing is that the 9.3 is still in beta version.

Use 9.2.

Write list in spanish Too ;-)

Saludos,
Gilberto Castillo
La Habana, Cuba
--- 
This message was processed by Kaspersky Mail Gateway 5.6.28/RELEASE running at host imx3.etecsa.cu
Visit our web-site: <http://www.kaspersky.com;, <http://www.viruslist.com;

-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

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

* Re: Migration of server
  2013-05-16 18:04 Migration of server Oscar Calderon <ocalderon@solucionesaplicativas.com>
@ 2013-05-16 18:35 ` Craig James <cjames@emolecules.com>
  2013-05-16 18:51   ` Re: Migration of server Oscar Calderon <ocalderon@solucionesaplicativas.com>
  2013-05-16 18:54   ` Re: Migration of server Alejandro Brust <alejandrob@pasteleros.org.ar>
  1 sibling, 2 replies; 6+ messages in thread

From: Craig James @ 2013-05-16 18:35 UTC (permalink / raw)
  To: Oscar Calderon <ocalderon@solucionesaplicativas.com>; +Cc: pgsql-admin

On Thu, May 16, 2013 at 11:04 AM, Oscar Calderon <
ocalderon@solucionesaplicativas.com> wrote:

> Hi everybody, this is my first message in this list. The company where i
> work is bringing maintenance service of PostgreSQL to another company,
> and currently they have installed PostgreSQL 9.1.1, and they want to move
> to 9.3 version when it will come out. So, because the difference of
> versions, and because it was installed by compiling it (using source code),
> and because the 9.1.1 installation is in a different directory than the
> default, they decided to replace 9.1.1 version with 9.3 (no upgrade, but
> replace it).
>
> Currently, they only have one database in production of 2.2 GB with some
> procedures and triggers. So, my plan to execute this database installation
> is the next:
>
>
>    1. Install PostgreSQL 9.3 from postgresql repository (
>    yum.postgresql.org) with a different port to avoid interrupt the
>    production PostgreSQL instance operation
>    2. Tune the database parameters in postgresql.conf, also create the
>    same rules in pg_hba as the production instance, configure log and so on.
>    3. At the end of the operations day, create a backup of the production
>    database and then restore it into the new instance
>    4. Test the new instance with the PHP applications that use it and
>    verify that all is in order
>    5. Stop the old instance and change the port to another port, then
>    change the port of the new instance to 5432 in order to avoid change the
>    network configuration, permissions and so on.
>
> But really is the first time that i do that, so i don't know if i'm
> missing something or there's something wrong about i'm planning to do, so i
> will appreciate very much if you can guide me about what steps i have to do
> exactly and considerations during this process.
>

I would expand step 4 into a much longer period.  Say, do steps 1..3 (you
don't even have to stop your services ... do it during a low-traffic
period), then spend a few days on step 4 to ensure that all of your
applications work and that you don't have any queries that have problems.
Unless your application is really simple, it will take more than an hour or
two to ensure that the migration will go well.

Once you're convinced that everything will work, discard the new 9.3
database and start over again at step 1, and this time complete through
step 5.

Craig

>
> Regards.
> ***************************
> Oscar Calderon
> Analista de Sistemas
> Soluciones Aplicativas S.A. de C.V.
> www.solucionesaplicativas.com
> Cel. (503) 7741 7850
>

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

* Re: Migration of server
  2013-05-16 18:04 Migration of server Oscar Calderon <ocalderon@solucionesaplicativas.com>
  2013-05-16 18:35 ` Re: Migration of server Craig James <cjames@emolecules.com>
@ 2013-05-16 18:51   ` Oscar Calderon <ocalderon@solucionesaplicativas.com>
  1 sibling, 0 replies; 6+ messages in thread

From: Oscar Calderon @ 2013-05-16 18:51 UTC (permalink / raw)
  To: Craig James <cjames@emolecules.com>; +Cc: pgsql-admin

Yes, you're right. Really i don't have too much knowledgement about the
number and complexity of the applications that they have that works with
the database (i only know that they have some PHP applications and Visual
Basic .NET apps), so you are right. In conclusion, you recommend to make an
installation just for testing, and when i check that everything is
allright, install it again? What about just delete the database after
testing and generate another backup from production instance and restore it
on the new instance?

THanks for your answer, Gilberto and Craig.

Regards.

***************************
Oscar Calderon
Analista de Sistemas
Soluciones Aplicativas S.A. de C.V.
www.solucionesaplicativas.com
Cel. (503) 7741 7850


2013/5/16 Craig James <cjames@emolecules.com>

> On Thu, May 16, 2013 at 11:04 AM, Oscar Calderon <
> ocalderon@solucionesaplicativas.com> wrote:
>
>> Hi everybody, this is my first message in this list. The company where i
>> work is bringing maintenance service of PostgreSQL to another company,
>> and currently they have installed PostgreSQL 9.1.1, and they want to move
>> to 9.3 version when it will come out. So, because the difference of
>> versions, and because it was installed by compiling it (using source code),
>> and because the 9.1.1 installation is in a different directory than the
>> default, they decided to replace 9.1.1 version with 9.3 (no upgrade, but
>> replace it).
>>
>> Currently, they only have one database in production of 2.2 GB with some
>> procedures and triggers. So, my plan to execute this database installation
>> is the next:
>>
>>
>>    1. Install PostgreSQL 9.3 from postgresql repository (
>>    yum.postgresql.org) with a different port to avoid interrupt the
>>    production PostgreSQL instance operation
>>    2. Tune the database parameters in postgresql.conf, also create the
>>    same rules in pg_hba as the production instance, configure log and so on.
>>    3. At the end of the operations day, create a backup of the
>>    production database and then restore it into the new instance
>>    4. Test the new instance with the PHP applications that use it and
>>    verify that all is in order
>>    5. Stop the old instance and change the port to another port, then
>>    change the port of the new instance to 5432 in order to avoid change the
>>    network configuration, permissions and so on.
>>
>> But really is the first time that i do that, so i don't know if i'm
>> missing something or there's something wrong about i'm planning to do, so i
>> will appreciate very much if you can guide me about what steps i have to do
>> exactly and considerations during this process.
>>
>
> I would expand step 4 into a much longer period.  Say, do steps 1..3 (you
> don't even have to stop your services ... do it during a low-traffic
> period), then spend a few days on step 4 to ensure that all of your
> applications work and that you don't have any queries that have problems.
> Unless your application is really simple, it will take more than an hour or
> two to ensure that the migration will go well.
>
> Once you're convinced that everything will work, discard the new 9.3
> database and start over again at step 1, and this time complete through
> step 5.
>
> Craig
>
>>
>> Regards.
>> ***************************
>> Oscar Calderon
>> Analista de Sistemas
>> Soluciones Aplicativas S.A. de C.V.
>> www.solucionesaplicativas.com
>> Cel. (503) 7741 7850
>>
>
>

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

* Re: Migration of server
  2013-05-16 18:04 Migration of server Oscar Calderon <ocalderon@solucionesaplicativas.com>
  2013-05-16 18:35 ` Re: Migration of server Craig James <cjames@emolecules.com>
@ 2013-05-16 18:54   ` Alejandro Brust <alejandrob@pasteleros.org.ar>
  2013-05-16 19:25     ` Re: Migration of server Oscar Calderon <ocalderon@solucionesaplicativas.com>
  1 sibling, 1 reply; 6+ messages in thread

From: Alejandro Brust @ 2013-05-16 18:54 UTC (permalink / raw)
  To: pgsql-admin


El 16/05/2013 15:35, Craig James escribió:
> On Thu, May 16, 2013 at 11:04 AM, Oscar Calderon
> <ocalderon@solucionesaplicativas.com
> <mailto:ocalderon@solucionesaplicativas.com>> wrote:
>
>     Hi everybody, this is my first message in this list. The company
>     where i work is bringing maintenance service of PostgreSQL to
>     another company, and currently they have installed PostgreSQL
>     9.1.1, and they want to move to 9.3 version when it will come out.
>     So, because the difference of versions, and because it was
>     installed by compiling it (using source code), and because the
>     9.1.1 installation is in a different directory than the default,
>     they decided to replace 9.1.1 version with 9.3 (no upgrade, but
>     replace it). 
>
>     Currently, they only have one database in production of 2.2 GB
>     with some procedures and triggers. So, my plan to execute this
>     database installation is the next:
>
>      1. Install PostgreSQL 9.3 from postgresql repository
>         (yum.postgresql.org <http://yum.postgresql.org;) with a
>         different port to avoid interrupt the production PostgreSQL
>         instance operation
>      2. Tune the database parameters in postgresql.conf, also create
>         the same rules in pg_hba as the production instance, configure
>         log and so on.
>      3. At the end of the operations day, create a backup of the
>         production database and then restore it into the new instance
>      4. Test the new instance with the PHP applications that use it
>         and verify that all is in order
>      5. Stop the old instance and change the port to another port,
>         then change the port of the new instance to 5432 in order to
>         avoid change the network configuration, permissions and so on.
>
>     But really is the first time that i do that, so i don't know if
>     i'm missing something or there's something wrong about i'm
>     planning to do, so i will appreciate very much if you can guide me
>     about what steps i have to do exactly and considerations during
>     this process.
>
>
> I would expand step 4 into a much longer period.  Say, do steps 1..3
> (you don't even have to stop your services ... do it during a
> low-traffic period), then spend a few days on step 4 to ensure that
> all of your applications work and that you don't have any queries that
> have problems.  Unless your application is really simple, it will take
> more than an hour or two to ensure that the migration will go well.
>
> Once you're convinced that everything will work, discard the new 9.3
> database and start over again at step 1, and this time complete
> through step 5.
>
> Craig
>
>
>     Regards.
>
>     ***************************
>     Oscar Calderon
>     Analista de Sistemas
>     Soluciones Aplicativas S.A. de C.V.
>     www.solucionesaplicativas.com <http://www.solucionesaplicativas.com;
>     Cel. (503) 7741 7850 <tel:%28503%29%207741%207850>
>
>
OK, first of all, excuse my English.
It is know that in the step 3 you must do the backup with pg_dump of the
new instance (pg 9.3) and restore it with the same version.





 

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

* Re: Migration of server
  2013-05-16 18:04 Migration of server Oscar Calderon <ocalderon@solucionesaplicativas.com>
  2013-05-16 18:35 ` Re: Migration of server Craig James <cjames@emolecules.com>
  2013-05-16 18:54   ` Re: Migration of server Alejandro Brust <alejandrob@pasteleros.org.ar>
@ 2013-05-16 19:25     ` Oscar Calderon <ocalderon@solucionesaplicativas.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Oscar Calderon @ 2013-05-16 19:25 UTC (permalink / raw)
  To: alejandrob@pasteleros.org.ar; +Cc: pgsql-admin

Hmm that's an interesting point, because once i had a problem because of
that in another situation. Thank you.

Además me alegra encontrar más latinoamericanos por aquí.

Regards.

***************************
Oscar Calderon
Analista de Sistemas
Soluciones Aplicativas S.A. de C.V.
www.solucionesaplicativas.com
Cel. (503) 7741 7850


2013/5/16 Alejandro Brust <alejandrob@pasteleros.org.ar>

>
> El 16/05/2013 15:35, Craig James escribió:
>
> On Thu, May 16, 2013 at 11:04 AM, Oscar Calderon <
> ocalderon@solucionesaplicativas.com> wrote:
>
>> Hi everybody, this is my first message in this list. The company where i
>> work is bringing maintenance service of PostgreSQL to another company,
>> and currently they have installed PostgreSQL 9.1.1, and they want to move
>> to 9.3 version when it will come out. So, because the difference of
>> versions, and because it was installed by compiling it (using source code),
>> and because the 9.1.1 installation is in a different directory than the
>> default, they decided to replace 9.1.1 version with 9.3 (no upgrade, but
>> replace it).
>>
>>  Currently, they only have one database in production of 2.2 GB with
>> some procedures and triggers. So, my plan to execute this database
>> installation is the next:
>>
>>
>>    1. Install PostgreSQL 9.3 from postgresql repository (
>>    yum.postgresql.org) with a different port to avoid interrupt the
>>    production PostgreSQL instance operation
>>    2. Tune the database parameters in postgresql.conf, also create the
>>    same rules in pg_hba as the production instance, configure log and so on.
>>    3. At the end of the operations day, create a backup of the
>>    production database and then restore it into the new instance
>>    4. Test the new instance with the PHP applications that use it and
>>    verify that all is in order
>>     5. Stop the old instance and change the port to another port, then
>>    change the port of the new instance to 5432 in order to avoid change the
>>    network configuration, permissions and so on.
>>
>> But really is the first time that i do that, so i don't know if i'm
>> missing something or there's something wrong about i'm planning to do, so i
>> will appreciate very much if you can guide me about what steps i have to do
>> exactly and considerations during this process.
>>
>
> I would expand step 4 into a much longer period.  Say, do steps 1..3 (you
> don't even have to stop your services ... do it during a low-traffic
> period), then spend a few days on step 4 to ensure that all of your
> applications work and that you don't have any queries that have problems.
> Unless your application is really simple, it will take more than an hour or
> two to ensure that the migration will go well.
>
> Once you're convinced that everything will work, discard the new 9.3
> database and start over again at step 1, and this time complete through
> step 5.
>
> Craig
>
>>
>>  Regards.
>>   ***************************
>> Oscar Calderon
>> Analista de Sistemas
>> Soluciones Aplicativas S.A. de C.V.
>> www.solucionesaplicativas.com
>> Cel. (503) 7741 7850 <%28503%29%207741%207850>
>>
>
>  OK, first of all, excuse my English.
> It is know that in the step 3 you must do the backup with pg_dump of the
> new instance (pg 9.3) and restore it with the same version.
>
>
>
>
>
>
>

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


end of thread, other threads:[~2013-05-16 19:25 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-05-16 18:04 Migration of server Oscar Calderon <ocalderon@solucionesaplicativas.com>
2013-05-16 18:20 ` Gilberto Castillo <gilberto.castillo@etecsa.cu>
2013-05-16 18:35 ` Craig James <cjames@emolecules.com>
2013-05-16 18:51   ` Oscar Calderon <ocalderon@solucionesaplicativas.com>
2013-05-16 18:54   ` Alejandro Brust <alejandrob@pasteleros.org.ar>
2013-05-16 19:25     ` Oscar Calderon <ocalderon@solucionesaplicativas.com>

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