<br><br><div class="gmail_quote">On Mon, Jul 26, 2010 at 10:56 PM, Arun Kp <span dir="ltr"><<a href="mailto:arunkp1987@gmail.com">arunkp1987@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>When the cluster try to relocate (Stopping in the Active node and starting in the Passive node) the Postgresql service  works fine if there is no client connection .But when one client is connected it will take 5 minutes for relocating.Here we have given 5 minutes as shutdown wait time in cluster.Some times relocating getting failed due to stopping of postgresql server taking too much time     <br>

We have given the following options for postgresql in the cluster<br><br>Name :DB-igvtdc<br>Configdir:/Storage   where our data directory resides(In SAN).<br>Postmaster options : -p 5433 -h 172.31.1.20 -m <br>shutdown wait time :300 s<br>
</div></blockquote><div><br></div><div>In your init script (/etc/init.d/postgresql or similar) check what is the actual command that is used to shut down the database. My guess is that it's something like</div><div><br>
</div><div>pg_ctl -D /path/to/database stop</div><div><br></div><div>Then just add switch "-m immediate" so that the database is not waiting for all clients to disconnect before shutting done. More information on pg_ctl syntax: <a href="http://www.postgresql.org/docs/8.4/static/app-pg-ctl.html">http://www.postgresql.org/docs/8.4/static/app-pg-ctl.html</a></div>
<div><br></div><div>Regards</div><div><br></div><div>Mikko</div></div>