Flibblebot
-
Posts
64 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
Gallery
Bug Reports
Documentation
Landing
Posts posted by Flibblebot
-
-
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.
-
I still have the same issue - please post back if you have any break throughs! System negotiates a gigabit connection on boot, but then every subsequent wake from S3 comes back at 100Mbps. I can telnet in and set back to 1000Mbps using ethtool - but I've not tried to automate it using the sleep script - not sure that's going to be successful.
agw
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
-
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...
Looking for better ideas how how to sleep/suspend my unraid box
in User Customizations
Posted
That's brilliant. I'll add that when I've added a cache drive