Connect a network drive to the server
Connect a network drive to the server
- Create a SAN.
- Connect the network drive to the server.
- Connect the network disk to the server OS server.
- Configure MPIO.
Create a SAN network
- In control panels go to Servers and hardware → Network disks and storage → tab Network disks.
- Open the disk page → tab Connecting to the server.
- Click on the link Create a SAN.
- Click Add SAN.
- Select the location of the disk — accessibility zone.
- Enter a subnet or leave the subnet that is generated by default. The subnet must belong to a private address range
10.0.0.0/8
,172.16.0.0/12
or192.168.0.0/16
and should not already be in use in your infrastructure. - Click Create a SAN.
Connect the network drive to the server
- In control panels go to Servers and hardware → Network disks and storage → tab Network disks.
- Open the disk page → tab Connecting to the server.
- In the field Server click Select.
- Select the server to which the network drive will be connected. You can only connect the network drive to to a dedicated off-the-shelf configuration server with the NIC to the SAN.
- Click Connect.
Connect the network disk to the server in the server OS
Ubuntu
-
Connect to the server via SSH or through KVM console.
-
Open the utility configuration file
netplan
with the vi text editor:vi /etc/netplan/50-cloud-init.yaml
-
Add IP addresses to the network interfaces connected to the SAN switch and write routes to gain access to iSCSI targets:
<eth_name_1>:
addresses:
- <ip_address_1>
routes:
- to: <destination_subnet_1>
via: <next_hop_1>
<eth_name_2>:
addresses:
- <ip_address_2>
routes:
- to: <destination_subnet_2>
via: <next_hop_2>Specify:
<eth_name_1>
— name of the first network interface. The first network interface is configured on port #1 of the network card;<eth_name_2>
— name of the second network interface. The second network interface is configured on port #2 of the network card;<ip_address_1>
— The IP address of port #1 on the network card. You can look in control panels under Servers and hardware → Network disks and storage → tab Network disks → disk page → partition iSCSI initiator parameters → field IP address of port No. 1 of the network card;<ip_address_2>
— The IP address of port No. 2 of the network card. You can look in control panels under Servers and hardware → Network disks and storage → tab Network disks → disk page → partition iSCSI initiator parameters → field IP address of port No. 2 of the network card;<destination_subnet_1>
— destination subnet for port #1 on the network card. You can look in control panels under Servers and hardware → Network disks and storage → tab Network disks → disk page → partition Static routes for connecting to iSCSI targets → column Destination subnetwork;<destination_subnet_2>
— destination subnet for port #2 on the network card. You can look in control panels under Servers and hardware → Network disks and storage → tab Network disks → disk page → partition Static routes for connecting to iSCSI targets → column Destination subnetwork;<next_hop_1>