Skip to main content

Storage Node - Synology


Overview

Iagon has developed a node package specifically designed to run directly on Synology NAS devices, effectively removing the requirement for a dedicated server host. This integration enables users to leverage their existing NAS infrastructure for node operations, simplifying the process of contributing storage to the network.


IAG Stake Required

Following the setup of your device as a node, the network requires storage providers to demonstrate their commitment to the network and stake a balance of IAG tokens that is proportionate to the storage they wish to provide. The number of tokens required is dynamic and changes based on the current value of IAG tokens and how much storage a user wishes to provide. The calculation is as follows:

Current Base USD Staked per GB: 0.5
Initially set at $0.5 per gigabyte (GB) committed. Represents the minimum staking requirement in USD for each GB of storage.

Current Alpha Coefficient: 0.9
Determines how sensitive the staking requirement is to the IAG token price. Subject to adjustment based on market research.

Formula:

IAG to be staked = Storage (in GBs) * (Base USD Staked per GB + Alpha * (Base USD Staked per GB / IAG Value))

Installation

1. Download the installation package

  • Visit this link to download the CPU-specific installation package for your NAS platform.

    • Check what kind of CPU your Synology NAS has here.

2. Log in to DSM

3. Create a folder where you want to store files for Iagon

4. Change permissions to the folder just created (if the folder is a sub-folder, give the same permissions to the parent folder):

  • Right click and navigate to properties, and to the permissions tab

  • Click the create button to add new user/group.

  • Select Everyone for user or group.

  • Grant Take ownership and Read/Write permissions, then select Save.

5. Go to the Package Center and select manual install, then go through the installation process:

  • Select the Iagon Node .spk file for your synology device.
  • Agree through the unsigned message popup.
  • Enter the absolute path for the storage path and fill in the necessary inputs as prompted.
  • Set your node's storage commitment in GB.
  • Set a preferred port number, or use 1024 if you have no preference. This port does not need to be forwarded on your network.
  • Optional: Enter an auth key if you already have one for the device - this is generally used during node package updates.

6. Once the setup is complete, you’ll be prompted with an auth key:

  • This key will also be available in a file inside the storage path that you set during the installation process.

  • This auth key is required to register the node on the Iagon web dashboard and deposit your IAG stake.

7. After the installation process is complete, change the permissions of the folder that was committed to Iagon Node. Follow the same process as Step 4:

  • You can delete the Everyone permission from the list afterwards

8. Users can start/stop the Iagon Node from the Iagon Node tab inside the installed tab of the Package Center


View package installation and binary logs

Follow the following steps to view the Iagon Node Synology package's installation logs:

1. Open Task Scheduler from the services tab inside the DSM control panel

2. Create a new Triggered Task (User-defined Script)

3. Give a name to the task, set the User to root and the Event to Boot-up

4. Paste the script below in the User-defined script section in Task settings:

  • Update the following values in the script and mind the spaces between the paths specified:
    • <volume> = volume of the device, eg. volume1
    • <some-shared-folder> = shared folder in the volume, eg. tmp
mkdir /<volume>/<some-shared-folder>/iagon-bin-logs
mkdir /<volume>/<some-shared-folder>/package-logs
mount --bind /volume1/@apphome/IagonNode /<volume>/<some-shared-folder>/iagon-bin-logs
mount --bind /var/log/packages /<volume>/<some-shared-folder>/package-logs

5. Click Ok to save

6. Reboot the system for the changes to take effect:

  • After rebooting, you should see the folders being created in the shared-folder specified before.
  • The installation logs can be found under the package-logs folder, named IagonNode.log.
  • The logs related to Iagon Node itself can be found under iagon-bin-logs.

Note: It is always a good idea to unmount the system folders after use cases. For that you can create another Triggered Task (User-defined Script).


Remove the logs

1. Create another Triggered Task (User-defined Script)

2. Paste the script below in the User-defined script section in Task settings. (Ps. Mind the spaces between the paths specified):

  • Update the following values in the script:
    • <volume> = volume of the device, eg. volume1
    • <some-shared-folder> = shared folder in the volume, eg. tmp
unmount /<volume>/<some-shared-folder>/iagon-bin-logs
unmount /<volume>/<some-shared-folder>/package-logs

3. Click Ok to save.

4. Reboot the system for the changes to take effect:

  • After rebooting, you should see the folders inside being removed.
info

Remember to uncheck the iagon-logs task before applying this iagon-logs-unmount task.


Visit here