Vault HA Cluster - InnoDB: Error: log file .\ib_logfile0 is of different size - High Availability installation problem

Vault HA Cluster - InnoDB: Error: log file .\ib_logfile0 is of different size - High Availability installation problem

109
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 13:00 PM


Symptom


The database on one of the nodes in the HA cluster could not start. Error message in the VaultDB.log:

 

InnoDB: Error: log file .\ib_logfile0 is of different size 0 213909504 bytes InnoDB: than specified in the .cnf file 0 20971520 bytes! 070313 18:00:07 [ERROR] Default storage engine (InnoDB) is not available 070313 18:00:07 [ERROR] Aborting 070313 18:00:07 [Note] C:\Program Files\PrivateArk\Server\Database\Bin\mysqld-nt.exe: Shutdown complete



Environment


v7.2;v8.6;v9.0;v9.1;v9.2;9.3;9.5;9.6;9.7;9.8;9.9 Privileged Access Manager (PAM, self-hosted) Vault

Cause


The two machines do not have the same amount of memory.

 

On installation we calculate the MySQL log files (files that are used by the database to temporary store data before it is stored in the data file) size according to the machine memory amount. The log files are created on the first database startup (ib_logfile0, ib_logfile1).

 

When we try to start the database on the second machine it will notice that the log file size is incorrect and will not start.



Resolution


  1. Set the innodb_log_file_size parameter in the my.ini file on both nodes to same size (according to the smaller size)
  2. Stop the PrivateArk database service on both machines.
  3. Delete the log files.
  4. Start the PrivateArk database service on the active node. The files will be recreated automatically with the correct size.


Additional Information


Details

SYMPTOM:

The database on one of the nodes in the HA cluster could not start. Error message in the VaultDB.log: InnoDB: Error: log file .\ib_logfile0 is of different size 0 213909504 bytes InnoDB: than specified in the .cnf file 0 20971520 bytes! 070313 18:00:07 [ERROR] Default storage engine (InnoDB) is not available 070313 18:00:07 [ERROR] Aborting 070313 18:00:07 [Note] C:\Program Files\PrivateArk\Server\Database\Bin\mysqld-nt.exe: Shutdown complete

 

PROBLEM:

The two machines do not have the same amount of memory. On installation we calculate the MySQL log files (files that are used by the database to temporary store data before it is stored in the data file) size according to the machine memory amount. The log files are created on the first database startup (ib_logfile0, ib_logfile1). When we try to start the database on the second machine it will notice that the log file size is incorrect and will not start.

 

SOLUTION:

1. Set the innodb_log_file_size parameter in the my.ini file on both nodes to same size (according to the smaller size) 2. Stop the PrivateArk database service on both machines. 3. Delete the log files. 4. Start the PrivateArk database service on the active node. The files will be recreated automatically with the correct size.




Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001MMfCAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail