Unison on Synology DS211

Unison Logo

I finally replaced my NAS with a newer model, a DS 211, which has the same form-factor, but a faster ARM processor. CPU performance was one reason for replacing it (it would basically get maxed out at around 6 MB/sec) the other was that support was discontinued, and among the newer firmware features I wanted was support for Time Machine in Lion. Most of the stuff worked out of the box, and file transfers are way faster. I reinstalled the ipkg package manager following the instructions you can find on the official wikis. The catch came when I wanted to install the unison file synchroniser which always complicated because it is not written in C, but in Ocaml, which always complicates matters.

  • There is no ipkg for unison in the standard package list.
  • Installing gcc and friends a compiling from the source does not work, because there is no native compiler for ARM processors.
  • Compiling the code but disabling native code generation did not work either, I was getting some random syntax errors.
  • I finally found a package in the unstable tree of NSLU2 Linux, this one installs fine.
  • I had to enable ssh access for the regular user account I use for synchronisation, by default, user-account cannot remote login, simply editing /etc/passwd did the trick.

Now unison works, but when doing a big sync, I’m back to ~6MB/sec, but this time, the bottleneck seems to be sshd which uses around 60% of the CPU, I will have to try other ciphers.

7 thoughts on “Unison on Synology DS211

  1. Finalement, je reste partisan de la machine plus ou moins complète, en tout cas capable de faire tourner une Debian par exemple, pour avoir la maîtrise totale des softs, plutôt que des magouilles et recherches.

  2. Par machine plus ou moins complète, je suppose que tu veux dire «une machine avec un CPU i386»? Ces NAS sont techniquement des machines complètes, il ne leur manque qu’une carte graphique, la grosse différences est le processeur ARM. Le problème des machines «complètes» avec un processeur intel, c’est qu’elles consomment en général beaucoup plus de courant et font plus de bruit. Le DS 211 consomme 11W en veille…

  3. @thias : 386 ou pas je m’en fiche ; je pense plus précisément « machine assez puissante et généraliste pour pouvoir faire tourner un OS complet digne de ce nom et des logiciels modernes, du genre d’une Debian et de tout ce qui tourne dessus :-) Et Debian tourne sur sur ARM non ?
    En résumé et en fondamental : je ne veux pas d’une machine qui me rendrait prisonnier de son choix de logiciels. Je voudrais soit quelque chose d’aussi con qu’un disque dur, soit quelque chose capable de faire tourner LE soft supplémentaire qui manque. N’étant pas adepte du cloud, je préfère avoir un petit serveur généraliste chez moi, donc si le NAS ne peut remplir ce rôle, ce sera dédié à une autre. (Je me réserve le droit de changer d’avis.)

    • Le hardware n’est pas le problème dans ce cas, il tourne un Linux tout à fait classique, avec un package manager (ipkg), le problème c’est qu’unison n’est pas très portable vu qu’il écrit en ocaml. Tu aurais les mêmes problèmes avec une Debian sur un processeur ARM…

  4. Hi. I’m super-pleased to find your post. Can you tell me how to install the ipkg thing on the DS211j? Do I need to download and run the installer? Thanks.

Leave a Reply to SimsonCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.