spa crccheck
Format
spa crccheck -o object type -p pool id -a app type { -v volume id | -t tier type | -d disk logic id }
spa crccheck -q query running result { -o object type | -p pool id | -a app type | -v volume id | -t tier type | -d disk logic id }
Parameters
Parameter |
Description |
Value |
---|---|---|
object type | Object type. | To obtain the value, run the "spa crccheck -h" command. |
pool id | Disk domain ID. | To obtain the value, run the "show disk_domain general" command. |
app type | Metadata type. | The value can be "0" or "1", where:
|
volume id | Volume ID. | To obtain the value, run the "spa queryvolcap" command. |
tier type | Tier type. | The value can be "0", "1", or "2", where:
|
disk logic id | Disk logical ID. | To obtain the value, run the "ld showspecld" command. |
query running result | Query result. | - |
Usage Guidelines
You can run the "spa crccheck -o object type -p pool id -a app type { -v volume id | -t tier type | -d disk logic id }" command to perform the CRC verification on the metadata object. Then, the system automatically starts the CRC verification. You can run the "spa crccheck -q query running result { -o object type | -p pool id | -a app type | -v volume id | -t tier type | -d disk logic id }" command to query the CRC verification progress and result.
Example
-
Perform the CRC verification on the metadata object whose type is "11".
admin:/diagnose>spa crccheck -o 11 -p 0 -t 1 -a 0 Begin checking. Please input -q to query result!
-
Query the CRC verification result of the metadata object.
admin:/diagnose>spa crccheck -q Status: Success. ------------------------------------------ Object Type: 11 Pool ID: 0 App Type: 0 Tier Type: 1