Disconnect a network volume from a dedicated server
If you detach the network volume from a server that is in a group, the volume will be detached from all servers in the group. A network volume cannot work with a server unless they are connected in the Control Panel.
- If the network volume was not connected to the server in the server OS, proceed to step 2. If the network volume was connected to the server in the server OS, disconnect the network volume from the server in the server OS.
- Disconnect the network volume from the server in the control panel.
1. Disconnect the network volume from the server in the server OS
Linux
Windows
-
Connect to the server via SSH or using the KVM console.
-
Output information about the network volumes:
multipath -llThe response will contain information about the disks. Remember or copy the name of the network volume.
-
Unmount the network volume:
umount /mnt/<block_storage_name>Specify
<block_storage_name>— the network volume name you copied in step 2, for examplempatha. -
Disable automatic connection to the iSCSI target:
iscsiadm -m node --op update -n node.startup -v manual -
Terminate all active iSCSI sessions:
iscsiadm -m node --logoutall=all -
Ensure there are no active iSCSI sessions:
iscsiadm -m session -
Output information about iSCSI interfaces:
iscsiadm -m iface -
Delete the iSCSI interfaces you created when connecting the network volume to the server:
iscsiadm -m iface -I <iscsi_eth_name_1> --op deleteiscsiadm -m iface -I <iscsi_eth_name_2> --op deleteSpecify:
<iscsi_eth_name_1>— the name of the first iSCSI interface you obtained in step 7;<iscsi_eth_name_2>— the name of the second iSCSI interface you obtained in step 7.
-
If you configured MultiPath-IO when connecting the disk, disable it:
multipath -Fsystemctl stop multipathdsystemctl disable multipathd -
Open the
netplanutility configuration file with thevi`` editor:vi /etc/netplan/50-cloud-init.yaml -
Remove from the
netplanutility file the static routes you added when connecting the disk to the server in step 3. -
Exit the
vitext editor saving your changes::wq -
Apply the configuration:
netplan apply
2. Disconnect the network volume from the server in the control panel
- In the control panel, in the top menu, click Products and select Dedicated Servers.
- Go to the Network Volumes and Storage section → Network Volumes tab.
- Open the disk page.
- Click .
- Confirm the disconnection by entering the disk name.
- Click Disconnect.