Project

General

Profile

Resurrecting Ganglia after the novadaq-far-daqmon failure of Mar2016 » History » Version 2

« Previous - Version 2/3 (diff) - Next » - Current version
Susan Kasahara, 03/04/2016 08:58 PM


Resurrecting Ganglia after the novadaq-far-daqmon failure of Mar2016

(S.Kasahara, 3/4/2016)
novadaq-far-daqmon suffered disk failure and ganglia was moved to novadaq-far-farm-46
as a result to allow ganglia to run over the weekend.

  • ssh -X novadaq-far-farm-46 -l root
  • /usr/sbin/useradd ganglia
  • su ganglia
  • cd /home/ganglia/webdisplay
    (Confirmed that the NovaDAQMonitor package was installed here containing the ganglia display)
  • cd NovaDAQMonitor/web/Far
  • cp DCM/.htaccess .
  • exit
  • yum install rrdtool
  • yum install httpd
  • yum install php-mysql
  • yum install php-devel
  • yum install php-gd
  • yum install httpd mod_ssl
  • cd /var/www/html
  • ln -s /home/ganglia/webdisplay/NovaDAQMonitor/web/Far ganglia
  • ln -s /home/ganglia/webdisplay/NovaDAQMonitor/web/Far/DCM DCM
  • scp root@novadaq-far-daqmon:/var/www/html/index.html .
  • mkdir -p /usr/apache/auth
  • htpasswd -c /usr/apache/auth/.htpasswd nova
  • cd /etc/httpd/conf
    (edit httpd.conf to add:
    <Directory "/var/www/html/ganglia">
    AllowOverride AuthConfig
    </Directory>
    )
  • /etc/init.d/httpd restart
  • mkdir /etc/ganglia
  • cd /etc/ganglia
  • scp root@novadaq-far-daqmon:/etc/ganglia/gmetad.conf .
  • (edit gmetad.conf to replace daqmon with farm-46)
  • scp root@novadaq-far-daqmon:/etc/ganglia/gmetad_dcm.conf .
  • (edit gmetad_dcm.conf to replace daqmon with farm-46)
  • cd /var/lib
  • mkdir ganglia
  • cd ganglia
  • mkdir dwoo
  • mkdir conf
  • mkdir DCM
  • chown daemon *
  • chgrp daemon *
  • chmod g+w conf
  • chmod 777 dwoo
  • cd conf
  • scp root@novadaq-far-daqmon:/var/lib/ganglia/conf/*.json .
  • cd ../DCM
  • mkdir conf
  • mkdir dwoo
  • chown daemon *
  • chgrp daemon *
  • chmod g+w conf
  • chmod 777 dwoo
  • cd conf
  • scp root@novadaq-far-daqmon:/var/lib/ganglia/DCM/conf/*.json .
  • mkdir /ganglia/ganglia_database
    (copy recovered files from novadaq-far-datadisk-05:/data/novadaq-far-daqmon/ganglia-database)
  • chown -R nobody *
  • cd /etc/init.d
  • /etc/init.d/gmetad_dcm start
  • /etc/init.d/gmetad start
  1. The following has not been done yet:
    • /sbin/chkconfig --add gmetad #
    • /sbin/chkconfig --list gmetad
  2. (verify add successful) #
    • /sbin/chkconfig gmetad && echo "gmetad will be started on system start"
  3. (verifies gmetad will be started on system startup)