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

One should specify "-T" in the iscsiadm command setting node.startup = automatic #41647

Closed
dohughes-msft opened this issue Oct 29, 2019 — with docs.microsoft.com · 5 comments

Comments

Copy link
Contributor

In the section where you connect the iSCSI target devices, you should specify the target (-T <target>) when setting the node.startup = automatic. If there are multiple targets (e.g. NFS, DB, ASCS) then they will all be set to automatic and then the start of the iscsi service will fail because this node only has access to its own target, in this case NFS.

In other words I recommend updating the commands to:

sudo iscsiadm -m discovery --type=st --portal=10.0.0.17:3260
sudo iscsiadm -m node -T iqn.2006-04.nfs.local:nfs --login --portal=10.0.0.17:3260
==> sudo iscsiadm -m node -p 10.0.0.17:3260 -T iqn.2006-04.nfs.local:nfs --op=update --name=node.startup --value=automatic

If you want to use multiple SBD devices, also connect to the second iSCSI target server

sudo iscsiadm -m discovery --type=st --portal=10.0.0.18:3260
sudo iscsiadm -m node -T iqn.2006-04.nfs.local:nfs --login --portal=10.0.0.18:3260
==> sudo iscsiadm -m node -p 10.0.0.18:3260 -T iqn.2006-04.nfs.local:nfs --op=update --name=node.startup --value=automatic

If you want to use multiple SBD devices, also connect to the third iSCSI target server

sudo iscsiadm -m discovery --type=st --portal=10.0.0.19:3260
sudo iscsiadm -m node -T iqn.2006-04.nfs.local:nfs --login --portal=10.0.0.19:3260
==> sudo iscsiadm -m node -p 10.0.0.19:3260 -T iqn.2006-04.nfs.local:nfs --op=update --name=node.startup --value=automatic


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@jakaruna-MSFT
Copy link
Contributor

@dohughes-msft
Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

@MSSedusch
Copy link
Contributor

@rdeltcheva can you please have a look?

@mimckitt
Copy link
Contributor

#reassign: @MicahMcKittrick-MSFT

@PRMerger10 PRMerger10 assigned mimckitt and unassigned MSSedusch Dec 30, 2019
@mimckitt mimckitt assigned MSSedusch and rdeltcheva and unassigned mimckitt Jan 14, 2020
@MSSedusch MSSedusch removed their assignment Jan 14, 2020
@ghost
Copy link

ghost commented Jul 14, 2020

Now service doesn't seems failing after using the below command, but getting the following output

iscsiadm -m node -T iqn.2006-04.nfs.local:nfs --login --portal=10.0.0.17:3260

`node1:~ # systemctl status iscsid && systemctl status iscsi
● iscsid.service - Open-iSCSI
Loaded: loaded (/usr/lib/systemd/system/iscsid.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2020-07-15 00:29:00 +08; 11min ago
Docs: man:iscsid(8)
man:iscsiuio(8)
man:iscsiadm(8)
Main PID: 7168 (iscsid)
Status: "Ready to process requests"
Tasks: 1 (limit: 4096)
CGroup: /system.slice/iscsid.service
└─7168 /sbin/iscsid -f

Jul 15 00:29:00 node1 systemd[1]: Starting Open-iSCSI...
Jul 15 00:29:00 node1 systemd[1]: Started Open-iSCSI.
Jul 15 00:29:00 node1 iscsid[7168]: iscsid: session cannot be terminted because it's trying to reconnect: try again later
Jul 15 00:29:03 node1 iscsid[7168]: iscsid: connection1:0 is operational after recovery (1 attempts)
Jul 15 00:29:06 node1 iscsid[7168]: iscsid: connection2:0 is operational after recovery (1 attempts)
Jul 15 00:29:09 node1 iscsid[7168]: iscsid: connection3:0 is operational after recovery (1 attempts)
● iscsi.service - Login and scanning of iSCSI devices
Loaded: loaded (/usr/lib/systemd/system/iscsi.service; disabled; vendor preset: enabled)
Active: active (exited) since Wed 2020-07-15 00:29:00 +08; 11min ago
Docs: man:iscsiadm(8)
man:iscsid(8)
Process: 7172 ExecStop=/sbin/iscsiadm -m node --logoutall=automatic (code=exited, status=2)
Process: 7174 ExecStart=/sbin/iscsiadm -m node --loginall=automatic (code=exited, status=15)
Main PID: 7174 (code=exited, status=15)
Tasks: 0 (limit: 4096)
CGroup: /system.slice/iscsi.service

Jul 15 00:29:00 node1 systemd[1]: iscsi.service: Failed with result 'exit-code'.
Jul 15 00:29:00 node1 systemd[1]: Starting Login and scanning of iSCSI devices...
Jul 15 00:29:00 node1 iscsiadm[7174]: iscsiadm: default: 1 session requested, but 1 already present.
Jul 15 00:29:00 node1 iscsiadm[7174]: iscsiadm: default: 1 session requested, but 1 already present.
Jul 15 00:29:00 node1 iscsiadm[7174]: iscsiadm: default: 1 session requested, but 1 already present.
Jul 15 00:29:00 node1 iscsiadm[7174]: iscsiadm: Could not log into all portals
Jul 15 00:29:00 node1 systemd[1]: Started Login and scanning of iSCSI devices.
`

@mimckitt
Copy link
Contributor

mimckitt commented Oct 9, 2020

We are currently cleaning up old issues and closing out items that are greater than 90 days old. If an issue is still present, please open a new feedback item on the document so we can prioritize correctly.

#please-close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants