check Command
Prerequisites
Before running following commands, create a target database or ensure that a database has been created. The following assumes that a database already exists.
Procedure
- Go to a directory, for example, /home.
1cd /home
- Check the SST file and verify its checksum.
1sst_dump --file=/home/rocksdb/rkdb/000004.sst --command=check --verify_checksum
In the preceding command, 000004.sst is an example file name. Change it to the actual one.
1 2 3 4
[root@DC5-07-001 ~]# sst_dump --file=/home/rocksdb/rkdb/000004.sst --command=check --verify_checksum from [] to [] Process /home/rocksdb/rkdb/000004.sst Sst file format: block-based
Parent topic: Examples