[FUG-BR] Servidor travando

Marcelo Soares da Costa unixmafia em yahoo.com.br
Quinta Setembro 27 18:06:12 BRT 2007


> Trying to mount root from ufs:/dev/aacd0s1a
> WARNING: / was not properly dismounted
> WARNING: /home was not properly dismounted
> WARNING: /reserva was not properly dismounted
> WARNING: /tmp was not properly dismounted
> WARNING: /usr was not properly dismounted
> WARNING: /var was not properly dismounted
> WARNING: /bkp was not properly dismounted
> 
> No messages, após isso, ele mostra o seguinte:
> Sep 27 07:41:42 seisrv06 named[687]: starting BIND 9.3.3 -c
> /etc/namedb/named.conf -t /var/chroot/named -u bind
> Sep 27 07:41:44 seisrv06 kernel: em0: link state changed to UP
> Sep 27 07:41:45 seisrv06 kernel: arp: 200.103.16.11 moved from
> 00:0e:0c:08:ab:c3 to 00:0e:0c:08:ab:c2 on em0
> Sep 27 07:42:12 seisrv06 kernel: arp: 200.103.16.11 moved from
> 00:0e:0c:08:ab:c2 to 00:0e:0c:08:ab:c3 on em0
> Sep 27 07:49:11 seisrv06 fsck: /dev/ad2s1d: 254165 files, 38214303
> used, 80041566 free (74534 frags, 9995879 blocks, 0.1% fragmentation)
> Sep 27 07:57:01 seisrv06 fsck: /dev/aacd1s1d: 267916 files, 12833480
> used, 56682382 free (127126 frags, 7069407 blocks, 0.2% fragmentation)
> Sep 27 07:57:16 seisrv06 fsck: /dev/aacd0s1g: 3 files, 2 used, 9872383
> free (23 frags, 1234045 blocks, 0.0% fragmentation)
> Sep 27 07:57:21 seisrv06 fsck: /dev/aacd0s1d: 24 files, 6 used, 506481
> free (49 frags, 63304 blocks, 0.0% fragmentation)
> Sep 27 07:59:02 seisrv06 fsck: /dev/aacd0s1e: 186988 files, 3961386
> used, 1115693 free (37389 frags, 134788 blocks, 0.7% fragmentation)
> Sep 27 07:59:36 seisrv06 fsck: /dev/aacd0s1f: UNREF FILE I=1601862
> OWNER=mysql MODE=100600
> Sep 27 07:59:36 seisrv06 fsck: /dev/aacd0s1f: SIZE=0 MTIME=Sep 26
> 16:53 2007  (CLEARED)
> Sep 27 07:59:36 seisrv06 fsck: /dev/aacd0s1f: UNREF FILE I=1601863
> OWNER=mysql MODE=100600
> Sep 27 07:59:36 seisrv06 fsck: /dev/aacd0s1f: SIZE=0 MTIME=Sep 26
> 16:53 2007  (CLEARED)
> Sep 27 07:59:36 seisrv06 fsck: /dev/aacd0s1f: UNREF FILE I=1601865
> OWNER=mysql MODE=100600
> Sep 27 07:59:36 seisrv06 fsck: /dev/aacd0s1f: SIZE=0 MTIME=Sep 26
> 16:53 2007  (CLEARED)
> Sep 27 07:59:36 seisrv06 fsck: /dev/aacd0s1f: UNREF FILE I=1601881
> OWNER=mysql MODE=100600
> Sep 27 07:59:36 seisrv06 fsck: /dev/aacd0s1f: SIZE=0 MTIME=Sep 26
> 16:53 2007  (CLEARED)
> Sep 27 07:59:36 seisrv06 fsck: /dev/aacd0s1f: UNREF FILE I=1601887
> OWNER=mysql MODE=100600
> Sep 27 07:59:36 seisrv06 fsck: /dev/aacd0s1f: SIZE=0 MTIME=Sep 26
> 16:53 2007  (CLEARED)
> Sep 27 07:59:36 seisrv06 fsck: /dev/aacd0s1f: UNREF FILE I=2355215
> OWNER=root MODE=140666
> Sep 27 07:59:36 seisrv06 fsck: /dev/aacd0s1f: SIZE=0 MTIME=Sep 25
> 07:46 2007  (CLEARED)
> Sep 27 07:59:36 seisrv06 fsck: /dev/aacd0s1f: Reclaimed: 0
> directories, 6 files, -8 fragments
> Sep 27 07:59:36 seisrv06 fsck: /dev/aacd0s1f: 31955 files, 1071700
> used, 11621066 free (14874 frags, 1450774 blocks, 0.1% fragmentation)
> 

Vendo isso me lembrei que ja aconteceu comigo a um bom tempo atraz , uns
3 anos , que um servidor bootava do nada e foi resolvido dando boot
single o rodando duas (2) vezes fsck -y , era uma inconsistencia de
filesystem, ja vi tb um arquivo de log corrompido que dizia ter 20Gb
quanto tinhas apenas alguns kb , a solução foi remover ele e criar um
novo com touch , ou ainda /dev/null > nomedoaquivocomrrompido , de uma
examinada nos seus arquivos de log, a causa foi uma queda de energia bem
qdo o dito cujo estava sendo gravado.

Se isso não for suficiente MOVA os arquivos de log e bin do
mysql,mysql-bin.000001 .... , inclusive o index do mysql,
mysql-bin.index , para um diretorio de backup, não os delete pois pode
precisar deles para restaurar o seu banco caso não tenha um backup
atualizado, cuidada para NÂO remover arquivos ib* que são as tabelas
inoodb

[]'s



Mais detalhes sobre a lista de discussão freebsd