Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alua: enable alua for pscsi/tcmu if kernel reports support #99

Merged
merged 1 commit into from Aug 9, 2017

Conversation

mikechristie
Copy link

4.14 (it is currently the 4.13 feature window and I think we will
miss it) will add this patch

https://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git/commit/?h=for-next&id=c17d5d5f51f72f24e0e17a4450ae5010bf6962d9

commit c17d5d5f51f72f24e0e17a4450ae5010bf6962d9
Author: Mike Christie mchristi@redhat.com
Date: Mon Jul 10 14:53:31 2017 -0500

target: export lio pgr/alua support as device attr

which has the lio device report if it supports lio based ALUA.

This patch has rtslib check the configfs alua_support file for pscsi and tcmu to check if alua is supported in the kernel. Note that we only check for those two, because older kernels always supported ALUA for backends like iblock and file and so they should return true even if the alua_support file does not exist in configfs. For pscsi and tcmu it is the opposite and we need to return false if that file does not exist.

4.14 (it is currently the 4.13 feature window and I think we will
miss it) will add this patch

https://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git/commit/?h=for-next&id=c17d5d5f51f72f24e0e17a4450ae5010bf6962d9

commit c17d5d5f51f72f24e0e17a4450ae5010bf6962d9
Author: Mike Christie <mchristi@redhat.com>
Date:   Mon Jul 10 14:53:31 2017 -0500

    target: export lio pgr/alua support as device attr

which has the lio device report if it supports lio based ALUA.
We can then check this configfs file and know if we are using
a modern kernel with support and not worry about possibly crashing
the system.
@mikechristie
Copy link
Author

One correction on the kernel version the alua_support configfs patch will appear in. It looks like the LIO maintainer sent it for 4.13:

https://lkml.org/lkml/2017/7/13/715

@agrover agrover merged commit ec364f3 into open-iscsi:master Aug 9, 2017
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.

None yet

2 participants