Step 1: Install the storage node
Before you begin, make sure that:
- You have root privileges on the computer on which you plan to install the storage node.
- The time on the storage node and the time on the inSync server match after considering the time zone difference. Suppose the inSync server is in London and the storage node is in Mumbai. The time zone difference between these two cities is 4:30 hours. So, if the time on the inSync server is 1:00 PM, the time on the storage node must be 5:30 PM. If the time difference is more than 120 seconds, storage node registration will fail.
- You downloaded the storage node installer.
From the directory that contains the .deb package, run the following command:
sudo dpkg -i <package_name>
From the directory that contains the .rpm package, run the following command
rpm -ivh <package_name>
Note: In these commands, <package_name> represents the filename (along with the extension) of the package.
Step 2: Generate the registration key
To generate the registration key
- Log on to the server where the storage node is installed.
- Run the following command:
sudo insync-storagenode-config.sh -k
The registration key is displayed.
- Copy the registration key.
Step 3: Register the storage node on the Master server
To register the storage node on the Master server
- Log on to the inSync Admin Console.
- On the menu bar, click Manage > Storage Nodes.
- Click Create New Storage Node.
- Enter the following information about the storage node, and then click Next:
- Storage node name: Enter a name for the storage node.
- Primary IP (or) FQDN: Enter the IP address or FQDN of the storage node.
- Backup & sync port: Enter the port used by the storage node for backing up and synchronizing data. By default, port 6061 is used for this purpose.
- User web access port: Enter the port used to access inSync Web. By default, port 443 is used for this purpose.
- Storage node registration key: Enter the registration key for the storage node.
- Enter the edge server details, if you are using one. For more information, see Setting up inSync Edge Servers.
- Click Create Storage Node.
Note: Make sure that the ports specified when registering the storage node are free on the server where the storage node is installed.
Step 4: (Best practice) Optimize memory management
To ensure optimum memory management of your Linux systems, perform these steps before you create a storage on the Linux storage node.
To ensure optimum memory management
- Log on to the storage node as a superuser.
- Run the following commands:
sysctl -w vm.drop_caches=2 sysctl -w vm.vfs_cache_pressure=200 sysctl -w vm.zone_reclaim_mode=6
- Open /etc/sysctl.conf file in a text editor and add the following lines to it:
vm.drop_caches=2 vm.vfs_cache_pressure=200 vm.zone_reclaim_mode=6
- Save the file.