From owner-freebsd-fs@FreeBSD.ORG Wed Aug 1 14:37:56 2007 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C2E616A41F for ; Wed, 1 Aug 2007 14:37:56 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from itchy.rabson.org (unknown [IPv6:2001:618:400::50b1:e8f2]) by mx1.freebsd.org (Postfix) with ESMTP id F174313C481 for ; Wed, 1 Aug 2007 14:37:55 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from [80.177.232.250] (herring.rabson.org [80.177.232.250]) by itchy.rabson.org (8.13.3/8.13.3) with ESMTP id l71EbsEo083611; Wed, 1 Aug 2007 15:37:54 +0100 (BST) (envelope-from dfr@rabson.org) From: Doug Rabson To: Gergely CZUCZY In-Reply-To: <20070801122122.GA59065@harmless.hu> References: <20070801122122.GA59065@harmless.hu> Content-Type: text/plain Date: Wed, 01 Aug 2007 15:37:54 +0100 Message-Id: <1185979074.1264.14.camel@herring.rabson.org> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/3846/Wed Aug 1 08:27:07 2007 on itchy.rabson.org X-Virus-Status: Clean Cc: freebsd-fs@freebsd.org Subject: Re: ZFS on a shared disk X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2007 14:37:56 -0000 On Wed, 2007-08-01 at 14:21 +0200, Gergely CZUCZY wrote: > Hello > > I've seen many checked ZFS in -CURRENT, and I've got > a question about ZFS in freebsd. I've never checked > -CURRENT, just thought of whether ZFS can do this or not. > > Let's assume there's a shared disk on a scsi bus, that's > attached to two boxes. Can that disk be used simultaneously > with ZFS on the two boxes at the same time? AFAIK UFS2 > is unable to do this, since it doesn't have any on-disk > synchronization and similar features, that would enable > an operation like this. ZFS does not support this at all. It has safeguards that should prevent you from using a pool on more than one machine. You can transfer ownership of the pool back and forth between two machines using 'zpool export' and 'zpool import'.