6.4. Virtuozzo Storage Ports¶
This section lists the ports that must be open on servers that participate in a Virtuozzo Storage cluster, in addition to the ports used by Virtuozzo.
The following ports must be open on an MDS server:
- Listening ports: 2510 for incoming connections from other MDS serves and 2511 for incoming connections from chunk servers and clients
- Outbound ports: 2510 for outgoing connections to other MDS servers
By default, Virtuozzo Storage uses port 2510 for communication between MDS servers and port 2511 for incoming connections from both chunk servers and clients. You can override the default ports when creating MDS servers:
Reserve two unoccupied consecutive ports.
The ports must be the same on all MDS servers you plan to set up in the cluster.
vstorage make-mdscommand to create the MDS server and specify the lower port after the server IP address.
For example, to set up ports 4110 and 4111 for MDS communication in the
stor1 cluster, you can run this command:
# vstorage -c stor1 make-mds -I -a 10.30.100.101:4110 -r /vstorage/stor1-mds -p
If you choose to use custom ports 4110 and 4111, do the following:
- On each MDS server with custom ports, open ports 4110 and 4111 for inbound traffic and port 4110 for outbound traffic.
- On all chunk servers and clients in the cluster, open port 4111 for outbound traffic.
The following ports must be open on a chunk server:
- Listening ports: a randomly chosen port for incoming connections from clients and other chunk servers
- Outbound ports: 2511 for outgoing connections to MDS servers and a randomly chosen port for outgoing connections to other chunk servers
The chunk server management service requires
- A port to communicate with MDS servers (either the default port 2511 or your custom port).
- A port to communicate with chunk servers and clients.
By default, the service binds to any available port. You can manually redefine the port by passing the
-a option to the
vstorage make-cs command when creating a chunk server. For example, to configure the management service to use port 3000, run this command:
# vstorage make-cs -r /vstorage/stor1-cs -a 184.108.40.206:3000
Once you set a custom port, open this port for outbound traffic on all clients and other chunk servers in the cluster.
The following ports must be open on a client:
- Listening ports: no
- Outbound ports: 2511 for outgoing connections to MDS servers and a port configured as the listening one on chunk servers
By default, Virtuozzo Storage automatically opens on a client the following outbound ports:
- For communication with MDS servers, the default port 2511.
- For communication with chunk servers, the port that was configured as the listening one on your chunk servers.
If you specify custom ports for MDS and chunk server communication, open these ports on the client for outgoing traffic. For example, if you configure port 4111 on MDS servers and port 3000 on chunk servers for communication with clients, open outbound ports 2511 and 3000 on the client.