From: Carlos Maiolino <cmaiolino@redhat.com>
To: Gionatan Danti <g.danti@assyoma.it>
Cc: linux-xfs@vger.kernel.org
Subject: Re: XFS and multiple mounts protection (aka preventing multiple mounts)
Date: Fri, 5 May 2017 13:32:19 +0200 [thread overview]
Message-ID: <20170505113219.dovbzhbmt6e3ooem@eorzea.usersys.redhat.com> (raw)
In-Reply-To: <3cf2f8cd-d18f-2a65-c540-5527a366d2fb@assyoma.it>
On Fri, May 05, 2017 at 12:29:46PM +0200, Gionatan Danti wrote:
> Hi all,
> I have a question about multiple mounts protection in XFS.
>
> On the iSCSI list, discussing how to avoid accidental multiple mounts, I
> received the following advise: "Use XFS. XFS won't let you mount it several
> time on different machines without various "force" options."
>
> I just tried mounting an exported iSCSI disk formatted with XFS and I *can*
> mount it concurrently on two different Linux boxes (both CentOS 7.3 x86-64).
>
This is not true, XFS can't identify mounts on different systems. It is not a
shared or clustered filesystem.
At the worst case, it would need to store something to disk saying the
filesystem is already mounted, and the mount process would need to read it
before actually mounting the filesystem. Nothing though would prevent a race
between two systems, or even make the filesystem unmountable after a crash,
needing something like xfs_repair to clean some "is_mounted" flag, which would
trash one of the reasons why we have a journal (fast recovery without needing an
fsck before mounting).
> I am missing something?
> Thanks.
>
> --
> Danti Gionatan
> Supporto Tecnico
> Assyoma S.r.l. - www.assyoma.it
> email: g.danti@assyoma.it - info@assyoma.it
> GPG public key ID: FF5F32A8
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Carlos
next prev parent reply other threads:[~2017-05-05 11:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-05 10:29 XFS and multiple mounts protection (aka preventing multiple mounts) Gionatan Danti
2017-05-05 11:32 ` Carlos Maiolino [this message]
2017-05-05 11:52 ` Gionatan Danti
2017-05-05 12:25 ` Carlos Maiolino
2017-05-05 13:19 ` Gionatan Danti
2017-05-05 16:08 ` Emmanuel Florac
2017-05-10 8:12 ` Carlos Maiolino
2017-05-10 8:19 ` Gionatan Danti
2017-05-05 19:20 ` Eric Sandeen
2017-05-08 9:34 ` Gionatan Danti
2017-05-08 13:26 ` Eric Sandeen
2017-05-08 13:36 ` Gionatan Danti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170505113219.dovbzhbmt6e3ooem@eorzea.usersys.redhat.com \
--to=cmaiolino@redhat.com \
--cc=g.danti@assyoma.it \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).