Disconnect a network volume from a dedicated server
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 be used with a server if they are not connected in the control panel.
- If the network drive was not connected to the server in the server OS, proceed to step 2. If the network drive was connected to the server in the server OS, disconnect the network drive from the server in the server OS.
- Detach the network drive 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 via the KVM console.
-
Output information about the network volumes:
multipath -llInformation about the volumes will appear in the response. Remember or copy the network volume name.
-
Unmount the network volume:
umount /mnt/<block_storage_name>Specify
<block_storage_name>— the name of the network drive that you copied in step 2, for example,mpatha. -
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 that you obtained in step 7;<iscsi_eth_name_2>— the name of the second iSCSI interface that you obtained in step 7.
-
If you configured MultiPath-IO when connecting the drive, disable it:
multipath -Fsystemctl stop multipathdsystemctl disable multipathd -
Open the configuration file of the
netplanutility in thevitext editor:vi /etc/netplan/50-cloud-init.yaml -
Delete static routes from the
netplanutility file that you added when connecting the drive to the server in step 3. -
Exit the
vitext editor and save 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 Network drives and storage systems → Network drives.
- Open the disk page.
- Click .
- Confirm the disconnection by entering the disk name.
- Click Detach.