Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-07-2008, 10:15 AM
danfan46@hotmail.com
 
Posts: n/a
Default db2 connect 4 minut delay after adding partitions

Hi!

I have a previous post on the subject that connect takes a long time.

I uninstalled db2 completely.
Installed V9.5
Installed fixpack 1
created das
created an instance
installed database sample.
Tested to connect to sample from DB2 CC - Worked OK
Stopped db2.
configured UDB to use Openssh following Liam Finnies step-by-step
guide
Updated db2nodes.cfg:
0 myhost 0
1 myhost 1
2 myhost 2
Started db2
tested "db2_all echo hi" and "db2_all db2_all echo hi" OK
Tried to connect to db SAMPLE .....................
alas, a 4 minute delay from DB2CC or db2 client on other server.
Connection via jdbc (DBVisualizer) still works OK
Obviously, the partitioning feature or ssh has something to do with
the problem.

We have a similar configuration in our test environment but on V9.1
and it works OK.
/dg






Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-07-2008, 10:15 AM
Liam Finnie
 
Posts: n/a
Default Re: db2 connect 4 minut delay after adding partitions

On May 6, 7:45 am, danfa...@hotmail.com wrote:
> Hi!
>
> I have a previous post on the subject that connect takes a long time.
>
> I uninstalled db2 completely.
> Installed V9.5
> Installed fixpack 1
> created das
> created an instance
> installed database sample.
> Tested to connect to sample from DB2 CC - Worked OK
> Stopped db2.
> configured UDB to use Openssh following Liam Finnies step-by-step
> guide
> Updated db2nodes.cfg:
> 0 myhost 0
> 1 myhost 1
> 2 myhost 2
> Started db2
> tested "db2_all echo hi" and "db2_all db2_all echo hi" OK
> Tried to connect to db SAMPLE .....................
> alas, a 4 minute delay from DB2CC or db2 client on other server.
> Connection via jdbc (DBVisualizer) still works OK
> Obviously, the partitioning feature or ssh has something to do with
> the problem.
>
> We have a similar configuration in our test environment but on V9.1
> and it works OK.
> /dg


Hello,

I can't say where the delay is coming from.... but I can say that it's
not from configuring the server to use ssh. Configuring the server to
use ssh (via DB2RSHCMD=/usr/bin/ssh) only affects db2start/db2stop
processing (and commands invoked by db2_all/rah). After that point,
FCM is used to communicate between the different database partitions.
So, connecting to a database will not involve ssh (at least on the
server), so the delay must be coming from somewhere else.

Do you see the same delay if you explicitly select a partition to
connect to? i.e. 'export DB2NODE=0 ; db2 connect to SAMPLE'? What if
you replace 'myhost' in your db2nodes.cfg with the fully-qualified
domain name?

Cheers,
Liam.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-07-2008, 10:15 AM
danfan46@hotmail.com
 
Posts: n/a
Default Re: db2 connect 4 minut delay after adding partitions

On May 6, 2:43*pm, Liam Finnie <lfin...@ca.ibm.com> wrote:
> On May 6, 7:45 am, danfa...@hotmail.com wrote:
>
>
>
>
>
> > Hi!

>
> > I have a previous post on the subject that connect takes a long time.

>
> > I uninstalled db2 completely.
> > Installed V9.5
> > Installed fixpack 1
> > created das
> > created an instance
> > installed database sample.
> > Tested to connect to sample from DB2 CC - Worked OK
> > Stopped db2.
> > configured UDB to use Openssh following Liam Finnies step-by-step
> > guide
> > Updated db2nodes.cfg:
> > 0 myhost 0
> > 1 myhost 1
> > 2 myhost 2
> > Started db2
> > tested "db2_all *echo hi" *and "db2_all *db2_all echo hi" * *OK
> > Tried to connect to db SAMPLE .....................
> > alas, a *4 minute delay from DB2CC or db2 client on other server.
> > Connection via jdbc (DBVisualizer) *still works OK
> > Obviously, the partitioning feature or ssh has something to do with
> > the problem.

>
> > We have a similar configuration in our test environment but on V9.1
> > and it works OK.
> > /dg

>
> Hello,
>
> I can't say where the delay is coming from.... but I can say that it's
> not from configuring the server to use ssh. *Configuring the server to
> use ssh (via DB2RSHCMD=/usr/bin/ssh) only affects db2start/db2stop
> processing (and commands invoked by db2_all/rah). *After that point,
> FCM is used to communicate between the different database partitions.
> So, connecting to a database will not involve ssh (at least on the
> server), so the delay must be coming from somewhere else.
>
> Do you see the same delay if you explicitly select a partition to
> connect to? *i.e. 'export DB2NODE=0 ; db2 connect to SAMPLE'? *What if
> you replace 'myhost' in your db2nodes.cfg with the fully-qualified
> domain name?
>
> Cheers,
> Liam.- Hide quoted text -
>
> - Show quoted text -


Thanks Liam, but none of the suggested changes made any difference.
I will open a PMR
/dg
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-10-2008, 02:02 PM
Lew
 
Posts: n/a
Default Re: db2 connect 4 minut delay after adding partitions

Does it also take that long to activate the database? By changing it
to a multipartition database you have increased the memory load on
your server. It is possible that you have overallocated memory on the
machine causing os paging as the database becomes active

On May 7, 1:35 am, danfa...@hotmail.com wrote:
> On May 6, 2:43 pm, Liam Finnie <lfin...@ca.ibm.com> wrote:
>
>
>
> > On May 6, 7:45 am, danfa...@hotmail.com wrote:

>
> > > Hi!

>
> > > I have a previous post on the subject that connect takes a long time.

>
> > > I uninstalled db2 completely.
> > > Installed V9.5
> > > Installed fixpack 1
> > > created das
> > > created an instance
> > > installed database sample.
> > > Tested to connect to sample from DB2 CC - Worked OK
> > > Stopped db2.
> > > configured UDB to use Openssh following Liam Finnies step-by-step
> > > guide
> > > Updated db2nodes.cfg:
> > > 0 myhost 0
> > > 1 myhost 1
> > > 2 myhost 2
> > > Started db2
> > > tested "db2_all echo hi" and "db2_all db2_all echo hi" OK
> > > Tried to connect to db SAMPLE .....................
> > > alas, a 4 minute delay from DB2CC or db2 client on other server.
> > > Connection via jdbc (DBVisualizer) still works OK
> > > Obviously, the partitioning feature or ssh has something to do with
> > > the problem.

>
> > > We have a similar configuration in our test environment but on V9.1
> > > and it works OK.
> > > /dg

>
> > Hello,

>
> > I can't say where the delay is coming from.... but I can say that it's
> > not from configuring the server to use ssh. Configuring the server to
> > use ssh (via DB2RSHCMD=/usr/bin/ssh) only affects db2start/db2stop
> > processing (and commands invoked by db2_all/rah). After that point,
> > FCM is used to communicate between the different database partitions.
> > So, connecting to a database will not involve ssh (at least on the
> > server), so the delay must be coming from somewhere else.

>
> > Do you see the same delay if you explicitly select a partition to
> > connect to? i.e. 'export DB2NODE=0 ; db2 connect to SAMPLE'? What if
> > you replace 'myhost' in your db2nodes.cfg with the fully-qualified
> > domain name?

>
> > Cheers,
> > Liam.- Hide quoted text -

>
> > - Show quoted text -

>
> Thanks Liam, but none of the suggested changes made any difference.
> I will open a PMR
> /dg


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-10-2008, 02:02 PM
danfan46@hotmail.com
 
Posts: n/a
Default Re: db2 connect 4 minut delay after adding partitions

On May 8, 12:48*pm, Lew <seth...@yahoo.com> wrote:
> Does it also take that long to activate the database? *By changing it
> to a multipartition database you have increased the memory load on
> your server. *It is possible that you have overallocated memory on the
> machine causing os paging as the database becomes active
>
> On May 7, 1:35 am, danfa...@hotmail.com wrote:
>
>
>
> > On May 6, 2:43 pm, Liam Finnie <lfin...@ca.ibm.com> wrote:

>
> > > On May 6, 7:45 am, danfa...@hotmail.com wrote:

>
> > > > Hi!

>
> > > > I have a previous post on the subject that connect takes a long time..

>
> > > > I uninstalled db2 completely.
> > > > Installed V9.5
> > > > Installed fixpack 1
> > > > created das
> > > > created an instance
> > > > installed database sample.
> > > > Tested to connect to sample from DB2 CC - Worked OK
> > > > Stopped db2.
> > > > configured UDB to use Openssh following Liam Finnies step-by-step
> > > > guide
> > > > Updated db2nodes.cfg:
> > > > 0 myhost 0
> > > > 1 myhost 1
> > > > 2 myhost 2
> > > > Started db2
> > > > tested "db2_all *echo hi" *and "db2_all *db2_all echo hi" * *OK
> > > > Tried to connect to db SAMPLE .....................
> > > > alas, a *4 minute delay from DB2CC or db2 client on other server.
> > > > Connection via jdbc (DBVisualizer) *still works OK
> > > > Obviously, the partitioning feature or ssh has something to do with
> > > > the problem.

>
> > > > We have a similar configuration in our test environment but on V9.1
> > > > and it works OK.
> > > > /dg

>
> > > Hello,

>
> > > I can't say where the delay is coming from.... but I can say that it's
> > > not from configuring the server to use ssh. *Configuring the server to
> > > use ssh (via DB2RSHCMD=/usr/bin/ssh) only affects db2start/db2stop
> > > processing (and commands invoked by db2_all/rah). *After that point,
> > > FCM is used to communicate between the different database partitions.
> > > So, connecting to a database will not involve ssh (at least on the
> > > server), so the delay must be coming from somewhere else.

>
> > > Do you see the same delay if you explicitly select a partition to
> > > connect to? *i.e. 'export DB2NODE=0 ; db2 connect to SAMPLE'? *What if
> > > you replace 'myhost' in your db2nodes.cfg with the fully-qualified
> > > domain name?

>
> > > Cheers,
> > > Liam.- Hide quoted text -

>
> > > - Show quoted text -

>
> > Thanks Liam, but none of the suggested changes made any difference.
> > I will open a PMR
> > /dg- Hide quoted text -

>
> - Show quoted text -


Everything works OK locally on the server.
Note also that connect with jdbc is fast.
Even though an initial connect has been made in DB2CC (after a 4
minute delay),
DB2CC performs a new authentication every now and then and each time
it takes 4 minutes.
/dg
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-10-2008, 02:02 PM
Lew
 
Posts: n/a
Default Re: db2 connect 4 minut delay after adding partitions

Another thing you might check is make sure that the database is
configured explicitly to authentication server on the client. I
didn't think this was an issue any more but maybe it will help.


On May 8, 7:08 am, danfa...@hotmail.com wrote:
> On May 8, 12:48 pm, Lew <seth...@yahoo.com> wrote:
>
>
>
> > Does it also take that long to activate the database? By changing it
> > to a multipartition database you have increased the memory load on
> > your server. It is possible that you have overallocated memory on the
> > machine causing os paging as the database becomes active

>
> > On May 7, 1:35 am, danfa...@hotmail.com wrote:

>
> > > On May 6, 2:43 pm, Liam Finnie <lfin...@ca.ibm.com> wrote:

>
> > > > On May 6, 7:45 am, danfa...@hotmail.com wrote:

>
> > > > > Hi!

>
> > > > > I have a previous post on the subject that connect takes a long time.

>
> > > > > I uninstalled db2 completely.
> > > > > Installed V9.5
> > > > > Installed fixpack 1
> > > > > created das
> > > > > created an instance
> > > > > installed database sample.
> > > > > Tested to connect to sample from DB2 CC - Worked OK
> > > > > Stopped db2.
> > > > > configured UDB to use Openssh following Liam Finnies step-by-step
> > > > > guide
> > > > > Updated db2nodes.cfg:
> > > > > 0 myhost 0
> > > > > 1 myhost 1
> > > > > 2 myhost 2
> > > > > Started db2
> > > > > tested "db2_all echo hi" and "db2_all db2_all echo hi" OK
> > > > > Tried to connect to db SAMPLE .....................
> > > > > alas, a 4 minute delay from DB2CC or db2 client on other server.
> > > > > Connection via jdbc (DBVisualizer) still works OK
> > > > > Obviously, the partitioning feature or ssh has something to do with
> > > > > the problem.

>
> > > > > We have a similar configuration in our test environment but on V9.1
> > > > > and it works OK.
> > > > > /dg

>
> > > > Hello,

>
> > > > I can't say where the delay is coming from.... but I can say that it's
> > > > not from configuring the server to use ssh. Configuring the server to
> > > > use ssh (via DB2RSHCMD=/usr/bin/ssh) only affects db2start/db2stop
> > > > processing (and commands invoked by db2_all/rah). After that point,
> > > > FCM is used to communicate between the different database partitions.
> > > > So, connecting to a database will not involve ssh (at least on the
> > > > server), so the delay must be coming from somewhere else.

>
> > > > Do you see the same delay if you explicitly select a partition to
> > > > connect to? i.e. 'export DB2NODE=0 ; db2 connect to SAMPLE'? What if
> > > > you replace 'myhost' in your db2nodes.cfg with the fully-qualified
> > > > domain name?

>
> > > > Cheers,
> > > > Liam.- Hide quoted text -

>
> > > > - Show quoted text -

>
> > > Thanks Liam, but none of the suggested changes made any difference.
> > > I will open a PMR
> > > /dg- Hide quoted text -

>
> > - Show quoted text -

>
> Everything works OK locally on the server.
> Note also that connect with jdbc is fast.
> Even though an initial connect has been made in DB2CC (after a 4
> minute delay),
> DB2CC performs a new authentication every now and then and each time
> it takes 4 minutes.
> /dg


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62