[Box Backup] Restoring from a hardware failure

Ben Summers boxbackup@fluffy.co.uk
Fri, 22 Jul 2005 09:48:56 +0100


On 21 Jul 2005, at 22:22, Per Thomsen wrote:

> All,
> I'm using a hardware raid card on my bbstored server, and I had a  
> drive failure the other day. Switched out the drive, and everything  
> seemed to work fine.
>
> However, one of the clients was unable to back up. I found the  
> following in one of the backupdirs under that account (output of  
> 'ls -li'):
>
> .
> .
> .
> 1458522 -rw-r--r--  1 _bbstored _bbstored     648 Jul  7 19:32 oe1.rfw
> 1458523 -rw-r--r--  1 _bbstored _bbstored     736 Jul  7 19:32 oe2.rfw
> 1458524 -rw-r--r--  1 _bbstored _bbstored     544 Jul  7 19:32 oe3.rfw
> 1458525 -rw-r--r--  1 _bbstored _bbstored   15596 Jul  7 20:32 oe4.rfw
> 15188798 -rw-r--r--  1 _bbstored _bbstored     313 Jul  7 14:30  
> oe5.rfw
>       ? ?---------  ? ?         ?               ?            ? oe6.rfw
>       ? ?---------  ? ?         ?               ?            ? oe7.rfw
>       ? ?---------  ? ?         ?               ?            ? oe8.rfw
> 15189700 -rw-r--r--  1 _bbstored _bbstored     712 Jul  7 20:32  
> oe9.rfw
> 15189708 -rw-r--r--  1 _bbstored _bbstored    5234 Jul  7 22:34  
> oea.rfw
> 15189709 -rw-r--r--  1 _bbstored _bbstored    6251 Jul  7 22:34  
> oeb.rfw
> 15189711 -rw-r--r--  1 _bbstored _bbstored  265636 Jul  7 22:34  
> oec.rfw
> 15189712 -rw-r--r--  1 _bbstored _bbstored    9839 Jul  7 22:34  
> oed.rfw
> 15189713 -rw-r--r--  1 _bbstored _bbstored  502090 Jul  7 22:34  
> oee.rfw
> 15189714 -rw-r--r--  1 _bbstored _bbstored  446790 Jul  7 22:34  
> oef.rfw           .
> .
> .
> The platform for the server is Linux FC2, and I've tried to delete  
> the files, but to no avail. I keep getting I/O errors from 'rm'.
>
> Does anyone have any ideas about how to get rid of these files?

Just to check, this is nothing to do with Box Backup, is it?


> Would bbstored recover from removing the entire directory in question?

Yes (although it sounds more like you'll have to move that directory  
away rather than deleting it all). As long as you use bbstoreaccounts  
to check and fix the store account afterwards.

Isn't RAID and journalling supposed to prevent this kind of problem?  
Has fsck helped?

Ben