spa crccheck
Function
The spa crccheck command is used to perform the CRC verification on the metadata.
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. |
- |
Views
Diagnostic view
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
System Response
The following table describes the parameter meanings.
Parameter |
Meaning |
---|---|
Object type |
Metadata object type index. |
Pool ID |
Disk domain ID. |
App type |
Metadata type. |
Tier Type |
Disk tier type. |