IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 16 and Version 17 of PS1_IPP_Czarlog_20190510


Ignore:
Timestamp:
May 14, 2019, 11:08:05 AM (7 years ago)
Author:
tdeboer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PS1_IPP_Czarlog_20190510

    v16 v17  
    291291}}}
    292292
     293 ------------------------------------------------------
     294
     295 Then we noticed the replication server is also down. the sql slave is not quite working right.
     296 On ippdb05, log into mysql as root:
     297{{{
     298mysql -ulocalhost -uroot -pX
     299show slave status\G
     300}}}
     301 then, inside mysql do:
     302{{{
     303STOP SLAVE; SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1; START SLAVE;
     304}}}
     305 That set the replication back up, and seconds behind master started to tick down.
     306
     307 ------------------------
     308
     309 On ippdb08 (the primary) go into mysql as root as well, and do:
     310{{{
     311show processlist;
     312}}}
     313 which shows:
     314{{{
     315| 1636903827 | repl_gpc1 | ippdb05.ifa.hawaii.edu:50012 | NULL   | Binlog Dump |  197 | Has sent all binlog to slave; waiting for binlog to be updated | NULL 
     316}}}
     317 So, it is probably back up to date
     318
     319 -------------------
     320
     321 It seems there is also a problem on ipp116. The replication slave there seems stuck, and does not respond to a stop slave; inside mysql.
     322 shut it down externally, using:
     323{{{
     324mysqladmin -uroot -pxxx shutdown now
     325}}}
     326 The mysql.err log shows a normal shutdown, which is good. Checking ps aux | grep mysql shows that the mysql process is still running. IPPmonitor is now unstuck, but shows that ipp116 has a DB connection error.  Trying to see how to shut down the process without killing it hard.
     327{{{
     328sudo /etc/init.d/mysql stop
     329 * WARNING:  mysql has not yet been started.
     330sudo /etc/init.d/mysql zap
     331 * Manually resetting mysql to stopped state.
     332}}}
     333 It is still there!
     334
     335 Try this:
     336{{{
     337sudo mysqladmin -uroot -pXXX shutdown now
     338mysqladmin: connect to server at 'localhost' failed
     339error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
     340Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
     341}}}
     342 It has not updated any files in two hours, since the crash. So, it is likely now a zombie process. Mark tried to kill it nicely and then killed it hard after. Then, we started it anew, using:
     343{{{
     344sudo /etc/init.d/mysql start
     345}}}
     346 That worked, and the error log looks good. Now we need to restart the replication on this machine.
     347{{{
     348mysql -ulocalhost -uroot -pXXX
     349show slave status\G
     350
     351STOP SLAVE; SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1; START SLAVE;
     352}}}
     353
     354 Keep an eye on the seconds behind master, using: show slave status\G
     355 After a good 20 minutes, both of them had caught up to the master and things were working well again.
     356
    293357
    294358 * MEH: starting some older diff cleanup now to help free up space on lower data nodes
    295359
    296360=== Tuesday : 2019.05.14 ===
     361 * TdB: Haydn wants to redistribute the x nodes ippx001-044 to get better temperature behaviour inside the cabinet (they are all adjacent at the top of a half-filled cabinet). remove them from processing:
     362 go to ~ippps2/stdscience and in to pantasks_client
     363{{{
     364controller status
     365
     366There are 6 sets of them
     367controller host off ippx001
     368controller host off ippx002
     369controller host off ippx003
     370controller host off ippx004
     371controller host off ippx005
     372controller host off ippx006
     373controller host off ippx007
     374controller host off ippx008
     375controller host off ippx009
     376controller host off ippx010
     377controller host off ippx011
     378controller host off ippx012
     379controller host off ippx013
     380controller host off ippx014
     381controller host off ippx015
     382controller host off ippx016
     383controller host off ippx017
     384controller host off ippx018
     385controller host off ippx019
     386controller host off ippx020
     387controller host off ippx021
     388controller host off ippx022
     389controller host off ippx023
     390controller host off ippx024
     391controller host off ippx025
     392controller host off ippx026
     393controller host off ippx027
     394controller host off ippx028
     395controller host off ippx029
     396controller host off ippx030
     397controller host off ippx031
     398controller host off ippx032
     399controller host off ippx033
     400controller host off ippx034
     401controller host off ippx035
     402controller host off ippx036
     403controller host off ippx037
     404controller host off ippx038
     405controller host off ippx039
     406controller host off ippx040
     407controller host off ippx041
     408controller host off ippx042
     409controller host off ippx043
     410controller host off ippx044
     411}}}
    297412
    298413=== Wednesday : 2019.05.15 ===