recovering a file: hammer history != undo -ai

Raimundo Santos raitech at gmail.com
Tue Jun 12 21:45:33 PDT 2012


--20cf307f31661e3b3504c25342fd
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,

I am trying to recover a test image (10GB) which I have deleted. The file
is present in various of my snapshots, and I do not realize how to recover
it:

. by cpdup from a snapshot to their directory?
. by simply cp from a snapshot to their directory?
. by undo -o test.img test.img@@0xlast_tid?

Trying a hammer history to see when it became alive and when it died, I got

rtcprime# hammer history test.img
test.img        0000000106d2f8a2 clean {
    0000000106d38630 11-May-2012 00:37:12
    000000010f0f94d0 26-May-2012 01:28:08
}

from inside a snap. And from the same snap, I got

rtcprime# undo -ia test.img
test.img: ITERATE ENTIRE HISTORY
        0x0000000106d38610 11-May-2012 00:37:10 file-deleted
        0x0000000106d38630 11-May-2012 00:37:12

this is suposed to be that way? Am I doing some confusion, or is it wrong?
Both the commands must present the same TIDs?

When I issued another undo, with verbose option:

rtcprime# undo -vai test.img
test.img: ITERATE ENTIRE HISTORY
Unable to access either test.img@@0x0000000106d37470 or test.img@
@0x0000000106d37490
Unable to access either test.img@@0x0000000106d37490 or test.img@
@0x0000000106d374b0
Unable to access either test.img@@0x0000000106d374b0 or test.img@
@0x0000000106d374f0
Unable to access either test.img@@0x0000000106d374f0 or test.img@
@0x0000000106d37510
Unable to access either test.img@@0x0000000106d37510 or test.img@
@0x0000000106d37530
Unable to access either test.img@@0x0000000106d37530 or test.img@
@0x0000000106d375d0
Unable to access either test.img@@0x0000000106d375d0 or test.img@
@0x0000000106d375f0
Unable to access either test.img@@0x0000000106d375f0 or test.img@
@0x0000000106d37630
Unable to access either test.img@@0x0000000106d37630 or test.img@
@0x0000000106d37650
Unable to access either test.img@@0x0000000106d37650 or test.img@
@0x0000000106d37670

...

Unable to access either test.img@@0x0000000106d38550 or test.img@
@0x0000000106d38570
Unable to access either test.img@@0x0000000106d38570 or test.img@
@0x0000000106d38590
Unable to access either test.img@@0x0000000106d38590 or test.img@
@0x0000000106d385b0
Unable to access either test.img@@0x0000000106d385b0 or test.img@
@0x0000000106d385d0
Unable to access either test.img@@0x0000000106d385d0 or test.img@
@0x0000000106d385f0
Unable to access either test.img@@0x0000000106d385f0 or test.img@
@0x0000000106d38610
        0x0000000106d38610 11-May-2012 00:37:10 file-deleted
        0x0000000106d38630 11-May-2012 00:37:12
Unable to access either test.img@@0x000000010f0f94d0 or test.img@
@0xffffffffffffffff


Thank you in advance! :)

--=20
--------------------------------------------
Raimundo A. P. Santos
Bacharelando em Inform=E1tica
ICMC - USP

--20cf307f31661e3b3504c25342fd
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,<br><br>I am trying to recover a test image (10GB) which I have delet=
ed. The file is present in various of my snapshots, and I do not realize ho=
w to recover it:<br><br>. by cpdup from a snapshot to their directory?<br>

. by simply cp from a snapshot to their directory?<br>. by undo -o test.img=
 test.img@@0xlast_tid?<br><br>Trying a hammer history to see when it became=
 alive and when it died, I got<br><br>rtcprime# hammer history test.img<br>

test.img=A0=A0=A0=A0=A0=A0=A0 0000000106d2f8a2 clean {<br>=A0=A0=A0 0000000=
106d38630 11-May-2012 00:37:12<br>=A0=A0=A0 000000010f0f94d0 26-May-2012 01=
:28:08<br>}<br><br>from inside a snap. And from the same snap, I got<br><br=
>rtcprime# undo -ia test.img=A0=A0=A0 <br>

test.img: ITERATE ENTIRE HISTORY<br>=A0=A0=A0=A0=A0=A0=A0 0x0000000106d3861=
0 11-May-2012 00:37:10 file-deleted<br>=A0=A0=A0=A0=A0=A0=A0 0x0000000106d3=
8630 11-May-2012 00:37:12<br><br>this is suposed to be that way? Am I doing=
 some confusion, or is it wrong? Both the commands must present the same TI=
Ds?<br>

<br>When I issued another undo, with verbose option:<br><br>rtcprime# undo =
-vai test.img<br>test.img: ITERATE ENTIRE HISTORY<br>Unable to access eithe=
r test.img@@0x0000000106d37470 or test.img@@0x0000000106d37490<br>Unable to=
 access either test.img@@0x0000000106d37490 or test.img@@0x0000000106d374b0=
<br>

Unable to access either test.img@@0x0000000106d374b0 or test.img@@0x0000000=
106d374f0<br>Unable to access either test.img@@0x0000000106d374f0 or test.i=
mg@@0x0000000106d37510<br>Unable to access either test.img@@0x0000000106d37=
510 or test.img@@0x0000000106d37530<br>

Unable to access either test.img@@0x0000000106d37530 or test.img@@0x0000000=
106d375d0<br>Unable to access either test.img@@0x0000000106d375d0 or test.i=
mg@@0x0000000106d375f0<br>Unable to access either test.img@@0x0000000106d37=
5f0 or test.img@@0x0000000106d37630<br>

Unable to access either test.img@@0x0000000106d37630 or test.img@@0x0000000=
106d37650<br>Unable to access either test.img@@0x0000000106d37650 or test.i=
mg@@0x0000000106d37670<br><br>...<br><br>Unable to access either test.img@@=
0x0000000106d38550 or test.img@@0x0000000106d38570<br>

Unable to access either test.img@@0x0000000106d38570 or test.img@@0x0000000=
106d38590<br>Unable to access either test.img@@0x0000000106d38590 or test.i=
mg@@0x0000000106d385b0<br>Unable to access either test.img@@0x0000000106d38=
5b0 or test.img@@0x0000000106d385d0<br>

Unable to access either test.img@@0x0000000106d385d0 or test.img@@0x0000000=
106d385f0<br>Unable to access either test.img@@0x0000000106d385f0 or test.i=
mg@@0x0000000106d38610<br>=A0=A0=A0=A0=A0=A0=A0 0x0000000106d38610 11-May-2=
012 00:37:10 file-deleted<br>

=A0=A0=A0=A0=A0=A0=A0 0x0000000106d38630 11-May-2012 00:37:12<br>Unable to =
access either test.img@@0x000000010f0f94d0 or test.img@@0xffffffffffffffff<=
br><br><br>Thank you in advance! :)<br><br>-- <br>-------------------------=
-------------------<br>

Raimundo A. P. Santos<br>Bacharelando em Inform=E1tica<br>ICMC - USP<br>

--20cf307f31661e3b3504c25342fd--





More information about the Users mailing list