Connect the network disk to a dedicated server with Proxmox OS
For more information about network drives in the instructions General product information Network drives.
- Create a SAN.
- Connect the network drive to the server.
- Connect the network disk to the server in the server OS.
- Configure MPIO.
- Add the disk to ProxmoxVE.
- Optional: connect the network drive to another server.
1. Create a SAN network
-
In the Control Panel, on the top menu, click Products and select Dedicated Servers.
-
Go to Network → SAN tab.
-
Click Add SAN.
-
Select an availability zone.
-
Enter a subnet address from the private address range
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16) or leave the subnet that is generated by default. The subnet size should be/20.
Make sure the subnet is not being used in your infrastructure. -
Click Create SAN.
2. Connect the network drive to the server
-
In the Control Panel, on the top menu, click Products and select Dedicated Servers.
-
Go to Network Disks and Storage → Network Disks tab.
-
Open the disk page → Server Connection tab.
-
In the Server field, click Select.
-
Select the server to which the network drive will be connected.
-
Click Confirm.
-
If you are connecting a network drive to a server with a private network, configure the network:
7.1 Select VLAN.
7.2 Enter the subnet CIDR from the private address range
10.0.0.0/8,172.16.0.0/12, or192.168.0.0/16..
Verify that the subnet does not overlap with the SAN that you created in step 1 and you are not using it in your infrastructure.7.3 Enter the Next hop 1 and Next hop 2 addresses from the selected private subnet.
7.4. Click Customize.
3. Connect the network disk to the server in the server OS
You can connect a network disk to the server manually or with the help of a ready- made script, which is formed in the control panel. The script can be used only on Ubuntu OS — see Connect a network disk to a dedicated Linux server for more details.
SAN network
-
Open the configuration file
/etc/network/interfaces.d/01-sanwith thevitext editor:vi /etc/network/interfaces.d/01-san -
On the network interfaces connected to the SAN switch, add IP addresses and write routes to gain access to iSCSI targets:
auto <eth_name_1>
iface <eth_name_1> inet static
address <ip_address_1>
up ip route add <destination_subnet_1> via <next_hop_1> dev <eth_name_1>
auto <eth_name_2>
iface <eth_name_2> inet static
address <ip_address_2>
up ip route add <destination_subnet_2> via <next_hop_2> dev <eth_name_2>Specify:
<eth_name_1>— name of the first network interface, it is configured on the first port of the network card;<eth_name_2>— name of the second network interface, it is configured on the second port of the network card;<ip_address_1>— The IP address of the first port on the network card. You can view it in the control panel: in the top menu, click Products → Dedicated Servers → section Network Disks and Storage → tab Network Disks → disk page → block Configuring Network Interfaces → column Port IP address;<ip_address_2>— The IP address of the second port on the network card. You can view it in control panel: from the top menu, click Products → Dedicated Servers → section Network Disks and Storage → tab Network Disks → disk page → block Configuring network interfaces → column Port IP address;<destination_subnet_1>— the destination subnet for the first port on the network card. You can view it in the control panel: from the top menu, click Products → Dedicated Servers → section Network Disks and Storage → tab Network Disks → disk page → block Configuring network interfaces → column Destination Subnet;<destination_subnet_2>— the destination subnet for the second port on the network card. You can look in the control panel: from the top menu, click Products → Dedicated Servers → section Network Disks and Storage → tab Network Disks → disk page → block Configuring network interfaces → column Destination Subnet;<next_hop_1>— gateway for the first port on the network card. You can see it in the control panel: in the top menu, click Products → Dedicated Servers → section Network Disks and Storage → tab Network Disks → disk page → block Configuring network interfaces → column Next hop (gateway);<next_hop_2>— gateway for the second port on the network card. You can look it up in the control panel: in the top menu, click Products → Dedicated Servers → section Network Disks and Storage → tab Network Disks → disk page → block Configuring network interfaces → column Next hop (gateway).
-
Exit the
vitext editor with your changes saved::wq -
Apply the configuration by rebooting the network:
systemctl restart networking -
Print the information about the network interfaces and verify that they are configured correctly:
ip a -
Optional: reboot the server.
-
Verify that the speed of each interface is at least 10 Gbps:
ethtool <eth_name_1> | grep -i speed
ethtool <eth_name_2> | grep -i speedSpecify
<eth_name_1>and<eth_name_2>as the names of the network interfaces configured in step 3. -
If the speed is below 10 Gbps, create a ticket.
-
Verify that the iSCSI target is available:
ping -c5 <iscsi_target_ip_address_1>
ping -c5 <iscsi_target_ip_address_2>Specify:
<iscsi_target_ip_address_1>— IP address of the first iSCSI target. Can be viewed in the control panel: in the top menu, click Products → Dedicated Servers → section Network Disks and Storage → tab Network Disks → disk page → block Configuring an iSCSI connection → field IP address of the iSCSI target 1;<iscsi_target_ip_address_2>— IP address of the second iSCSI target. You can view it in the control panel: in the top menu, click Products → Dedicated Servers → section Network Disks and Storage → tab Network Disks → disk page → block Configuring an iSCSI connection → field IP address of the iSCSI target 2.
-
Enter the name of the iSCSI initiator:
vi /etc/iscsi/initiatorname.iscsi
InitiatorName= <initiator_name>Specify
<initiator_name>— iSCSI initiatorname. You can view it in the control panel: in the top menu, click Products → Dedicated Servers → Network Disks and Storage → Network Disks tab → Disk page → iSCSI Connection Setup block → Initiator name field. -
Restart iSCSI:
systemctl restart iscsid.service -
Create iSCSI interfaces:
iscsiadm -m iface -I <iscsi_eth_name_1> --op new
iscsiadm -m iface -I <iscsi_eth_name_2> --op newSpecify:
<iscsi_eth_name_1>— name of the first iSCSI interface;<iscsi_eth_name_2>— name of the second iSCSI interface.
-
Bind the iSCSI interfaces to the network interfaces you configured in step 3:
iscsiadm -m iface --interface <iscsi_eth_name_1> --op update -n iface.net_ifacename -v <eth_name_1>
iscsiadm -m iface --interface <iscsi_eth_name_2> --op update -n iface.net_ifacename -v <eth_name_2>Specify:
<iscsi_eth_name_1>— name of the first iSCSI interface you created in step 13;<iscsi_eth_name_2>— name of the second iSCSI interface you created in step 13;<eth_name_1>— the name of the first network interface you configured in step 3;<eth_name_2>