| | 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 | {{{ |
| | 298 | mysql -ulocalhost -uroot -pX |
| | 299 | show slave status\G |
| | 300 | }}} |
| | 301 | then, inside mysql do: |
| | 302 | {{{ |
| | 303 | STOP 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 | {{{ |
| | 311 | show 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 | {{{ |
| | 324 | mysqladmin -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 | {{{ |
| | 328 | sudo /etc/init.d/mysql stop |
| | 329 | * WARNING: mysql has not yet been started. |
| | 330 | sudo /etc/init.d/mysql zap |
| | 331 | * Manually resetting mysql to stopped state. |
| | 332 | }}} |
| | 333 | It is still there! |
| | 334 | |
| | 335 | Try this: |
| | 336 | {{{ |
| | 337 | sudo mysqladmin -uroot -pXXX shutdown now |
| | 338 | mysqladmin: connect to server at 'localhost' failed |
| | 339 | error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' |
| | 340 | Check 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 | {{{ |
| | 344 | sudo /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 | {{{ |
| | 348 | mysql -ulocalhost -uroot -pXXX |
| | 349 | show slave status\G |
| | 350 | |
| | 351 | STOP 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 | |
| | 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 | {{{ |
| | 364 | controller status |
| | 365 | |
| | 366 | There are 6 sets of them |
| | 367 | controller host off ippx001 |
| | 368 | controller host off ippx002 |
| | 369 | controller host off ippx003 |
| | 370 | controller host off ippx004 |
| | 371 | controller host off ippx005 |
| | 372 | controller host off ippx006 |
| | 373 | controller host off ippx007 |
| | 374 | controller host off ippx008 |
| | 375 | controller host off ippx009 |
| | 376 | controller host off ippx010 |
| | 377 | controller host off ippx011 |
| | 378 | controller host off ippx012 |
| | 379 | controller host off ippx013 |
| | 380 | controller host off ippx014 |
| | 381 | controller host off ippx015 |
| | 382 | controller host off ippx016 |
| | 383 | controller host off ippx017 |
| | 384 | controller host off ippx018 |
| | 385 | controller host off ippx019 |
| | 386 | controller host off ippx020 |
| | 387 | controller host off ippx021 |
| | 388 | controller host off ippx022 |
| | 389 | controller host off ippx023 |
| | 390 | controller host off ippx024 |
| | 391 | controller host off ippx025 |
| | 392 | controller host off ippx026 |
| | 393 | controller host off ippx027 |
| | 394 | controller host off ippx028 |
| | 395 | controller host off ippx029 |
| | 396 | controller host off ippx030 |
| | 397 | controller host off ippx031 |
| | 398 | controller host off ippx032 |
| | 399 | controller host off ippx033 |
| | 400 | controller host off ippx034 |
| | 401 | controller host off ippx035 |
| | 402 | controller host off ippx036 |
| | 403 | controller host off ippx037 |
| | 404 | controller host off ippx038 |
| | 405 | controller host off ippx039 |
| | 406 | controller host off ippx040 |
| | 407 | controller host off ippx041 |
| | 408 | controller host off ippx042 |
| | 409 | controller host off ippx043 |
| | 410 | controller host off ippx044 |
| | 411 | }}} |