Record of Deploying NeokylinHA6.8 lufy September 08, 2017 <p>OS: Neokylin Linux Advanced Server 6.8 build06 x86_64<br />Machine: virtual machine on 32.179 with conditions:<br />CPU: 1<br />Memory: 1024MB<br />Disk: 25GB<br />OS install options:<br />Install option: <br />Partitions: /boot(ext4 200MB) + /(ext4 20GB) + swap(2048MB)<br />HA Software and Required Components: <br />Version: NeokylinHA_V6_8<br />Install: <span>./install.gui</span><br />Database: postgresql-server-8.4.20-6.el6.x86_64 (postgresql9.3)<br />(<span>yum install</span> <a href="https://download.postgresql.org/pub/repos/yum/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3%20%20-2.noarch.rpm" target="_blank">https://download.postgresql.org/pub/repos/yum/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3 </a><br /><a href="https://download.postgresql.org/pub/repos/yum/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3%20%20-2.noarch.rpm" target="_blank">-2.noarch.rpm</a>; <span>yum install postgresql-server</span>)<br />Python-devel: python-devel-2.6.6-64.el6.x86_64<br />Pymodule 1: psycopg2<br />(wget https://bootstrap.pypa.io/get-pip.py; python get-pip.py; pip install psycopg2)<br />Pymodule 2: reportlab<br />(pip install reportlab failed; wget <br />https://pypi.python.org/packages/94/8b/6c8c7d7b3ef91a44c21802c93baf258cf1f491836dbda1210edf8e0d66f3/reportlab- <br />2.6.tar.gz#md5=e5d27a24a2c8456b168913242aa1940f, python setup.py install )<br />then neokylinha-web could start. But web page still cannot access, the port 8100 isn't open.<br />Pymodule 3: pip install paste<br />then could access from browser http://<server-ip>:8000, but cannot add other server to master, tips: database <br />isn't initiate till now.<br /># service postgresql initdb<br />Then start postgresql, but when make some oprations such as add a noe, it pops database is not active.</p> <p>Check /var/log/messages, icinga: idomod: Still unable to connect to data sink. 0 items lost, 3237 queued <br />items to flush. Is ido2db running and processing data?<br />** When execute ido2db, pop error while loading shared libraries: libdbi.so.0, so install libdbd-devel:<br />** # yum install libdbd-devel</p> <p>Then service neokylinha-web status: CobraApi start failed; Ido2db PID not running. <br />1. The 1st problem is logged in /opt/cobra/cobra-api/cobraapi.log, shows no module named MySQLdb. Then <br />pip install mysqldb, with reply of "no version satisfies...". mysqldb has to be installed from source:<br /># wget <br />https://pypi.python.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python- <br />1.2.5.zip#md5=654f75b302db6ed8dc5a898c625e030c<br /># python setup.py install, pops EnvironmentError: mysql_config not found, <br /># yum install msyql-devel, then python setup.py install, passed.<br />Then restart the service, in /opt/cobra/cobra-api/cobraapi.log shows connecting refused, cannot <br />access port 5432, but 5432 is already open by checking netstat -nlp..</p> <p>Until now, I guess NeokylinHA 6.8 does't support postgresql 9.2, next I will try with postgresql 8.3.23<br /># wget https://ftp.postgresql.org/pub/source/v8.3.23/postgresql-8.3.23.tar.gz<br /># ./configure --bindir=/usr/local/bin/ --sbindir=/usr/local/sbin/ , pop error: readline library not found<br /># yum install readline-devel<br />After this, NeokylinHA cannot start up, say: Please ensure pgsql had been installed.</p> <p>I reinstalled postgresql 9.2(the real version is 8.4.20), then restart neokylinha-web, get -- CobraApi is running; Ido2db is not running but subsystem locked !!! I don't know why, but at least the web page doesn't pop "database not activate" any more, which the basic functions can be used normally.</p>
Comments (0)
Leave a Comment
No comments yet. Be the first to comment!