From owner-freebsd-fs@FreeBSD.ORG Fri May 11 15:52:28 2012 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 4E55B1065672 for ; Fri, 11 May 2012 15:52:28 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from noop.in-addr.com (mail.in-addr.com [IPv6:2001:470:8:162::1]) by mx1.freebsd.org (Postfix) with ESMTP id 1AF4C8FC0C for ; Fri, 11 May 2012 15:52:28 +0000 (UTC) Received: from gjp by noop.in-addr.com with local (Exim 4.77 (FreeBSD)) (envelope-from ) id 1SSs8I-000GNF-1r; Fri, 11 May 2012 11:51:54 -0400 Date: Fri, 11 May 2012 11:51:53 -0400 From: Gary Palmer To: Karl Oulmi Message-ID: <20120511155153.GA31698@in-addr.com> References: <4FACCAEB.8040401@ibl.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FACCAEB.8040401@ibl.fr> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on noop.in-addr.com); SAEximRunCond expanded to false Cc: freebsd-fs@freebsd.org Subject: Re: Best practice for shared volume with iscsi Dell MD3200i ? 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: Fri, 11 May 2012 15:52:28 -0000 On Fri, May 11, 2012 at 10:16:43AM +0200, Karl Oulmi wrote: > Hi all, > > I am trying to run two freebsd9 boxes with a 3.7 TO shared iscsi volume > on a MD3200i. > > The goal is to run a "master" and a "slave" dovecot IMAP server with a > shared /home. > > I created the shared partition like this : > gpart create -s gpt /dev/da0 > gpart add -t freebsd-ufs /dev/da0 > newfs /dev/da0p1 > > Everything is working great on the "master" server, but when I'm trying > to mount the volume from the "slave" one, I have the following error : > mount: /dev/da0p1 : Operation not permitted > > The only way I have to successfully mount the share on the "slave" > server is to run a fsck -t ufs /dev/da0p1 and then do the mount. > > Could anyone tell me what's wrong ? UFS is not a cluster-aware filesystem. You cannot mount it in multiple places at the same time. The best you can hope for in that situation, short of developing a cluster-aware filesystem, is to only mount the volume on the slave if the master fails. Regards, Gary