Synology diskstation

From csml-wiki.northwestern.edu
Jump to navigation Jump to search

Pergamon is a Synology diskstation that can be accessed in a number of ways. It offers each group member 1 TB of storage space (this may be expanded in the future).

Usage scenarios

Logging in via ssh

You have the same username as on the main cluster. Log in from your workstation via 'ssh pergamon'. This is not a full Linux implementation; the main purpose of the shell is to navigate around the file system. Your home folder is '/volume1/homes/USERNAME'.

Web access

https://pergamon.ms.northwestern.edu:5001

Copying data to diskstation via scp

You can use scp as you would use it for copying files to any other machine:

scp LOCAL_FILES pergamon:

Copying data to diskstation via rsync

You must specify your home folder, i.e., from your workstation do

rsync -avz LOCAL_FILES pergamon:/volume1/homes/USERNAME

Mounting your Synology folder on OS X

On your Mac, start Finder, select 'Go' and then 'Connect to Server'. In server address, enter:

afp://pergamon.ms.northwestern.edu

From the folders offered, select 'home'. This folder is now available in Finder under 'Shared: pergamon' and from the command line on your Mac via '/Volumes/home'.

As an alternative, you can also mount your folder via the WebDAV protocol. This works in the same way, except that you enter the following for the server address:

https://pergamon.ms.northwestern.edu:5012

Accessing your Synology folder on your Linux workstation via WebDAV

On Ubuntu, open Nautilus (see e.g. https://www.synology.com/en-global/knowledgebase/tutorials/610#t2_3) and choose Connect to server. Then enter as Server Address:

davs://pergamon.ms.northwestern.edu:5012

On openSuSE, open Dolphin (from launcher go to "Computer" and then "Network"). Then choose Add Network Folder. In the dialog box, enter:

  • Name: Pergamon
  • User: your username
  • Server: pergamon.ms.northwestern.edu
  • Port: 5012
  • Folder: /
  • Check Use encryption. It is possible that the port is then reset to 443. If this happens, change it back to 5012.

Then proceed via Save & Connect. You will receive a warning about the SSL certificate. Accept this.

Mounting your Synology folder on your Linux workstation via WebDAV

Prerequisite: the davfs driver must have been installed and configured, see below under 'Enabling davfs'. Then, as regular user, do

mount /mnt/pergamon

To unmount, do

umount /mnt/pergamon

This works well, but one problem I observed is that the creation time of folders copied TO the Synology folder is not preserved when using 'cp -p' or 'cp -a'. In principle this should be possible (they are preserved when using rsync), so this appears to be a bug.

Mounting your Synology folder on your Linux workstation via NFS

This is technically possible, but currently not enabled.

Administration

Creating a new user

  • On the Control Panel, select User, Create.
    • Choose the same username as in NIS.
    • Join groups: Only users.
    • Assign shared folder permissions: read/write to homes, no access to all other folders.
    • User quota settings: 1000 GB.
    • Assign application permissions:
    • User speed limit setting: no limit.
  • After this, log in as root, and change /etc/passwd, such that for the new users /sbin/nologin is replaced with /bin/sh
  • Also, while logged in as root, do chmod og-rx /volume1/homes/newuser (where newuser is the new username)

Enabling davfs on Linux

These instructions are for openSuSE 13.1.

https://pergamon:5012   /mnt/pergamon   davfs   rw,noauto,user,file_mode=600,dir_mode=700 0 0
  • Create mount point:
mkdir /mnt/pergamon