-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Comments
@dohughes-msft |
@rdeltcheva can you please have a look? |
#reassign: @MicahMcKittrick-MSFT |
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 Jul 15 00:29:00 node1 systemd[1]: Starting Open-iSCSI... Jul 15 00:29:00 node1 systemd[1]: iscsi.service: Failed with result 'exit-code'. |
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 |
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.
The text was updated successfully, but these errors were encountered: