Skip to contentSkip to conversation

Limit max concurrent sessions

DISCUSSION Gionatan Danti 3 participants 6 messages May 6, 2015 – Oct 2, 2015 SCSI

lore
Share & tools
lore
#0 lore raw

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.

Thank you,
regards.

Signature · 5 lines
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: [email protected] - [email protected]
GPG public key ID: FF5F32A8
#1 lore raw

Hi all,
anyone with some ideas / infos ?

Thanks.

Quoted 19 lines · Gionatan Danti

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.

Thank you,
regards.

Signature · 5 lines
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: [email protected] - [email protected]
GPG public key ID: FF5F32A8
#2 lore raw

Le Wed, 23 Sep 2015 16:20:01 +0200
Gionatan Danti <[email protected]> écrivait:

Quoted 24 lines

Hi all,
anyone with some ideas / infos ?

Thanks.

Quoted 18 lines · Gionatan Danti

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.

Signature · 10 lines
------------------------------------------------------------------------
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
#3 lore raw

Il 23-09-2015 17:18 Emmanuel Florac ha scritto:

Quoted 5 lines

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.

Thank you for the suggestion.
Unfortunately, due to specific requirements I must use EXT4.

So, there is no methods to limit concurrent connections? Thanks.

Signature · 5 lines
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: [email protected] - [email protected]
GPG public key ID: FF5F32A8
#4 lore raw

Le Sun, 27 Sep 2015 12:28:41 +0200
Gionatan Danti <[email protected]> écrivait:

Quoted 7 lines

Il 23-09-2015 17:18 Emmanuel Florac ha scritto:

Quoted 5 lines

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.

Quoted 5 lines

Thank you for the suggestion.
Unfortunately, due to specific requirements I must use EXT4.

So, there is no methods to limit concurrent connections? Thanks.

Not that I know of using LIO. However, using ietd you can use the MaxSession parameter to limit the number of concurrent sessions.

Signature · 10 lines
------------------------------------------------------------------------
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
#5 lore raw
In reply to Gionatan Danti
Quoted 9 lines · Gionatan Danti

Il 23-09-2015 17:18 Emmanuel Florac ha scritto:

Quoted 5 lines

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.

Thank you for the suggestion.
Unfortunately, due to specific requirements I must use EXT4.

ext4 has MMP support (multiple mount protection), you can enable it with tune2fs.

Cheers,
Bernd