Jump to content

darkside40

Members
  • Posts

    514
  • Joined

  • Last visited

Everything posted by darkside40

  1. When you checked your server where all disk spun down? I also had sometimes my problems with S3, but normally it was not the script what failed but some App which kept for example my cache disk spinning. Btw you could do a quick test. Infact what the S3 Script does is to check if an drive is active or in standby by analyzing the output of he command hdparm -C /dev/sdX. You can log onto your unRaid and issue this command to any of your data- or cachedrives to see if there is an useful output. If not this would break the script of course.
  2. Would it be possible to add nano to the CLI pack? Thats is the first program i always install when setting up a new unRaid.
  3. Really thanks for this update on the topic.
  4. No i am doing nothing wrong because i never tried it. And why didn't i try it, because Tom stated some posts above that you shouldn't update the new webGUI when you running 5.0.3. And so i thought that 5.0.4 would behave the same way. I would call this lack of information, unfortunately a common problem here. It good that the focus is on other parts of unRaid right now. But than i ask myself why Tom started with this new webGUI. Would been better to give proper support to speedingAnt so that he can make SF work on 5.0Final and above. Maybe i try Boxcar etc. next. I don't see were the Road is going for this new webGUI
  5. Any updates on the GUI? No Update in 5 months. Still is not working on 5.0.4. And the Gui always rsets my Options for the scheduled mover when i start it by hand. Very annoying!
  6. Is the current Version of the new webGUI compatible with unRaid 5.0.2 or do i run into problems when i am updating for 5.0 final?
  7. Okay now i simply startet cache_dirs using this command "./cache_dirs -m 5 -M 10 -w" Now it seems to be running. Is there anyway to determinate if cache_dirs has successfully put the directory entries into memory?
  8. I have no memory hungry things running. Only this which i have apart from stock unraid is dnsmasq and a S3 Sleep Script running. I have rebooted the server several time, clear the caches with an "echo 3 > /proc/sys/vm/drop_caches", i even switched the Ram from 1x 4GB Module to my older 2x 2GB Modules to see if the Ram is damaged. Nothing helped. Cache_dirs can simply not allocate that memory and i dont know why. Silly thing is, it works when i used it from inside Simplefeatures on the hardware in the sig. Now i use a Intel Haswell system (have to update the sig) and the new Webgui (already tried it without the new gui) and it does not work.
  9. I checked my free memory and could not find anything wrong because there should be more than 3GB still be free (4GB installed in total) Any idea? When i used Cache dirs under Simplefeatures it worked without any problems, but Simple Features was bit buggy the so i had to delete it. The "find" command was apparently trying to allocate a contiguous chunk of memory of that size, which you apparently did not have. Your memory, although free, was fragmented. Thats nearly impossible because i tried this directly after i rebooted the server. How can the memory be that fragmented after it.
  10. Hi Joe L., after going away form Simple Features i wanted to use your cache_dir script the old fashined way on my unRaid Server (via the Go File). I wanted to test it before so i downloaded the script and try to start it but it throwed this failure: I checked my free memory and could not find anything wrong because there should be more than 3GB still be free (4GB installed in total) Any idea? When i used Cache dirs under Simplefeatures it worked without any problems, but Simple Features was bit buggy the so i had to delete it.
  11. A little bit too much color and i wouldn't need the Window, but it has space for up to 8 drives and the price will be nice: Sharkoon T28
  12. I have not tried this! Try echo "standby" > /sys/power/state I have this from this page here http://acpi.sourceforge.net/documentation/sleep.html that should send your server to Softoff (hopefully)
  13. Maybe using Livehttp Headers to record the WebGUI Commands to sleep the Server, extract the commands and than using a curl batch or script to sleep the server.
  14. Hi Guys, does anybody has a working solution to spinup the Data Disk's after S3? I tried it by integrating the mdcmd command into the script but it is not working really reliable.
  15. Like mentioned in my last post, take: echo "mem" > /sys/power/state
  16. I just installed 5.0-beta6a with the s3.sh. I dont need s2ram because my Mobo doesn't has any issues. The only thing is that the script i use here normally uses s2ram to let the server go to S3. Now i tried to change that to echo 3 > /proc/acpi/sleep, but this does not exist. What i found what works is echo "mem" /sys/power/state, is that the right line to power down my unRaid server? The script would look like this (Line 145 chnaged) #!/bin/bash # constants yes="yes" no="no" # [CONFIGURATION] # before going to sleep intrnlTimeoutTicks=2 # ticks after HDD spindown before checking for external activity extrnlTimeoutTicks=1 # ticks of no external activity before sleep; only after spindown+internal countdown # control of internal timeout checkHDDs=$yes # check if all HDDs are parked before counting down towards sleep noCountdownHours="" # only countdown towards sleep outside these hours # example: <noCountdownHours="07 08 19 20"> # always countdown: <noCountdownHours=""> # control of external timeout checkTCP=$no # check for TCP activity pingIPs="" # do not sleep if <$pingsIPs> are pingable # example: <pingIPs="192.168.1.4 192.168.1.5"> # no ping-check: <pingIPs=""> # after waking up from sleep doDhcpRenewal=$no # <$no> for servers w/static IP address forceGb=$yes # might not be needed; probably always safe # [/CONFIGURATION] # implementation stuff ticklengthSecs=60 # probe hardware + count down every minute/60secs, aka a tick noTCP='0.00' # what constitutes absence of TCP activity flash=/dev/`ls -l /dev/disk/by-label| grep UNRAID | cut -d"/" -f3 | cut -c 1-3` # automatic id of flash drive check_hour() { echo $(date +%H) } check_HDD_activity() { if [ $checkHDDs = $yes ] then # probe the flash drive at your peril HDDs=$((for d in $(ls /dev/[hs]d? | grep -v "$flash"); do hdparm -C $d | grep active ; done) | wc -l) else HDDs=0 fi echo $HDDs } check_TCP_activity() { if [ "$checkTCP" = $yes ] then TCP=$(bwm-ng -o csv -c 1 -d 0 -T avg | grep eth0 | cut -d";" -f5) else TCP="$noTCP" fi echo "$TCP" } check_IP_status() { mp_online=$no # initialize to "no" until we learn otherwise # ping each of the media servers to determine if online for i in $pingIPs do # ping the media server; if it answers, it is online out=`ping -q -c 1 $i 2>/dev/null` rec_count=`echo "$out" | grep received | cut -d " " -f4` if [ "$rec_count" -eq 1 ] then mp_online=$yes # if one is online, we do not need to ping # any others, break out of the "for" loop. break; fi done echo $mp_online } pre_sleep_activity() { /usr/local/sbin/mover echo $(date) Mover Complete sleep 5 /bin/sync echo $(date) Sync Complete } post_sleep_activity() { echo $(date) Resumed from sleep # Force NIC to use gigabit networking if [ "$forceGb" = $yes ] then ethtool -s eth0 speed 1000 echo $(date) Network set to Gb fi # Force a DHCP renewal (shouldn't be used for static-ip boxes) if [ "$doDhcpRenewal" = $yes ] then /sbin/dhcpcd -n fi echo $(date) unRAID Server Online } # main echo $(date) Starting S3 script intrnlCountdown=$intrnlTimeoutTicks extrnlCountdown=$extrnlTimeoutTicks while [ 1 ] do # do not countdown during certain hours hour=`check_hour` hourMatch=$(echo "$noCountdownHours" | grep "$hour" | wc -l) if [ $hourMatch -eq 0 ] then # count number of HDDs that are not parked HDDact=`check_HDD_activity` if [ "$HDDact" -eq 0 ] then # tick-tock for time since last spindown if [ $intrnlCountdown -gt 0 ] then intrnlCountdown=$[$intrnlCountdown-1] fi else # reset countdown, following HDD activity intrnlCountdown=$intrnlTimeoutTicks extrnlCountdown=$extrnlTimeoutTicks fi if [ $intrnlCountdown -le 0 ] then # check for persistent external activity TCPact=`check_TCP_activity` IPping=`check_IP_status` if [ "$TCPact" = $noTCP -a "$IPping" = $no ] then if [ $extrnlCountdown -le 0 ] then # Do pre-sleep activities pre_sleep_activity sleep 5 # Go to sleep echo $(date) Going to sleep NOW! echo $(date) unRAID Server Offline echo "mem" > /sys/power/state # Do post-sleep activities post_sleep_activity sleep 5 intrnlCountdown=$intrnlTimeoutTicks extrnlCountdown=$extrnlTimeoutTicks else # tick-tock for persistent external activity if [ $extrnlCountdown -gt 0 ] then extrnlCountdown=$[$extrnlCountdown-1] fi fi else # reset countdown, following external activity extrnlCountdown=$extrnlTimeoutTicks fi fi fi # Wait a tick sleep $ticklengthSecs done
×
×
  • Create New...