Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 8 Dec 2002 19:16:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 8 Dec 2002 19:16:31 -0500 Received: from tone.orchestra.cse.unsw.EDU.AU ([129.94.242.28]:45527 "HELO tone.orchestra.cse.unsw.EDU.AU") by vger.kernel.org with SMTP id ; Sun, 8 Dec 2002 19:16:30 -0500 From: Neil Brown To: Steven Dake Date: Mon, 9 Dec 2002 09:35:06 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15859.51482.570635.122591@notabene.cse.unsw.edu.au> Cc: Lars Marowsky-Bree , linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org Subject: Re: RFC - new raid superblock layout for md driver In-Reply-To: message from Steven Dake on Wednesday November 20 References: <20021120234743.GF29881@marowsky-bree.de> <3DDC2A6F.2030307@mvista.com> X-Mailer: VM 7.07 under Emacs 20.7.2 X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9D The only application where having a RAID volume shareable between two > hosts is useful is for a clustering filesystem (GFS comes to mind). > Since RAID is an important need for GFS (if a disk node fails, you > don't want ot loose the entire filesystem as you would on GFS) this > possibility may be worth exploring. > > Since GFS isn't GPL at this point and OpenGFS needs alot of work, I've > not spent the time looking at it. > > Neil have you thought about sharing an active volume between two hosts > and what sort of support would be needed in the superblock? > I think that the only way shared access could work is if different hosts controlled different slices of the device. The hosts would have to some-how negotiate and record who was managing which bit. It is quite appropriate that this information be stored on the raid array, and quite possibly in a superblock. But I think that this is a sufficiently major departure from how md/raid normally works that I would want it to go in a secondary superblock. There is 60K free at the end of each device on an MD array. Whoever was implementing this scheme could just have a flag in the main superblock to say "there is a secondary superblock" and then read the info about who owns what from somewhere in that extra 60K So in short, I think the metadata needed for this sort of thing is sufficiently large and sufficiently unknown that I wouldn't make any allowance for it in the primary superblock. Does that sound reasonable? NeilBrown - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/