Le Wed, 23 Sep 2015 16:20:01 +0200
Gionatan Danti <[email protected]> écrivait:
> Hi all,
> anyone with some ideas / infos ?
>
> Thanks.
>
> On 06/05/15 17:36, Gionatan Danti wrote:
> > Hi all,
> > I would like to understand if, and how to, limit the maximum number
> > of simultaneous connections to a specific LUN, both with the old
> > iSCSI stack (tgtadmin and friends) and the new one (targetcli and
> > the likes).
> >
> > I am exporting a LUN with a general purpose filesystem (non cluster
> > aware) and I would be 100% sure that only a single machine at a
> > time can mount it.
> >
> > At the moment, I protected the iSCSI LUN with both an IP-based
> > access list and a username/password combo, but hard limiting the
> > maximum number of connections opened against it to 1 (one) would be
> > a nice thing...
> >
> > As I have mixed RHEL 6 and 7 environment, I am interested in how to
> > do that on both the old and new iSCSI stack.
> >
Use XFS. XFS won't let you mount it several time on different machines
without various "force" options.
Alternatively, use a cluster-aware FS like ocfs2. Ocfs2 is quite easy
to set up.
--
------------------------------------------------------------------------
Emmanuel Florac | Direction technique
| Intellique
| <[email protected]>
| +33 1 78 94 84 02
------------------------------------------------------------------------
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html