Configuration NAS Wolverine: Difference between revisions

From miki
Jump to navigation Jump to search
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
See also:
* [[Configuration NAS Wolverine]]
* [[Configuration NAS Mystique]]
* [[Synology]]

== Reference information ==
== Reference information ==
* Device: '''Synology NAS DS118''' (one bay).
* Device: '''Synology NAS DS118''' (one bay).
Line 24: Line 29:
* SMB, change workgroup name from <tt>WORKGROUP</tt> to <code>HELL</code>.
* SMB, change workgroup name from <tt>WORKGROUP</tt> to <code>HELL</code>.
* Disable '''AFP'''.
* Disable '''AFP'''.
* Disable '''SMB Opportunistic Locking''' to fix 30s time-out in Plex.
:* Or alternative fix: Enable '''SMB Opportunistic Locking''' AND '''SMB2 Lease'''.


; Miscellaneous
; Miscellaneous
Line 34: Line 41:
:* Otherwise <code>borg init</code> complains there is already something there.
:* Otherwise <code>borg init</code> complains there is already something there.


; Network:
; Network
* Use static address <code>192.168.1.98</code>.
* Use static address <code>192.168.1.98</code>.


;Task scheduler
=== Task scheduler ===
* Schedule 'Recycle Bin' task, every wednesday, delete 28-day old or older files.
* Schedule 'Recycle Bin' task, every wednesday, delete 28-day old or older files.
* Schedule 'CloudStation On' task, everyday, 01:45am.
* Schedule 'CloudStation On' task, everyday, 01:45am.
* Schedule 'CloudStation Off' task, everyday, 03:00am.
* Schedule 'CloudStation Off' task, everyday, 03:00am.
:* '''{{red|NOTE}}''': Because of this, we '''CANNOT DELETE''' files on Wolverine. When deleting, the files will be restored at next resync. This is somewhat a nice effect. To have permanent deletion, first START the CloudStation service in the '''Package Center'''.
:* '''{{red|NOTE}}''': Because of this, we '''CANNOT DELETE''' files on Wolverine. When deleting, the files will be restored at next resync. This is somewhat a nice effect. To have permanent deletion, first START the CloudStation service in the '''Package Center'''.

=== Borg - disabled ===
* Install Borgbackup server locally
* Serve through ssh (<code>borg server</code> in {{file|authorized_keys}}).
* Performance are quite good...
* ... but over the time, consume much too much memory in NAS (~350MB and more), and the poor beast is swapping constantly.
* ... So temporarily moving the borg server to pi4 voldemort.

=== Bit torrent - Amule ===
* Enabled, go to http://wolverine/download/.
* Must log with admin to configure. Standard user is <code>TIGGI888</code>.
* Must map TCP ports 4662 / 4672 on the firewall.
:* Do we still need UDP forward at TCP+2 (4665)?
:* Note that since we have two routers in cascade, the port fwding must go as follows: '''upstream router -> use downstream router IP; downstream router: use NAS IP'''.
* To kick in Emule and kad network and get updated server list, must download at least one file from any peer (and have update server list option checked).
* Amule process seems to consume some memory. Let's disable it for now...

=== Plex ===
* To use with Nvidia Shield TV
* Install 3rd-party app '''Plex Media Server'''.
* Must connect using the IP address: http://192.168.1.98:32400/web [https://forums.plex.tv/t/media-server-not-found-by-web-app/237740/5] (We get Media server not found when using wolverine name).
* Update manually to version 1.20.x.
* Got another ''Media server not found'', or ''wolverine not available''. It turned out that the application was stopped on the NAS.
* Add family/movie folder in library. Metadata scrapping seems to work ok.
* In Transcoder, advanced: select Disable video stream transcoding (as a result, all client must set their quality to maximum. NAS is not powerful enough to transcode anyway).

=== SyncThing ===
* https://wolverine/syncthing
* [https://docs.kastelo.net/synology/], [https://docs.syncthing.net/]
* Note: Maybe a better option would be to install it on Raspberry (to have separate server running per user).
* Install package from package manager.
* Enable package auto-update
* Go to Shared Folders, select Family, select permission, select drop down list "internal user", and add permission for syncthing.net [https://forum.syncthing.net/t/synology-nas-syncthing-permission-issues/14450].
* Go to synology syncthing GUI, and add GUI user / password.

== Maintenance ==
* See '''NAS not responsive after recent upgrade (April 2020)'''.
* Situation seems back to normal now.
* 2020-05-02 &mdash; Install '''Storage Analyzer'''.
* 2020-05-02 &mdash; Install '''Download Station'''.
:* Max upload rate: 20 -> 0.
:* Enable UPnP/NAT-PMP.
:* Enable Control Panel -> Application Portal -> alias https://wolverine/download/.
:* Create new user <code>TIGGI888</code>, group <code>user</code>, with application access allow to DS, and denied to other apps.
* 2021-06-07:
:* Noticed Drive ShareSync was pause. Enabling it bring the whole NAS to a stop.
:* The most consuming services are:
::* amuled
::* Plex
:* Stopping Plex (maybe it'll restart at boot).
:* Stopping Amuled.

== Backup ==
See [[Configuration NAS Mystique]].


== Troubleshooting ==
== Troubleshooting ==

Latest revision as of 16:40, 25 May 2024

See also:

Reference information

  • Device: Synology NAS DS118 (one bay).
  • Name: Wolverine.
  • Web interface: http://wolverine:5000, then log in with admin account admin.
  • SSH: ssh admin@wolverine, then sudo -i to get root access.
Or use any other member of the administrator group.
  • Static address 192.168.1.98.
  • Specification:
  • Synology DS118
  • Seagate IronWolf 4 TB
Hard drive 3.5" 4 To 5900 RPM 64 Mo Serial ATA 6 Gb/s for NAS (bulk)

Installation

Issue: Must use chromium (requires java)
  • Enable QuickConnect.
Must visit http://QuickConnect.to/immie-wolverine
  • 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 to connect to the NAS.

File Service
  • SMB, change workgroup name from WORKGROUP to HELL.
  • Disable AFP.
  • Disable SMB Opportunistic Locking to fix 30s time-out in Plex.
  • Or alternative fix: Enable SMB Opportunistic Locking AND SMB2 Lease.
Miscellaneous
  • Set user only permission in /homes:
  • Login with ssh using admin account.
  • Become root sudo -i
  • Set acccess rights with chmod 700 /volume1/homes/admin /volume1/homes/baddreams /volume1/homes/borg
Question: Should we instead enable option Hide sub-folders and files from users without permissions?
  • Remove #recycle folder from share /volume1/borg.
  • Otherwise borg init complains there is already something there.
Network
  • Use static address 192.168.1.98.

Task scheduler

  • Schedule 'Recycle Bin' task, every wednesday, delete 28-day old or older files.
  • Schedule 'CloudStation On' task, everyday, 01:45am.
  • Schedule 'CloudStation Off' task, everyday, 03:00am.
  • NOTE: Because of this, we CANNOT DELETE files on Wolverine. When deleting, the files will be restored at next resync. This is somewhat a nice effect. To have permanent deletion, first START the CloudStation service in the Package Center.

Borg - disabled

  • Install Borgbackup server locally
  • Serve through ssh (borg server in authorized_keys).
  • Performance are quite good...
  • ... but over the time, consume much too much memory in NAS (~350MB and more), and the poor beast is swapping constantly.
  • ... So temporarily moving the borg server to pi4 voldemort.

Bit torrent - Amule

  • Enabled, go to http://wolverine/download/.
  • Must log with admin to configure. Standard user is TIGGI888.
  • Must map TCP ports 4662 / 4672 on the firewall.
  • Do we still need UDP forward at TCP+2 (4665)?
  • Note that since we have two routers in cascade, the port fwding must go as follows: upstream router -> use downstream router IP; downstream router: use NAS IP.
  • To kick in Emule and kad network and get updated server list, must download at least one file from any peer (and have update server list option checked).
  • Amule process seems to consume some memory. Let's disable it for now...

Plex

  • To use with Nvidia Shield TV
  • Install 3rd-party app Plex Media Server.
  • Must connect using the IP address: http://192.168.1.98:32400/web [1] (We get Media server not found when using wolverine name).
  • Update manually to version 1.20.x.
  • Got another Media server not found, or wolverine not available. It turned out that the application was stopped on the NAS.
  • Add family/movie folder in library. Metadata scrapping seems to work ok.
  • In Transcoder, advanced: select Disable video stream transcoding (as a result, all client must set their quality to maximum. NAS is not powerful enough to transcode anyway).

SyncThing

  • https://wolverine/syncthing
  • [2], [3]
  • Note: Maybe a better option would be to install it on Raspberry (to have separate server running per user).
  • Install package from package manager.
  • Enable package auto-update
  • Go to Shared Folders, select Family, select permission, select drop down list "internal user", and add permission for syncthing.net [4].
  • Go to synology syncthing GUI, and add GUI user / password.

Maintenance

  • See NAS not responsive after recent upgrade (April 2020).
  • Situation seems back to normal now.
  • 2020-05-02 — Install Storage Analyzer.
  • 2020-05-02 — Install Download Station.
  • Max upload rate: 20 -> 0.
  • Enable UPnP/NAT-PMP.
  • Enable Control Panel -> Application Portal -> alias https://wolverine/download/.
  • Create new user TIGGI888, group user, with application access allow to DS, and denied to other apps.
  • 2021-06-07:
  • Noticed Drive ShareSync was pause. Enabling it bring the whole NAS to a stop.
  • The most consuming services are:
  • amuled
  • Plex
  • Stopping Plex (maybe it'll restart at boot).
  • Stopping Amuled.

Backup

See Configuration NAS Mystique.

Troubleshooting

Login failure and "because the encryption key is invalid..."

Symptoms:

  • Login fails.
  • Message Because the encryption key is invalid the password has been transmitted in the clear

Cause:

Solution:

NAS not responsive after recent upgrade (April 2020)

12 updates were pending, let's carry them on. BAD IDEA!!! This updated CloudStation ShareSync to (bloody) Drive Server ShareSync, and probably other annoyances as well.

As a result NAS, is busy indexing all over the place, GUI is not responsive, top, free shows the NAS is swapping a lot.

Work-around:

  • Uninstall Photo Station, Moments, Video Station, Audio Station, all shitty stuff.
Remaining packages:
  • Synology Drive Server,
  • PHP 7.0 (probably necessary)
  • Universal Search (cannot be uninstalled, more below)
  • Hyper Backup (innocuous)
  • Synology Application Service (Drive Server needs it)
  • Log Center (innocuous)
  • Node.js v12 (Driver server needs it)
  • Git Server (innoucous)
  • OAuth Service (innocuous / needed)
  • File Station (cannot be uninstalled)
  • Node.js v4 (needed / innocuous)
  • Indexing can be disabled in:
  • Info Center --> but I see nothing
  • Indexing Service -> Removed all Indexed Folder.
  • Some service can be disabled manually, or as a scheduled task.
  • Disable Universal Search / SynoFinder [5]
  • sudo synoservice --disable pkgctl-SynoFinder
  • Or Control Panel -> Task Scheduler -> Create -> Triggered task -> General Tab -> give task a name, select boot-up for Event, and under Task Setting, select User-defined script, and add: synoservice --disable pkgctl-SynoFinder
  • ... but apparently latet update (1.2.6-0240) would have fixed the performance issue.
  • Disable some indexing manually [6]:
  • sudo synoindex_package.sh disable PhotoStation
  • sudo synoindex_package.sh disable VideoStation
  • /usr/syno/sbin/synoservice --hard-stop synoindexd