Azure VM (linux centos 8) cannot mount disks

mmac 71 Reputation points
2024-11-14T20:18:17.8066667+00:00

Getting this message when trying to mount restore points. Turned off firewall, selinux - nothing seems to be using the port.

We are unable to communicate via the port 3260 on this machine since it is being used by ISCSI target server or any other application. Please unblock the port or use another machine where the port is open for communicatoin

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


Answer accepted by question author
Nikhil Duserla 9,945 Reputation points Microsoft External Staff Moderator
2024-11-25T18:18:28.7566667+00:00

Hi @mmac,

Thank you for reaching out to us again and confirming that the issue has been resolved.

As an original poster cannot accept their own answer, I am reposting it so that you can accept it an answer. Accepted answer will help other community members navigate to the appropriate solutions.

Issue: We are unable to communicate via the port 3260 on this machine since it is being used by ISCSI target server or any other application. Please unblock the port or use another machine where the port is open for communication.

Solution: Go into system delete all of the targetcli/iscsi entries i had made, save config.

targetcli /iscsi delete targetname targetcli save

targetcli ls

located some of the old python scripts- ran them with the 'clean' option. rebooted. explicitly stopped and started the the service 'systemctl stop target.service' & 'systemctl start target.service'. Confirmed the deletion was still there 'targetcli ls'

Ran a download script and it magically worked.

Random guess - the server was holding on to an older recovery and the steps above cleared something.

User's image

Was this answer helpful?

0 comments No comments

6 additional answers

Sort by: Newest
  1. mmac 71 Reputation points
    2024-11-18T14:43:18.9633333+00:00

    Still no joy.

    User's image

    Was this answer helpful?


  2. Mounika Reddy Anumandla 7,135 Reputation points Moderator
    2024-11-15T05:30:26.6+00:00

    Hi mmac,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    The error message you're encountering indicates that there is an issue with the iSCSI connection, specifically related to port 3260, which is the default port used for iSCSI communication.

    I would recommend the following troubleshooting steps:

    • Since the error message suggests that port 3260 may already be in use, you can check for any processes that might be using this port:
       *sudo netstat -tuln | grep 3260*
      
    • Even though you've turned off the firewall and SELinux, it's worth double-checking that there are no lingering rules that could be affecting the connection.
    • Use the following command to check for any active firewall rules: sudo iptables -L -n
    • Ensure that SELinux is indeed disabled by running: sestatus
    • You can test connectivity to the iSCSI target using telnet or nc (netcat) to see if you can reach the target on port 3260:
       *telnet <IP_ADDRESS_OF_ISCSI_TARGET> 3260*
      
    • If everything seems fine, try using the iscsiadm command to reconnect to the target.
    • Sometimes, restarting the iSCSI service can help resolve port conflicts. If you have any further queries, do let us know. If the answer is helpful, please click "Accept Answer" and "Upvote it."

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.