innodb_blocking_buffer_pool_restore cause startup return fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
High
|
Tomislav Plavcic | ||
5.1 |
Fix Released
|
High
|
Tomislav Plavcic | ||
5.5 |
Fix Released
|
High
|
Tomislav Plavcic | ||
5.6 |
Fix Released
|
High
|
Tomislav Plavcic |
Bug Description
This happen when I set innodb_
I have attached the log below to show what is happening. First section of log is to show service mysql start return OK when i have innodb_
Second section is happening when innodb_
System:
* Ubuntu 12.04
DB:
* Server version: 5.5.28-29.1-log Percona Server (GPL), Release 29.1
root@db-
* Starting MySQL (Percona Server) database server mysqld [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing tables.
121029 16:26:28 mysqld_safe mysqld from pid file /var/run/
121029 16:26:32 mysqld_safe Starting mysqld daemon with databases from /mnt/mysql/
121029 16:26:32 [Warning] options --log-slow-
121029 16:26:32 [Note] Plugin 'FEDERATED' is disabled.
121029 16:26:32 InnoDB: The InnoDB memory heap is disabled
121029 16:26:32 InnoDB: Mutexes and rw_locks use GCC atomic builtins
121029 16:26:32 InnoDB: Compressed tables use zlib 1.2.3
121029 16:26:32 InnoDB: Using Linux native AIO
121029 16:26:32 InnoDB: Initializing buffer pool, size = 58.0G
121029 16:26:38 InnoDB: Completed initialization of buffer pool
121029 16:26:38 InnoDB: highest supported file format is Barracuda.
121029 16:26:43 InnoDB: Restoring buffer pool pages from ib_lru_dump
121029 16:26:43 InnoDB: Waiting for the background threads to start
121029 16:26:44 Percona XtraDB (http://
121029 16:26:45 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
121029 16:26:45 [Note] - '0.0.0.0' resolves to '0.0.0.0';
121029 16:26:45 [Note] Server socket created on IP: '0.0.0.0'.
121029 16:26:45 [Note] Event Scheduler: Loaded 0 events
121029 16:26:45 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.28-29.1-log' socket: '/var/run/
121029 16:27:08 [Note] /usr/sbin/mysqld: Normal shutdown
121029 16:27:08 [Note] Event Scheduler: Purging the queue. 0 events
121029 16:27:10 InnoDB: Starting shutdown...
InnoDB: stopped loading lru pages because of server shutdown
121029 16:27:10 InnoDB: Completed reading buffer pool pages (requested: 41839, read: 41417)
121029 16:27:18 InnoDB: Shutdown completed; log sequence number 12512420996260
121029 16:27:18 [Note] /usr/sbin/mysqld: Shutdown complete
root@db-
* Starting MySQL (Percona Server) database server mysqld [fail]
121029 16:27:19 mysqld_safe mysqld from pid file /var/run/
121029 16:27:45 mysqld_safe Starting mysqld daemon with databases from /mnt/mysql/
121029 16:27:45 [Warning] options --log-slow-
121029 16:27:45 [Note] Plugin 'FEDERATED' is disabled.
121029 16:27:45 InnoDB: The InnoDB memory heap is disabled
121029 16:27:45 InnoDB: Mutexes and rw_locks use GCC atomic builtins
121029 16:27:45 InnoDB: Compressed tables use zlib 1.2.3
121029 16:27:45 InnoDB: Using Linux native AIO
121029 16:27:45 InnoDB: Initializing buffer pool, size = 58.0G
121029 16:27:51 InnoDB: Completed initialization of buffer pool
121029 16:27:51 InnoDB: highest supported file format is Barracuda.
121029 16:27:56 InnoDB: Restoring buffer pool pages from ib_lru_dump
Related branches
- Alexey Kopytov (community): Needs Information
- Ignacio Nin (community): Needs Resubmitting
-
Diff: 1820 lines (+0/-745)5 files modifiedbuild/debian/percona-server-server-5.1.mysql.init (+0/-182)
build/debian/percona-server-server-5.1.postinst (+0/-286)
build/debian/percona-server-server-5.1.postrm (+0/-83)
build/debian/percona-server-server-5.1.preinst (+0/-186)
build/debian/percona-server-server-5.1.prerm (+0/-8)
- Alexey Kopytov (community): Needs Information
- Ignacio Nin (community): Needs Resubmitting
-
Diff: 652 lines (+16/-193)4 files modifiedbuild/debian/percona-server-server-5.5.mysql.init (+0/-184)
build/debian/percona-server-server-5.5.postinst (+1/-1)
build/debian/percona-server-server-5.5.postrm (+7/-3)
build/debian/percona-server-server-5.5.preinst (+8/-5)
- Alexey Kopytov (community): Needs Information
-
Diff: 652 lines (+16/-193)4 files modifiedbuild/debian/percona-server-server-5.6.mysql.init (+0/-184)
build/debian/percona-server-server-5.6.postinst (+1/-1)
build/debian/percona-server-server-5.6.postrm (+7/-3)
build/debian/percona-server-server-5.6.preinst (+8/-5)
- Laurynas Biveinis (community): Approve
-
Diff: 22 lines (+8/-2)1 file modifiedbuild-ps/debian/percona-server-server-5.6.mysql.init (+8/-2)
- Laurynas Biveinis (community): Approve
-
Diff: 22 lines (+8/-2)1 file modifiedbuild-ps/debian/percona-server-server-5.5.mysql.init (+8/-2)
- Laurynas Biveinis (community): Approve
-
Diff: 22 lines (+8/-2)1 file modifiedbuild/debian/percona-server-server-5.1.mysql.init (+8/-2)
I was looking into the init.d script for more details, and I think this part is the problem.
case "${1:-''}" in
sanity_ checks;
log_daemon_ msg "Starting MySQL (Percona Server) database server" "mysqld"
log_ progress_ msg "already running"
log_ end_msg 0
"$ {PERCONA_ PREFIX} "/bin/mysqld_ safe > /dev/null 2>&1 &
sleep 1
log_progress_ msg "."
log_end_ msg 0
output= $(/etc/ mysql/debian- start)
log_end_ msg 1
log_failure_ msg "Please take a look at the syslog"
'start')
# Start daemon
if mysqld_status check_alive nowarn; then
else
# 6s was reported in #352070 to be too few when using ndbcluster
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do
if mysqld_status check_alive nowarn ; then break; fi
done
if mysqld_status check_alive warn; then
# Now start mysqlcheck or whatever the admin wants.
[ -n "$output" ] && log_action_msg "$output"
else
fi
fi
;;
Because mysqld_status check_alive is not able to connect the DB the whole time (it took 15mins to load the LRU), so it throw error at that last else statement.
Is it possible to fix this false alert problem?