Skip to content

Allow disabling auto LUN scans#40

Merged
cleech merged 1 commit intoopen-iscsi:masterfrom
Akrog:feature/autoscan_en
Mar 7, 2017
Merged

Allow disabling auto LUN scans#40
cleech merged 1 commit intoopen-iscsi:masterfrom
Akrog:feature/autoscan_en

Conversation

@Akrog
Copy link
Copy Markdown
Contributor

@Akrog Akrog commented Feb 13, 2017

Allow disabling auto LUN scans

Existing behavior of auto scanning LUNs is problematic for some
deployments, particularly in cases where we are:

  • Accessing different LUNs from the same target on different machines
    and we don't want the other LUNs automatically exposed in other
    systems.

  • LUNs are constantly being created and removed from the target by
    another machine and we don't want our systems polluted by no longer
    available logical units, since default udev rules don't remove them
    automatically from the system once they have been added automatically.

This is a little more problematic when working with multipaths as we end
up with a lot of leftover device maps.

This patch introduces a new configuration option at the session level
called "scan", with "auto" and "manual" as acceptable values, that
allows us to disable the autoscan in the following cases:

  • On iscsid start
  • On login
  • On AEN/AER messages reporting LUNs data has changed.

For HW drivers all sessions will use the value defined in the
configuration file.

Default value for this new option is "auto" to maintain existing
behavior.

@Akrog Akrog force-pushed the feature/autoscan_en branch from 56d7e57 to af5af04 Compare February 13, 2017 20:55
Existing behavior of auto scanning LUNs is problematic for some
deployments, particularly in cases where we are:

- Accessing different LUNs from the same target on different machines
  and we don't want the other LUNs automatically exposed in other
  systems.

- LUNs are constantly being created and removed from the target by
  another machine and we don't want our systems polluted by no longer
  available logical units, since default udev rules don't remove them
  automatically from the system once they have been added automatically.

This is a little more problematic when working with multipaths as we end
up with a lot of leftover device maps.

This patch introduces a new configuration option at the session level
called "scan", with "auto" and "manual" as acceptable values, that
allows us to disable the autoscan in the following cases:

- On iscsid start
- On login
- On AEN/AER messages reporting LUNs data has changed.

For HW drivers all sessions will use the value defined in the
configuration file.

Default value for this new option is "auto" to maintain existing
behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants