[linux-lvm] Repair thin pool

M.H. Tsai mingnus at gmail.com
Wed Feb 17 09:29:27 UTC 2016

2016-02-17 10:48 GMT+08:00 Mars <kirapangzi at gmail.com>:
> Hi,
> Thank you very much for giving us so many advices.
> Here are some progresses based on you guys mail conversations:
> 1,check metadata device:
> [root at stor14 home]# thin_check
> examining superblock
> examining devices tree
> examining mapping tree
> 2,dump metadata info:
> [root at stor14 home]# thin_dump /dev/mapper/vgg145155121036c-pool_nas_tmeta0
> -o nas_thin_dump.xml -r
> [root at stor14 home]# cat nas_thin_dump.xml
> <superblock uuid="" time="1787" transaction="3545" data_block_size="128"
> nr_data_blocks="249980672">
> </superblock>
> Compared with other normal pools, it seems like all device nodes and
> info in the metadata lv have lost.

Two possibilities: The device details tree was broken, or worse, the data
mapping tree was broken.

> Is there happened to be 'orphan nodes'? and could you give us your
> repair tools so we can repair it?

Sorry, the code is not finished. Please try my binary first (static binary
compiled on Ubuntu 14.04):

Please provide the output of thin_ll_dump:
./pdata_tools thin_ll_dump /dev/mapper/vgg145155121036c-pool_nas_tmeta0 -o
(it needs some minutes to go, since that it scan through the entire
metadata (16GB!). I'll improve it later.

Ming-Hung Tsai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20160217/2c3054e7/attachment.htm>

More information about the linux-lvm mailing list