linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gionatan Danti <g.danti@assyoma.it>
To: linux-xfs@vger.kernel.org
Cc: g.danti@assyoma.it
Subject: Re: XFS and multiple mounts protection (aka preventing multiple mounts)
Date: Wed, 10 May 2017 10:19:31 +0200	[thread overview]
Message-ID: <abdbde12-e17c-c90c-770c-7aa31888f070@assyoma.it> (raw)
In-Reply-To: <20170510081235.qjez42rvpdkzspf5@eorzea.usersys.redhat.com>

On 10/05/2017 10:12, Carlos Maiolino wrote:
>
> Well, having a planned infra-structure is a way, and using UUIDs for mounting
> the filesystems are two good ways to avoid mistakes with multiple mounts. UUIDs
> are unique for each filesystem, so even if the device name changes between
> boots, you can still be sure to mount the correct filesystem on the correct
> system by using their UUIDs
>

Sure, but this does not protect, for example, from a cloned virtual 
machine which mount a remote iSCSI path and which is started without 
knowing that. When the cloned machine tries to mount the remote path, 
bad things can happen.

The most obvious protection is at the iSCSI level, but only the old IETD 
SCSI target daemon seem to provide such as feature by the virtue of the 
"MaxSessions" parameter (I have not tested it, anyway). Another 
protection at the iSCSI level is granted by SCSI reservation, which 
works quite well but are somewhat harder to setup.

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

  reply	other threads:[~2017-05-10  8:19 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
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 [this message]
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=abdbde12-e17c-c90c-770c-7aa31888f070@assyoma.it \
    --to=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).