<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Cluster mode - Database is already locked by another NetXMS server instance]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have a problem with my NetXMS high availability solution. I have two nodes called server1 (172.16.103.16) and server2 (172.16.103.17) with pacemaker, corosync and DRBD. Database engine is PostgreSQL, with database on shared disk.</p>
<p dir="auto">When I destroy server1 (such as switching power off ), then the NetXMS on server2 does not start and writes into the log:</p>
<pre><code>[20-Nov-2012 17:49:16] Log file opened
[20-Nov-2012 17:49:16] Platform subagent "/opt/NetXMS/lib/libnsm_linux.so" successfully loaded
[20-Nov-2012 17:49:16] Database driver "/opt/NetXMS/lib/libnxddr_pgsql.so" loaded and initialized successfully
[20-Nov-2012 17:49:16] Database is already locked by another NetXMS server instance (IP address: 172.16.103.16, machine info: server1 Linux Release 2.6.34.7-0.7-xen)
</code></pre>
<p dir="auto">database contents:</p>
<pre><code>ServerID                          | 451B2B5D9290AB50                                    |          0 |                   1
DBLockPID                         | 8375                                                |          0 |                   0
DBLockInfo                        | server1 Linux Release 2.6.34.7-0.7-xen            |          0 |                   0
DBLockStatus                      | 172.16.103.16                                       |          0 |                   1
</code></pre>
<p dir="auto">Is there any solution other than "nxdbmgr check" before starting NetXMS on server2? Because this may cause some problem in my HA solution.</p>
<p dir="auto">Thanks,<br />
Hybo</p>
]]></description><link>https://forum.netxms.org/topic/2032/cluster-mode-database-is-already-locked-by-another-netxms-server-instance</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 18:39:41 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2032.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Nov 2012 10:50:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cluster mode - Database is already locked by another NetXMS server instance on Wed, 21 Nov 2012 14:02:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Currently there are no other solution then to run nxdbmgr before starting netxmsd. You can simplify it by adding -e command line argument to netxmsd - then netxmsd will call nxdbmgr on startup. I've created a feature request to address this problem more correctly: <a href="https://www.radensolutions.com/chiliproject/issues/185" rel="nofollow ugc">https://www.radensolutions.com/chiliproject/issues/185</a>. I will add additional command line argument to specify peer IP address - then if database locked by peer, server will check if it's alive, and if not, will automatically remove the lock.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/8970</link><guid isPermaLink="true">https://forum.netxms.org/post/8970</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 21 Nov 2012 14:02:37 GMT</pubDate></item></channel></rss>