Zyxel Forum - Herzlich Willkommen!

Aktuelle Zeit: Mi 11. Dez 2019, 01:15

Alle Zeiten sind UTC + 1 Stunde




Ein neues Thema erstellen Auf das Thema antworten  [ 8 Beiträge ] 
Autor Nachricht
BeitragVerfasst: Mo 2. Dez 2019, 20:24 
Offline

Registriert: Mo 18. Nov 2019, 01:05
Beiträge: 12
Hi,

i use two external hard drives on my NAS540 as storage expansion and as backup solution.
The backup drive only needs to run once a day. The storage one maybe once a week.
But the NAS does not put them into power savings mode. They spin all the time. Is there any way to do this?


Nach oben
 Profil  
 
BeitragVerfasst: Di 3. Dez 2019, 11:20 
Offline

Registriert: Mi 14. Nov 2018, 19:50
Beiträge: 63
The firmware puts the disks into sleep, the daemon hdidle is responsible for that. But it is possible that the (sata) commands are not passed by the USB-SATA bridge.

You can try to use the 'USB Disk somnifacient' plugin for Tweaks. I remember that for someone that did something that the firmware didn't.

That plugin is switched off for fw 5+ (because of hdidle), but it's easy to switch on. In the file /i-data/sysvol/.PKG/Tweaks/gui/Tweaks/plugins/usbsleep.sh, put a # before line 18, '[ ${TWEAKS_FIRMWARE} -ge 500 ] && return 1', and restart Tweaks using the webinterface.


Nach oben
 Profil  
 
BeitragVerfasst: Mi 4. Dez 2019, 17:32 
Offline

Registriert: Mo 18. Nov 2019, 01:05
Beiträge: 12
Omg, it worked.

Thank you so much!


Edit: On little caveat: It also turns the other hard drives in the NAS off. Is there any way to prevent it from doing that?


Nach oben
 Profil  
 
BeitragVerfasst: Mi 4. Dez 2019, 19:32 
Offline

Registriert: Mi 14. Nov 2018, 19:50
Beiträge: 63
Maybe. It skips the number of disks which is handled by the firmware old style. In your case that is zero. You can hardcode that to 4 (or whatever number of disks you have) on line 206, change

local nrharddisk=` some shell command `

in

local nrharddisk=4


A problem could be if the usb disks are detected first. In that case you should skip the last disks, and not the first.


Nach oben
 Profil  
 
BeitragVerfasst: Mi 4. Dez 2019, 19:41 
Offline

Registriert: Mo 18. Nov 2019, 01:05
Beiträge: 12
Yeah, the USB ones are listed first unfortunately.
How would skip the 4 last ones?

Sorry, i'm not that familiar with shell scripts...

Would it be possible to hardcode the drives to monitor?
It's sda and sdb.


Nach oben
 Profil  
 
BeitragVerfasst: Mi 4. Dez 2019, 19:54 
Offline

Registriert: Mi 14. Nov 2018, 19:50
Beiträge: 63
Some lines below, there is the script which does the 'actual work'. Change here

for dev in \` $ls /sys/block/ | $grep sd \`

in

for dev in sda sdb


Nach oben
 Profil  
 
BeitragVerfasst: Fr 6. Dez 2019, 10:31 
Offline

Registriert: Mo 18. Nov 2019, 01:05
Beiträge: 12
Thansk Mijzelf, that did the trick!

Do you have some sort of donations? Since you helped me out twice now i would like to buy you a coffee / beer!
Also i saw you are the original developer behind those scripts! Cool! :)


Nach oben
 Profil  
 
BeitragVerfasst: Sa 7. Dez 2019, 14:54 
Offline

Registriert: Mi 14. Nov 2018, 19:50
Beiträge: 63
stainless hat geschrieben:
Do you have some sort of donations? Since you helped me out twice now i would like to buy you a coffee / beer!

You get the same answer as ariek: https://homeforum.zyxel.com/discussion/ ... mment_7314


Nach oben
 Profil  
 
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 8 Beiträge ] 

Alle Zeiten sind UTC + 1 Stunde


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Gehe zu:  
cron
Powered by phpBB® Forum Software © phpBB Group
Deutsche Übersetzung durch phpBB.de