Setting Up Metadata Servers

Setting Up Master Metadata Server on the First Node

To set up a master metadata server on the node:

  1. Log in to the first node that you want to configure as a master metadata server as root or as a user with root privileges.
  2. Download and install the following RPM packages vstorage-ctl, vstorage-libs-shared, and vstorage-metadata-server on the first node with the following command:

    # yum install vstorage-metadata-server
  3. To create the first MDS server, use the vstorage make-mds command, for example:

    # vstorage -c cluster1 make-mds -I -a <HW1_IP> -r /vz/cluster1-mds -p  
  4. Start the MDS management service (vstorage-mdsd) and configure it to start automatically when the server boots:

    # systemctl start vstorage-mdsd.target

Setting Up Regular Metadata Server on the Rest of the Nodes

To set up a regular metadata server on the node:

  1. Log in to the second/third node, that you want to configure as a regular metadata server, as root or as a user with root privileges.
  2. Download and install the following RPM packages vstorage-ctl, vstorage-libs-shared, and vstorage-metadata-server on the node with the following command:

    # yum install vstorage-metadata-server
  3. Authenticate the server in the cluster:

    # vstorage -c cluster1 auth-node 
    Please enter password for cluster:

    During its execution, the command asks you for the password to validate the server. Enter the password, that you specified when setting up the first MDS server, and press Enter. vstorage then compares the provided password with the one, stored on the MDS server, and if the passwords match, successfully authenticates the server.

  4. Create the MDS server and add it to the cluster:

    # vstorage -c cluster1 make-mds -a <HW2_IP> -r /vz/cluster1-mds
  5. Start the MDS management service (vstorage-mdsd) and configure it to start automatically when the server boots:

    # systemctl start vstorage-mdsd.target