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

Use hosts, host-groups in iscsi target #45

Closed
hoannv46 opened this issue Mar 13, 2019 · 2 comments
Closed

Use hosts, host-groups in iscsi target #45

hoannv46 opened this issue Mar 13, 2019 · 2 comments

Comments

@hoannv46
Copy link

Hi all.

i setup 2 ceph-iscsi gateway and 1 iscsi-initiator.

Ceph and ceph-iscsi version :

ceph-iscsi-config-2.6-2.6.el7.noarch
python-ceph-argparse-14.1.0-0.el7.x86_64
libcephfs2-14.1.0-0.el7.x86_64
ceph-iscsi-cli-2.7-2.7.el7.noarch
python-cephfs-14.1.0-0.el7.x86_64
ceph-common-14.1.0-0.el7.x86_64
ceph-iscsi-tools-2.1-2.1.el7.noarch

tcmu, rtslib, targetcli version :

python-rtslib-2.1.fb67-2.5.noarch
libtcmu-1.4.0-106.gd17d24e.el7.x86_64
targetcli-2.1.fb47-0.1.el7.noarch
tcmu-runner-1.4.0-106.gd17d24e.el7.x86_64

image

Ater create 2 hosts, i discovery iscsi target and login. Iscsi initiator map all lun.

image

I want to 1 initiator use 1 hosts.
How i can restrict lun base hosts and host-groups.

Thanks.

@dillaman
Copy link

@hoanhdo You should use the multipath device for IO so that it properly fails over/back between the two iSCSI gateways. Since you have 2 LUNs exported over two gateways, you should expect 4 raw block devices.

@mikechristie
Copy link
Contributor

@hoanhdo

Use the multipath.conf for linux initiators here:

http://docs.ceph.com/docs/mimic/rbd/iscsi-initiator-linux

The multipath tools will do everything for you.

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

No branches or pull requests

3 participants