ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Andrew Kornilov <akornilov@ipxp.net>
To: sysadmins@lists.altlinux.org
Subject: [Sysadmins] mysql shutdown
Date: Wed, 26 Mar 2008 02:14:50 +0200
Message-ID: <m38x06tk79.fsf@roothome.dp.ua.ipxp.net> (raw)

Всем привет.

Такой вопрос: действительно ли разрешено завершать mysqld с помощью kill -TERM?
После такого завершения он всегда пишет такое:
080326  0:00:33 [Note] /usr/sbin/mysqld: Normal shutdown

InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
080326  0:00:41  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Last MySQL binlog file position 0 698641757, file name /log/mysql.000986
080326  0:00:43  InnoDB: Started; log sequence number 5 1682263770
080326  0:00:46 [Note] /usr/sbin/mysqld: ready for connections.

То есть пишет, что normal shutdown, но при старте у него он уже не normal.
Насколько я помню, если останавливать его с помощью mysqladmin shutdown, то он
действительно корректно всё там завершает у себя и при запуске не ругается.
И это ведь у меня еще стоит innodb_fast_shutdown=0

Не можем ли мы тут поймать момент, когда база разрушится? Поиск в пока
ничего не принес внятного. В том же RHEL тоже kill-ом завершается. В сборке
MySQL для RHEL тоже:
  'stop')
    # Stop daemon. We use a signal here to avoid having to know the
    # root password.
Вообще это и правильно, UNIX way. Но не нравится мне эта ругань :)

-- 



             reply	other threads:[~2008-03-26  0:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-26  0:14 Andrew Kornilov [this message]
2008-03-26  4:54 ` sh0ckfile
2008-03-26  5:48   ` Eugene Prokopiev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m38x06tk79.fsf@roothome.dp.ua.ipxp.net \
    --to=akornilov@ipxp.net \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git