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

From: Benny Halevy
Date: Tue Jan 13 2009 - 10:28:53 EST


On Jan. 13, 2009, 17:17 +0200, Jeff Garzik <jeff@xxxxxxxxxx> 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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/