Skip to main content

Disconnect a network volume from a dedicated server

warning

If you disconnect a network volume from a server that is part of a group, the volume will be disconnected from all servers in the group. A network volume cannot work with a server if they are not connected in the control panel.

  1. If the network volume was not mounted to the server in the server OS, skip this step. If the network volume was mounted to the server in the server OS, disconnect the network volume from the server in the server OS.
  2. Disconnect the network volume from the server in the control panel.

1. Disconnect the network volume from the server in the server OS

  1. Connect to the server via SSH or using the KVM console.

  2. Disconnect every iSCSI session:

    iscsiadm --mode node -T <IQN> -p <iscsi_target_ip_address_1> --logout --interface <iscsi_eth_name_1>
    iscsiadm --mode node -T <IQN> -p <iscsi_target_ip_address_2> --logout --interface <iscsi_eth_name_2>

    Specify:

    • <IQN> — the IQN of the first and second iSCSI target;
    • <iscsi_target_ip_address_1> — the IP address of the first iSCSI target;
    • <iscsi_target_ip_address_2> — the IP address of the second iSCSI target;
    • <iscsi_eth_name_1> — the name of the first iSCSI interface;
    • <iscsi_eth_name_2> — the name of the second iSCSI interface.
  3. Disable automatic mounting of the volume:

    iscsiadm --mode node -T <IQN> -p <iscsi_target_ip_address_1> --op update -n node.startup -v manual
    iscsiadm --mode node -T <IQN> -p <iscsi_target_ip_address_2> --op update -n node.startup -v manual

    Specify:

    • <IQN> — the IQN of the first and second iSCSI target;
    • <iscsi_target_ip_address_1> — the IP address of the first iSCSI target;
    • <iscsi_target_ip_address_2> — the IP address of the second iSCSI target.

2. Disconnect the network volume from the server in the control panel

  1. In the control panel, click Products in the top menu and select Dedicated Servers.
  2. Go to the Network Volumes and StorageNetwork Volumes tab.
  3. In the disk menu (), select Disconnect volume from server.
  4. Enter the volume name to confirm disconnection.
  5. Click Disconnect.