From: Bob Peterson Subject: Re: Can one file system be R/W mounted multiple times in Linux? Date: Fri, 9 Jan 2015 08:25:15 -0500 (EST) Message-ID: <404451928.6537116.1420809915626.JavaMail.zimbra@redhat.com> References: <20150109035123.GG22149@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Eric Sandeen , Al Viro , linux-fsdevel@vger.kernel.org, linux-ext4 , stefanha@redhat.com To: Dexuan Cui Return-path: In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org > > >>> Can somebody please tell me if this usage is safe? > > >> > > >> Yes. > > But to be clear, just in case - this is completely different from, say, > > mounting the > > same ext4 fs on two different nodes on a SAN, which is quite certainly not > > safe... > > > > -Eric > > Thank Eric for pointing this out! > Can you please explain this? I didn't use SAN... > > Thanks, > -- Dexuan Hi Dexuan, I think Eric means mounting the same physical device from two different machines (whether they be VMs or nodes in a cluster, etc.) where shared storage is involved (like SAN or iSCSI). If one system has no knowledge of what the other is changing, the file system will likely be corrupted. It sounds like you're probably not doing that. However, shared file systems like gfs2 and ocfs2 are designed to allow simultaneous R/W access from multiple nodes, and the file system metadata is kept in sync and coherent across the cluster. I don't know if gfs2 allows multiple mounts from the same machine to different mount points, due to how its inter-node locking and journal recovery are coordinated. (I haven't tried it in recent years). Regards, Bob Peterson Red Hat File Systems