May 23, 2012

Comment: How to change innodb_log_file_size safely

… sequence number in the ib_logfiles! 120502 11:51:16 InnoDB: Database was not shut down normally! InnoDB: Starting crash recovery. InnoDB: Reading…: ready for connections. Version: ’5.0.95′ socket: ‘/var/lib/mysql/mysql.sock’ port: 3306 Source distribution Also, I don’t see how MySQL could be using any other conf file other than /etc…

Post: Faster Point In Time Recovery with LVM2 Snaphots and Binary Logs

MySQL databases – but did you know that you can now restore directly from a snapshot (and binary logs for point in time recovery) incrash recovery when an LSN mismatch occurs and still end up with inconsistent data. Now, assuming I have the following logical volumes – mysql… 336797275 mysql-bin.000022 | mysql mysql> select count(*) from salaries where emp_no = 10001; +———-+ | count(*) | +———-+ | 0 | +———-+ 1 row in set (0.00 sec) mysql> show…

Comment: How FLUSH TABLES WITH READ LOCK works with Innodb Tables

…virgin box. In the target location, we bring up the new mysqld, which finds a crashed innodb, recovers…the donor machine. Every once in a while the recovery of the innodb in the target location fails, though… this with many versions of MySQL. We are now using ‘service mysql stop’ instead of FLUSH …

Post: Percona Testing: Innodb crash / recovery tests available

… everyone may know this, but there are precious few innodb crash recovery tests available. Some folks have noticed this and asked for…_CRASHED (101) I also took pains to ensure that the randgen workload was having an effect on the test tables between crash/recovery… yourself, they are in lp:kewpie (I changed the name of dbqp).  You’ll need the DBD::mysql perl module for the…

Post: MySQL Crash Recovery

… to crash again – such crashes qucikly following one another are kind of worse because they explore many less tested code paths in MySQL and… use innodb-safe-binlog option in MySQL 4.1 so your Innodb log and binary log are synchronized. In MySQL 5.0 XA is… problems which you may experience related to MySQL Crash Recovery – Restoring data from backup, corrupted Innodb tablespace recovery etc but I should write about…

Post: What to tune in MySQL Server after installation

MySQL DBAs or be involved with MySQL Performance in some way is to ask them what should be tuned in MySQL… Larger sizes offer better performance but increase recovery times so be careful. I normally … even in case MySQL Server crashes. Value 2 only cause data loss with full OS crash. table_…

Post: Bug#12704861

… lot of detail in the release notes about what could potentially be a very serious problem that is fixed in MySQL 5.1… a situation where crash recovery will itself crash. The last sentence (“there is no redo log record for file extension in the current redo… and after the B-tree changes. In this way, the worst thing that can happen in crash recovery is that the BLOBs are written…

Post: How innodb_open_files affects performance

…. I used MySQL 5.4.2 for tests which should be as good as it gets in terms of optimizations in this space… values. Finally I decided to test the crash recovery – does it make any difference ? The crash recovery in Innodb is nasty if you have a… when crash happen (how many unflushed changes we had) Repeating test with innodb_open_files=16384 I got about same crash recovery speed…

Post: No more MySQL Crash Safe Replication in 5.0 ?

… when Innodb does crash recovery it would print position in master log files up to which replication was done: InnoDB: In a MySQL replication slave… was probably removed in MySQL 5.0 during XA implementation though the code which prints the data back on recovery was not, so… functionality works as expected. Innodb during recovery also prints position in the MySQL binary log: InnoDB: Last MySQL binlog file position 0 589600615, file…

Post: Magic Innodb Recovery self healing

… data on per table basics. Also if MySQL crashes during recovery lower values of innodb_force_recovery normally would not work. Reading Documentation one… do full system restart before attempting recovery. In few instances problems were caused by Kernel bug, inconsistence in OS cache or RAID cache…