Re: Can one file system be R/W mounted multiple times in Linux?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > >>> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux