innochecksum
Contents
innochecksum è uno strumento che visualizza i checksum dei file di InnoDB.
Utilizzo
innochecksum [opzioni] nome_file
Spiegazione
Legge un file di un tablespace InnoDB, calcola il checksum di ogni pagina, compata il checksum calcolato con il checksum scritto su disco, e segnala le disuguaglianze, che indicano pagine danneggiate. E' stato originariamente sviluppato per velocizzare la verifica dell'integrità dei file dei tablespace dopo i cali di tensione, ma può anche essere utilizzato per verificare le copie dei file. Siccome quando InnoDB trova delle disuguaglianze nei checksum arresta deliberatamente il server, può essere preferibile utilizzare innochecksum piuttosto che aspettare che un server in produzione incontri pagine danneggiate.
innochecksum cannot be used on tablespace files that the server already has open. For such files, you should use CHECK TABLE to check tables within the tablespace. If checksum mismatches are found, you would normally restore the tablespace from backup or start the server and attempt to use mysqldump to make a backup of the tables within the tablespace.
Options
innochecksum supports the following options. For options that refer to page numbers, the numbers are zero-based.
Option | Description |
---|---|
-c | Print a count of the number of pages in the file. |
-d | Debug mode; prints checksums for each page. |
-e num | End at this page number. |
-p num | Check only this page number. |
-s num | Start at this page number. |
-v | Verbose mode; print a progress indicator every five seconds. |