[Box Backup] Re: problems....

Ben Summers boxbackup@fluffy.co.uk
Mon, 5 Apr 2004 09:30:35 +0100


On 3 Apr 2004, at 22:13, Imran wrote:

> Oh, one thing I forgot to mention is that its setup as raid, i.e. 
> /raid/0.0,
> /raid/0.1 and /raid/0.2   In /raid/0.0/backup/ dirs, there are 
> write.lock
> files in each of the IDs dirs (and they aren't there in /raid/0.1  or 
> /raid/0.2).
>
> and o01.rf files in all of the /raid/0.0 dirs are of size zero (0).  
> while the
> other two raid ones are of size 40 for notused accounts, and 520 for 
> the
> account I was testing.
>
>
> o02.rf file on the other hadnd is 4096 on /raid/0.0 and /raid/0.2 but 
> 513
> bytes on /raid/0.1   (of course this file only exists for the account 
> I was
> testing).

This is all perfectly normal. A fairly weird way of storing data is 
used in the raidfile system to make thing efficient on disc space and 
processor, and you're just seeing a few examples.

>
> also, if, lets say, /raid/0.0 harddrive crashed and I was to put in a 
> new
> harddrive, wouldn't it rebuild the backup dir?  i renamed the backup 
> dir, and
> created a new backup dir with the correct permissions, but i just get 
> lots of
> errors.

But it should have still worked, I hope?

>  maybe I have to give it a commandline paramater or maybe that isn't
> functional yet..

At the moment, there are two things I need to write:

1) raidfiled -- turns normal files into raidfiles in another process. 
This will make things vastly more efficient. Also it'll recover 
individual files as they're found.

2) raidfileutil -- does stuff like rebuilding arrays.

They're not big things, it's just getting around to it. All the complex 
code is already written, it just needs to be packaged up into these 
utilities. The other functionality is more important to get tested, as 
it's more complex -- really it's just a matter of priorities.

Ben