Everything posted by Flibblebot
-
Looking for better ideas how how to sleep/suspend my unraid box
That's brilliant. I'll add that when I've added a cache drive
-
Looking for better ideas how how to sleep/suspend my unraid box
With the release of v4.5, I'm considering adding a cache drive into my system - but would the nighttime copy still work if the system were asleep (more than likely at 3am)? I'm guessing it wouldn't... Is there a way to wake a system automatically at (say) 2:55AM every morning in time for the cache copy to work? Or would I have to get another server to wake up the unRAID server every morning. Just wondering.
-
Looking for better ideas how how to sleep/suspend my unraid box
Well, I can say that it works 100% of the time, but I did upgrade to 4.5b7 at the same time, so now I'm not sure which method was successful... I'll do some more playing, but in the meantime, here's the modified s3.sh script I'm using - one simple addition to the wake-up section: #!/bin/bash drives="/dev/sda /dev/sdb /dev/hda /dev/hdb" timeout=5 count=5 while [ 1 ] do hdparm -C $drives | grep -q active if [ $? -eq 1 ] then count=$[$count-1] else count=$timeout fi if [ $count -le 0 ] then # Do pre-sleep activities sleep 5 # Go to sleep echo 3 > /proc/acpi/sleep # Do post-sleep activities # Force NIC to use gigabit networking ethtool -s eth0 speed 1000 # Force a DHCP renewal (shouldn't be used for static-ip boxes) /sbin/dhcpcd -n sleep 5 count=$timeout fi # Wait a minute # echo COUNT $count sleep 60 done
-
Looking for better ideas how how to sleep/suspend my unraid box
I've got this working fine on my unRAID box (props to OMV & agw ), but I too am suffering from my NIC coming back from sleep running only at 100Mbps speeds, not gigabit speeds. I'm wondering whether it's possible to force the NIC to gigabit using ethtool -s eth0 speed 1000 I can't access my unRAID box at the moment, but I might give a go over the weekend. If it works (and it really is as simple as that), then should it just be a case of inserting the line into the post-sleep section of OMV's script? I'll let you know how I get on...