Configuration NAS Mystique

From miki
Jump to navigation Jump to search

See also:

References documentation

CloudStation vs Drive

Reference information

  • Device: Synology NAS DS418play (four bays).
  • Name: Mystique.
  • Web interface: http://mystique:5000, then log in with admin account admin.
  • SSH: ssh admin@mystique, then sudo -i to get root access.
Or use any other member of the administrator group.
  • LAN 1:
  • MAC address 00:11:32:82:F8:89
  • Static address 192.168.1.97.
  • LAN 2:
  • ???
  • Specification:
  • Synology DS418play
  • 4 x Seagate IronWolf 4 TB
Hard drive 3.5" 4 To 5900 RPM 64 Mo Serial ATA 6 Gb/s for NAS (bulk)
Disk 3 crash (bad sectors) in May 2023 (bought September 2018, lifetime 4 yr 8 months).

Installation

Issue: Must use chromium (requires java)
  • Enable QuickConnect.
Must visit http://QuickConnect.to/immie-mystique
  • Recommended packages: Moments, Video Station, Media Server, Audio Station, Hyper Backup, Drive, Download Station.
  • Don't share device location for find.synology.com.

From now on, we must use http://mystique:5000/ to connect to the NAS.

SSH
  • First time, must connect from account with no ssh configuration.
  • Copied authorized_keys, but had to chmod permissions (700 for home, 755 for .ssh, 644 for authorized_keys).
Network
  • Use static address 192.168.1.97.
File Service
  • SMB, change workgroup name from WORKGROUP to HELL.
  • Disable AFP.
  • Enable Fast-File Copy (on btrfs shared folder).
Notification
  • Recipient's email address: m.mystique@immie.org
  • prefix: [mystique]
  • SMTP: Using Scarlet (smtp.scarlet.be, 465).
Drive
  • Using Drive ShareSync instead of CloudSync Server.
  • See Synology page (client).
Task scheduler
  • Schedule 'Recycle Bin' task, every wednesday, delete 28-day old or older files.
Replication
  • Install Snapshot Replication package.
  • Go to Storage manager → Volume → Action → Configure and set Record File Access Time Frequency to Never (was on Daily), to improve replication performance (suggested during install).

Maintenance

  • 2020-04-28 — Warning disk low (10GB Total, 2GB avail).
  • 2020-05-02 — Install Storage Analyzer.

Backup strategy

Wolverine

The table below list the shared folder of Wolverine and how they are backed up to Mystique.

Shared folder Backup strategy
family Drive ShareSync
homes Shared Folder Sync (=rsync), daily, 2.05am (encryption and block-based)
music Drive ShareSync
NetBackup NONE (empty)
photo Drive ShareSync
video Drive ShareSync

Notes:

  • Wolverine acts as the client, it uses then Drive ShareSync.
  • The Drive ShareSync is disabled during standard hour. It is enabled from 02.00am to 03.00am.
  • Mystique acts as the server, it uses then Drive Server.
  • Mystique automatically wakes up during backup time (from 02.00am to 03.00am).
  • Drive ShareSync is actually a module of Drive Server. See Synology page for setting up.
  • Note: Deletion are not detected when Drive ShareSync is off on the client.
  • As a result, deleted files will be restored. This is kinda nice feature, but it means we must think to enable the Drive Server service first before doing some clean up...
  • We use rsync to sync homes, that contains the backup, to avoid that deletion issue.
  • Because we use rsync to sync the homes share from Wolverine to Mystique, the home service on Mystique must be disabled.

Mnemosyne

The table below list the shared folder of Mnemosyne and how they are backed up to Mystique.

Shared folder Backup strategy
homes NONE
movie Shared Folder Sync, manually
music NONE (empty)
NetBackup NONE (empty)
photo NONE (empty)
video NONE (empty)

Mystique

On the mid-term, Mystique will be entirely replicated to a remote NAS via internet. For now, we have the following shares and backup strategy.

Shared folder Backup strategy BTRFS Snapshot
family CloudStation ShareSync Daily (2.00am), retention 24/7/2/1/1
homes Sync'ed from Wolverine Daily (2.00am), retention 12/3/1/0/0
movie Sync'ed from Mnemosyne Daily (2.00am), retention 12/7/2/1/1
music CloudStation ShareSync Daily (2.00am), retention 24/7/2/1/1
NetBackup NONE (empty)
photo CloudStation ShareSync Daily (2.00am), retention 24/7/2/12/1
video CloudStation ShareSync Daily (2.00am), retention 24/7/2/12/1

Troubleshoot

Sync issues with CloudStation - Wolverine

Family
  • Some files missing, but in the exclude list (Thumbs.db, *.tmp, *.swp, *.lnk, desktop.ini).
  • Some file missing that should not (~500MB:
  • Files in Program Files folder.
There is no fix for that [1]. Only solution is to rename the folder or zip it.