QNAP (431p)

From Holyheads Wiki
(Difference between revisions)
Jump to: navigation, search
(Raid sync speed)
(Firmware downgrade)
 
(21 intermediate revisions by one user not shown)
Line 1: Line 1:
==Cookbook==
+
=Cookbook=
  
My collection of hints, tips and tricks (supporting my memory and maybe also helping others).
+
My collection of hints, tips and tricks (supporting my memory and maybe also helping others) - some links are in German, some in English
  
=== Raid sync speed ===
+
== Entware ==
 +
 
 +
* https://forum.qnapclub.de/thread/37886-howto-entware-ng-und-linux-pakete-installieren/?f=80&t=37886#p215810
 +
 
 +
=== autorun ===
 +
 
 +
* a manual autorun.sh should not be necessary - /etc/rcS.d/QS109Entware-ng should start Entware-ng, and /opt/etc/init.d/rc.unslung starts all /opt/etc/init.d/S* scripts
 +
 
 +
* autorun.sh: based on http://www.welzels.de/blog/projekte/qnap-mods-tricks-und-projekte/optware-init-skripte-nach-booten-starten/
 +
* installation for my 431p: (copy from https://wiki.qnap.com/wiki/Running_Your_Own_Application_at_Startup)
 +
 
 +
  ubiattach -m 6 -d 2
 +
  /bin/mount -t ubifs ubi2:config /tmp/config
 +
  vi /tmp/config/autorun.sh
 +
  chmod +x /tmp/config/autorun.sh
 +
  echo .
 +
  echo "unmounting /tmp/config..."
 +
  umount /tmp/config
 +
  ubidetach -m 6
 +
 
 +
* enable auto-start (re-do after FW update):  http://www.welzels.de/blog/projekte/qnap-mods-tricks-und-projekte/optware-init-skripte-nach-booten-starten/
 +
 
 +
* manual start (if auto-start does not work):
 +
** SSH: /share/CACHEDEV1_DATA/.qpkg/Entware-ng/Entware-ng.sh start
 +
** Desktop: open Entware-ng App in QNAP
 +
 
 +
== Raid sync speed ==
  
 
https://forum.qnap.com/viewtopic.php?t=10268
 
https://forum.qnap.com/viewtopic.php?t=10268
Line 13: Line 39:
 
  cat /proc/sys/dev/raid/speed_limit_min
 
  cat /proc/sys/dev/raid/speed_limit_min
 
  5000
 
  5000
 +
 +
== HDD spin down issues ==
 +
 +
* [https://www.qnap.com/en-us/qa/con_show.php?op=showone&cid=58 Why the hard drive of NAS does not go to standby mode?]
 +
 +
* [https://forum.qnapclub.de/thread/40517-3-sammelthema-probleme-mit-festplatten-standby-1-beitrag-beachten/?pageNo=1 Probleme mit Festplatten-Standby]
 +
 +
* Qnap QTS 4.3.3.0154 write to disk at least every ~30 minutes ( setcfg -> dirtied inode ... qid_persistent.conf) on md9 )
 +
: Qnap seems to known this problem - see https://forum.qnapclub.de/thread/40517-3-sammelthema-probleme-mit-festplatten-standby-1-beitrag-beachten/?pageNo=12
 +
 +
=== Move Samba tdb_path to ramdisk ===
 +
 +
(Permanently) move samba's tdb_path to ram disk -> avoid hdd spin up due to .tdb file update
 +
 +
  [/] # /sbin/setcfg "Samba" "tdb_path" "/"                             
 +
  [/] # /etc/init.d/smb.sh restart                               
 +
  Restarting SMB services:
 +
  Shutting down SMB services: smbd nmbd.
 +
  Shutting down winbindd services: winbindd.
 +
  locks path was set to /share/CACHEDEV1_DATA/.locks
 +
  Shutting down winbindd services: winbindd.
 +
  Starting winbindd services:Starting SMB services:.
 +
  done.
 +
  [/] # la /.samba/
 +
  drwxr-xr-x    5 admin    administ      100 Mar 23 07:33 ./
 +
  drwxr-xr-x  23 admin    administ      520 Mar 23 07:33 ../
 +
  drwxr-xr-x    3 admin    administ        60 Mar 23 07:33 cache/
 +
  drwxr-xr-x    2 admin    administ      320 Mar 23 07:33 lock/
 +
  drwxr-xr-x    2 admin    administ      120 Mar 23 07:33 state/
 +
 +
== Cron ==
 +
 +
* https://www.techandme.se/qnap-and-cron/

Latest revision as of 00:51, 3 May 2018

Contents

[edit] Cookbook

My collection of hints, tips and tricks (supporting my memory and maybe also helping others) - some links are in German, some in English

[edit] Entware

[edit] autorun

  • a manual autorun.sh should not be necessary - /etc/rcS.d/QS109Entware-ng should start Entware-ng, and /opt/etc/init.d/rc.unslung starts all /opt/etc/init.d/S* scripts
 ubiattach -m 6 -d 2
 /bin/mount -t ubifs ubi2:config /tmp/config
 vi /tmp/config/autorun.sh
 chmod +x /tmp/config/autorun.sh
 echo .
 echo "unmounting /tmp/config..."
 umount /tmp/config
 ubidetach -m 6
  • manual start (if auto-start does not work):
    • SSH: /share/CACHEDEV1_DATA/.qpkg/Entware-ng/Entware-ng.sh start
    • Desktop: open Entware-ng App in QNAP

[edit] Raid sync speed

https://forum.qnap.com/viewtopic.php?t=10268

cat /proc/mdstat
cat /proc/sys/dev/raid/speed_limit_max
200000
cat /proc/sys/dev/raid/speed_limit_min
5000

[edit] HDD spin down issues

  • Qnap QTS 4.3.3.0154 write to disk at least every ~30 minutes ( setcfg -> dirtied inode ... qid_persistent.conf) on md9 )
Qnap seems to known this problem - see https://forum.qnapclub.de/thread/40517-3-sammelthema-probleme-mit-festplatten-standby-1-beitrag-beachten/?pageNo=12

[edit] Move Samba tdb_path to ramdisk

(Permanently) move samba's tdb_path to ram disk -> avoid hdd spin up due to .tdb file update

 [/] # /sbin/setcfg "Samba" "tdb_path" "/"                              
 [/] # /etc/init.d/smb.sh restart                                
 Restarting SMB services:
 Shutting down SMB services: smbd nmbd.
 Shutting down winbindd services: winbindd.
 locks path was set to /share/CACHEDEV1_DATA/.locks
 Shutting down winbindd services: winbindd.
 Starting winbindd services:Starting SMB services:.
 done.
 [/] # la /.samba/
 drwxr-xr-x    5 admin    administ       100 Mar 23 07:33 ./
 drwxr-xr-x   23 admin    administ       520 Mar 23 07:33 ../
 drwxr-xr-x    3 admin    administ        60 Mar 23 07:33 cache/
 drwxr-xr-x    2 admin    administ       320 Mar 23 07:33 lock/
 drwxr-xr-x    2 admin    administ       120 Mar 23 07:33 state/

[edit] Cron

Personal tools