Actions
Anomalie #1367
ferméMysql - segfault
Début:
29/09/2013
Echéance:
29/09/2013
% réalisé:
100%
Temps estimé:
Difficulté:
3 Moyen
Description
Sur le serveur destiné à drupal7, qui vient d'être mis en place avec le ticket #1349, mysql plante à chaque interaction.
Plantage qui intervient dès la première commande lancée en ligne de commande, type "\h"
.
Dans les logs il est question de "drupal7 kernel: [14915.044135] mysql[9234] segfault
"
Actions
#1
Mis à jour par Loïc Dachary il y a environ 11 ans
- Echéance mis à 29/09/2013
- Catégorie mis à Task
- Assigné à mis à Loïc Dachary
- Version cible mis à Octobre 2013
Actions
#2
Mis à jour par Loïc Dachary il y a environ 11 ans
- Statut changé de Nouveau à Résolu
Corrupted mysql binary. A first but it's also the first cloud-init powered ( hence resize2fs on / live at boot time ) image. Repaired and keep track of the incident waiting for other clues of corruption in similar situations.
reboot root@drupal7:~# mysql -h -bash: /usr/bin/mysql: cannot execute binary file root@drupal7:~# file /usr/bin/mysql /usr/bin/mysql: data # apt-get install --reinstall mysql-client-5.5 root@drupal7:~# mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 17 Server version: 5.5.31-0+wheezy1 (Debian) Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> \h For information about MySQL products and services, visit: http://www.mysql.com/ ...
Halt the vm ( which kills the kvm ) and fsck from outside to make sure.
root@bm0002:~# qemu-nbd --port 20000 /var/lib/nova/instances/instance-00000530/disk root@bm0002:~# nbd-client localhost 20000 /dev/nbd0 Negotiation: ..size = 10240MB bs=1024, sz=10737418240 bytes root@bm0002:~# kpartx -av /dev/nbd0 add map nbd0p1 (253:3): 0 20965600 linear /dev/nbd0 2048 root@bm0002:~# fsck /dev/mapper/nbd0p1 fsck from util-linux 2.20.1 e2fsck 1.42.5 (29-Jul-2012) /dev/mapper/nbd0p1: clean, 50235/654080 files, 358297/2620700 blocks root@bm0002:~# fsck -f /dev/mapper/nbd0p1 fsck from util-linux 2.20.1 e2fsck 1.42.5 (29-Jul-2012) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/mapper/nbd0p1: 50235/654080 files (0.2% non-contiguous), 358297/2620700 blocks root@bm0002:~# kpartx -dv /dev/nbd0 del devmap : nbd0p1 root@bm0002:~# nbd-client -d /dev/nbd0
and reboot from the controller
nova reboot drupal7
Actions