From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benny Halevy Subject: Re: [osd-dev] [PATCH 1/9] exofs: osd Swiss army knife Date: Tue, 13 Jan 2009 17:28:34 +0200 Message-ID: <496CB322.8010202@panasas.com> References: <4947BFAA.4030208@panasas.com> <4947C624.3050602@panasas.com> <4964CEA4.7080001@panasas.com> <20090113135526.28730314@lxorguk.ukuu.org.uk> <20090113150955.GA9636@shareable.org> <496CB076.8080002@garzik.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alan Cox , Boaz Harrosh , open-osd development , Avishay Traeger , Andrew Morton , Al Viro , linux-fsdevel , linux-kernel To: Jeff Garzik , Jamie Lokier Return-path: Received: from gw-ca.panasas.com ([66.104.249.162]:14345 "EHLO laguna.int.panasas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751215AbZAMP2i (ORCPT ); Tue, 13 Jan 2009 10:28:38 -0500 In-Reply-To: <496CB076.8080002@garzik.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Jan. 13, 2009, 17:17 +0200, Jeff Garzik 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