Hi Ewan, (cc storage),
On 27/01/09 17:54, Ewan MacMahon wrote:
> - Later on Tuesday we re-ran YAIM on the SE headnode to pick up the new
> value of DPM_FILESYSTEMS including the new pools,
Sounds fine. I'd be surprised if this reset the existing spaces.
> - Some time after that we noticed that the dpm-listspaces output was
> showing all the space tokens as 100% empty, with all the data in
> non-token
> space. We don't actually know for sure that the YAIM run was
> responsible.
Hmm, sounds fishy...
> At this point my two main questions are:
> - Any idea how this happened (we didn't use dpm-drain at all (and isn't
> that bug fixed now anyway))?
Yeah, I initially thought you had been dpm-draining. The bug hasn't been
fixed yet. We need 1.7.0 for that.
> - How would we set about fixing this? Graeme alluded to an (as far as
> know
> entirely hypothetical) tool that would respacetokenify files that are
> under
Yeah, there's no tool that currently exists to do this. Perhaps
something for the DPM toolkit, but I don't even think there is anything
in the API which would allow for me to do this. What we really need is a
tool to manipulate the database. In fact, what you need to do is have a
look at the DB contents and compare the space token (the guid string)
that is assigned to each file and compare it to the list of currently
defined space tokens (remember space token != space token description).
If the space token that is associated to each file does not belong to
the list of currently defined space tokens then this would explain the
0% usage.
> the appropriate directories in the DPNS; clearly we can pick out the
> files
> that ought to be in space tokens, but how do we tell DPM that they
> should?
Yeah, let me dig out the appropriate DB query.
> And a subsidiary question:
> - dpns-du doesn't seem to total directories in the handy way that 'real'
>
> du can with its '-s' option. How easy would it be to make it do that?
Can you give me an example so that I'm sure I know what you mean? I'm
sure I can update the tool to do what you want.
Cheers,
Greig
|