dumpallmdiskbadblocks

請使用 dumpallmdiskbadblocks 指令將錯誤區塊計數傾出至一個傾出檔,供修正程序和 satask snap 指令使用。

語法

讀取語法圖表略過語法圖表 dumpallmdiskbadblocks

參數

說明

請使用 dumpallmdiskbadblocks 指令將錯誤區塊計數傾出至可讀取的 ASCII 傾出檔,供修正程序和 satask snap 指令使用。輸出包含已產生錯誤日誌 的錯誤區塊。

請使用 lsdumps -prefix /dumps/mdisk 來列出輸出檔。請使用 cleardumps -prefix /dumps/mdisk 來清除輸出檔。

傾出檔的數目上限是 20。

呼叫範例

dumpallmdiskbadblocks

如果 MDisk 2 和 MDisk 5 有錯誤區塊,結果輸出如下:

Cluster name: my_cluster
Timestamp of dump: Fri Oct 31 11:27:33 2009 UTC

Mdisk id: 2
Mdisk name: mdisk2
Number of bad blocks: 4


Mdisk id: 5
Mdisk name: mdisk 5
Number of bad blocks: 1


Total mdisks with bad blocks: 2
Total number of bad blocks: 5

MDisk 沒有錯誤區塊的結果輸出

Cluster name: my_cluster
Timestamp of dump: Fri Oct 31 11:27:33 2009 UTC

Total mdisks with bad blocks: 0
Total number of bad blocks: 0