innochecksum

Stai visualizzando una vecchia versione di questo article. Visualizza la versione più recente.

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.

OptionDescription
-cPrint a count of the number of pages in the file.
-dDebug mode; prints checksums for each page.
-e numEnd at this page number.
-p numCheck only this page number.
-s numStart at this page number.
-vVerbose mode; print a progress indicator every five seconds.

Commenti

Sto caricando i commenti......
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.