<div dir="ltr"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><pre style="color:rgb(0,0,0)"><pre><br></pre></pre><pre style="color:rgb(0,0,0)">2016-02-10 18:32 GMT+08:00 Joe Thornber <thornber redhat com>:</pre><pre style="color:rgb(0,0,0)">> Yep, I definitely want these for upstream.  Send me what you've got,</pre><pre style="color:rgb(0,0,0)">> whatever state it's in; I'll happily spend a couple of weeks tidying</pre><pre style="color:rgb(0,0,0)">> this.</pre><pre style="color:rgb(0,0,0)">></pre><pre style="color:rgb(0,0,0)">> - Joe</pre><pre style="color:rgb(0,0,0)"></pre><pre style="color:rgb(0,0,0)">The feature was completed & workable, but the code is based on v0.4.1.</pre><pre style="color:rgb(0,0,0)">I need some days to clean up & rebase. Please wait.</pre><pre style="color:rgb(0,0,0)"></pre><pre style="color:rgb(0,0,0)">syntax:</pre><pre style="color:rgb(0,0,0)">thin_ll_dump /dev/mapper/corrupted_tmeta [-o thin_ll_dump.xml]</pre><pre style="color:rgb(0,0,0)">thin_ll_restore -i edited_thin_ll_dump.xml -E</pre><pre style="color:rgb(0,0,0)">/dev/mapper/corrupted_tmeta -o /dev/mapper/fixed_tmeta</pre><pre style="color:rgb(0,0,0)"></pre><pre style="color:rgb(0,0,0)">Ming-Hung Tsai</pre></blockquote><pre style="color:rgb(0,0,0)">-------------</pre><pre style="color:rgb(0,0,0)">Hi,</pre><pre style="color:rgb(0,0,0)">Thank you very much for giving us so many advices.</pre><pre style="color:rgb(0,0,0)"><br></pre><pre style="color:rgb(0,0,0)">Here are some progresses based on you guys mail conversations:</pre><pre style="color:rgb(0,0,0)">1,check metadata device:</pre><pre style=""><font color="#000000">[root@stor14 home]# thin_check /dev/mapper/vgg145155121036c-pool_nas_tmeta0
examining superblock
examining devices tree
examining mapping tree</font><span style="color:rgb(0,0,0)">
</span></pre><div><pre style=""><font color="#000000">2,dump metadata info:</font></pre><pre style=""><font color="#000000">[root@stor14 home]# thin_dump /dev/mapper/vgg145155121036c-pool_nas_tmeta0 -o nas_thin_dump.xml -r
[root@stor14 home]# cat nas_thin_dump.xml 
<superblock uuid="" time="1787" transaction="3545" data_block_size="128" nr_data_blocks="249980672">
</superblock></font></pre></div><div><pre>Compared with other normal pools, it seems like all device nodes and mapping info in the metadata lv have lost.</pre><pre>Is there happened to be 'orphan nodes'? and could you give us your semi-auto repair tools so we can repair it?</pre><pre><br></pre><pre>Thank you very much!</pre><pre>Mars</pre></div><pre style="color:rgb(0,0,0)"><br></pre><pre style="color:rgb(0,0,0)"><br></pre></div>