Re: [osd-dev] [PATCH 1/9] exofs: osd Swiss army knife

Benny Halevy
2009-01-13T15:28:50Z

On Jan. 13, 2009, 17:17 +0200, Jeff Garzik <jeff@garzik.org> wrote:
> Jamie Lokier wrote:
>> Having one super block would be silly.
>
> Yep.
>
>
>> But aren't most kinds of replication better done behind the OSD level,
>> on the storage fabric? OSD is all about letting the fabric decide
>> things like allocation and durability strategies after all.
>
> Probably, but one cannot _assume_ that. The OSD device might just be a
> dumb, non-replicated OSD simulator, or in the future, a singleton SATA
> drive.
>
> Jeff
>
>
>

Alan asked about an _os_ failure. I consider it different than a disk
level failure which is typically handled by RAID. At the OS level I'd
care more about the self consistency of the metadata and its corruption
due to the OS (or the OSD) failing to update it atomically.
In exofs's case the metadata in superblock is unexpensive to recover.
It holds the last object ID created. If, when using it, the filesystem
finds an already existing object it can detect the last object created
using a logarithmic search (or even a linear one assuming the sb is
synced frequently enough). Therefore I wouldn't spend cycles on
replicating it.

Benny