[OpenAFS] Extract files from /vicepa

Germán Ferrari german.ferrari@gmail.com
Fri, 17 Jan 2014 15:40:32 -0200


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

On Fri, Jan 17, 2014 at 1:39 PM, Stephan Wiesand <stephan.wiesand@desy.de>w=
rote:

>
> On 2014-01-17, at 15:41, Germ=E1n Ferrari <german.ferrari@gmail.com> wrot=
e:
>
> > El ene 17, 2014 9:43 AM, "Harald Barth" <haba@kth.se> escribi=F3:
> > >
> > >
> > > > If I understood correctly, the easiest way to restore the files is
> to setup
> > > > another afs server and "just" overwrite the /vicepa folder with the
> one I
> > > > have. Is this correct?
> > >
> > > Yes, I think that's still correct. The easiest way to set up a AFS
> > > server is probably to take a linux distro which has pre-packaged
> > > binaries for AFS client and server. Debian for example.
> > >
> > > > I don't understand the part about the salvager deleting the data.
> > >
> > > I think the ownership and mode bits conain information if the file in
> > > question is "active". The salvager may delete inactive data. But prio=
r
> > > to copying your old data into your new /vicepa/ you can remove the
> > > salvager from BosConfig and then run the salvager by hand with
> > > -nowrite which will tell you what the salvager would have done.
> > >
> > > > I have
> > > > the recovered /vicepa folder on a ntfs partition. I'm trying to
> recover
> > > > again the folder but to an ext4 partition trying to preserve
> ownership and
> > > > modes ...
> > >
> > > Good if you can do that. Zip and Tar archives can be told to preserve
> > > ownership as well.
> > >
> > > Harald.
> >
> >
> > Ok.
> >
> > I was hoping there was some simple way to extract the data, which did
> not involve the creation of an afs server.
>
> I have a perl script from 2005 that could do this - but only for pure r/w
> volumes. If there's a backup or readonly clone on the same partition, it
> will probably fail miserably. It's not polished, may have to be adapted t=
o
> current perl versions etc. And I think it recovered nothing but the file
> content and the path, not mode/owner/ACLs...
>
>
That would be enough for me at this moment.

Setting up a server is certainly the better option and may well be easier
> and faster. But if you're desperate enough, let me know.
>
>
I think the script could be useful to play with the data that I have while
I wait for other processes to finish. I would appreciate if you send it to
me.

Regards,
Germ=E1n

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

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On F=
ri, Jan 17, 2014 at 1:39 PM, Stephan Wiesand <span dir=3D"ltr">&lt;<a href=
=3D"mailto:stephan.wiesand@desy.de" target=3D"_blank">stephan.wiesand@desy.=
de</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left:1px solid rgb(204,204,204);padding-left:1ex"><div class=3D""><div clas=
s=3D"h5"><br>
On 2014-01-17, at 15:41, Germ=E1n Ferrari &lt;<a href=3D"mailto:german.ferr=
ari@gmail.com">german.ferrari@gmail.com</a>&gt; wrote:<br>
<br>
&gt; El ene 17, 2014 9:43 AM, &quot;Harald Barth&quot; &lt;<a href=3D"mailt=
o:haba@kth.se">haba@kth.se</a>&gt; escribi=F3:<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; If I understood correctly, the easiest way to restore the fi=
les is to setup<br>
&gt; &gt; &gt; another afs server and &quot;just&quot; overwrite the /vicep=
a folder with the one I<br>
&gt; &gt; &gt; have. Is this correct?<br>
&gt; &gt;<br>
&gt; &gt; Yes, I think that&#39;s still correct. The easiest way to set up =
a AFS<br>
&gt; &gt; server is probably to take a linux distro which has pre-packaged<=
br>
&gt; &gt; binaries for AFS client and server. Debian for example.<br>
&gt; &gt;<br>
&gt; &gt; &gt; I don&#39;t understand the part about the salvager deleting =
the data.<br>
&gt; &gt;<br>
&gt; &gt; I think the ownership and mode bits conain information if the fil=
e in<br>
&gt; &gt; question is &quot;active&quot;. The salvager may delete inactive =
data. But prior<br>
&gt; &gt; to copying your old data into your new /vicepa/ you can remove th=
e<br>
&gt; &gt; salvager from BosConfig and then run the salvager by hand with<br=
>
&gt; &gt; -nowrite which will tell you what the salvager would have done.<b=
r>
&gt; &gt;<br>
&gt; &gt; &gt; I have<br>
&gt; &gt; &gt; the recovered /vicepa folder on a ntfs partition. I&#39;m tr=
ying to recover<br>
&gt; &gt; &gt; again the folder but to an ext4 partition trying to preserve=
 ownership and<br>
&gt; &gt; &gt; modes ...<br>
&gt; &gt;<br>
&gt; &gt; Good if you can do that. Zip and Tar archives can be told to pres=
erve<br>
&gt; &gt; ownership as well.<br>
&gt; &gt;<br>
&gt; &gt; Harald.<br>
&gt;<br>
&gt;<br>
&gt; Ok.<br>
&gt;<br>
&gt; I was hoping there was some simple way to extract the data, which did =
not involve the creation of an afs server.<br>
<br>
</div></div>I have a perl script from 2005 that could do this - but only fo=
r pure r/w volumes. If there&#39;s a backup or readonly clone on the same p=
artition, it will probably fail miserably. It&#39;s not polished, may have =
to be adapted to current perl versions etc. And I think it recovered nothin=
g but the file content and the path, not mode/owner/ACLs...<br>


<br></blockquote><div><br></div><div><span id=3D"result_box" class=3D"" lan=
g=3D"en"><span class=3D"">That would be enough</span> <span class=3D"">for =
me at this moment.</span> <br><span class=3D""><br></span></span></div><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left=
:1px solid rgb(204,204,204);padding-left:1ex">


Setting up a server is certainly the better option and may well be easier a=
nd faster. But if you&#39;re desperate enough, let me know.<br>
<br></blockquote><div><br><span id=3D"result_box" class=3D"" lang=3D"en"><s=
pan class=3D"">I think the script could</span><span class=3D""> be</span> <=
span class=3D"">useful</span> <span class=3D"">to play with</span> <span cl=
ass=3D"">the data</span> <span class=3D"">that I have</span> <span class=3D=
"">while I wait</span> <span class=3D"">for</span> <span class=3D"">other p=
rocesses</span> <span class=3D"">to finish</span><span>.</span> <span class=
=3D"">I would appreciate</span> <span class=3D"">if</span> <span class=3D""=
>you send=A0</span><span class=3D"">it to me</span><span class=3D"">.<br>

<br></span></span></div><div>Regards,<br></div><div>Germ=E1n<br></div><div>=
=A0<br></div></div><br></div></div>

--047d7bfd05fc1cfb7804f02e0b7d--