-----Ursprüngliche Nachricht----- Von: "Dejan Muhamedagic" <[email protected]> Gesendet: Nov 2, 2010 12:50:55 PM An: "High-Availability Linux Development List" <[email protected]> Betreff: Re: [Linux-ha-dev] Update of DB2 resource
>Hi, > >On Mon, Nov 01, 2010 at 11:52:33AM +0100, [email protected] wrote: >> Hi, >> I would like to submit an upgrade of the db2 resource for review. > >Can you please split the patch into two (or more) each of which >would contain a single functional change. > I will send this in 3 patches (1 simple bugfix, stop logic, multipartition) >> 1) db2stop logic >> If db2stop succeeds there is no need to call db2_kill. If the >> database has some problems a typical behaviour is that db2stop >> hangs. The resulution then is db2_kill to bring down the system >> the hard way. db2_kill generally succeeds. Therefore db2stop is >> spawned in a subprocess and monitored. If it succeeds OK, in >> case of failure or timeout db2_kill is invoked. > >OK. Are there any bad effects from running db2_kill anyway? If >not, perhaps we should just keep it. Or are you absolutely sure >that all processes would terminate if db2stop succeeds? In a multipartition environment even db2nkill N kills *all* partitions on the node at issue. From our experience a successfull db2stop removes all server processes. If a client is connected on the same machine some client background processes (db2bp) may still hang around but they are not harmful and will eventually time out. > >> 2) make the resource agent multipartition aware >> Replace calls to db2start/db2stop with the partition specific >> versions and introduce instance parameter dbpartitionnum >> defaulting to 0 if not specified. Each partion should then be >> configured as separate instance. > >What is the difference between "db2 db2start" and db2start (as a >program)? Are there any docs describing the difference? db2start is a shorcut for 'db2 db2start'. See http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=/com.ibm.db2.luw.admin.cmd.doc/doc/r0001982.html > >Cheers, > >Dejan > Holger ___________________________________________________________ WEB.DE DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit gratis Notebook-Flat! http://produkte.web.de/go/DSL_Doppel_Flatrate/2 _______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
