EmJay276 Posted September 6, 2023 Share Posted September 6, 2023 I observed a wired issue. After my Fritzbox (router) OS update my unraid server loses its network connection and can't be accessed anymore. It's still up and running (I have my zigbee lights working fine) but I can't access the UI and the router does not show the server as connected device. This happened to me before at the last router update, but I only realized right now it was due to the router firmware update. One of my friends observed the same issue. And suggesting how to access the server without hard rebooting it? Quote Link to comment
Mainfrezzer Posted September 6, 2023 Share Posted September 6, 2023 Do you use powertop with the "--auto-tune" by any chance? Quote Link to comment
EmJay276 Posted September 6, 2023 Author Share Posted September 6, 2023 Yeah I did, does this affect the network? Quote Link to comment
Solution Mainfrezzer Posted September 6, 2023 Solution Share Posted September 6, 2023 (edited) the auto tune is too aggresive and turns off the NIC when theres absolutely nothing going on on the network and never turns it back on again. Had that happen to me aswell. # ------------------------------------------------- # Set power-efficient CPU governor # ------------------------------------------------- #/etc/rc.d/rc.cpufreq powersave # ------------------------------------------------- # Enable power-efficient ethernet # ------------------------------------------------- # enable IEEE 802.3az (Energy Efficient Ethernet): Could be incompatible to LACP bonds! #for i in /sys/class/net/eth?; do dev=$(basename $i); [[ $(echo $(ethtool --show-eee $dev 2> /dev/null) | grep -c "Supported EEE link modes: 1") -eq 1 ]] && ethtool --set-eee $dev eee on; done # Disable wake on lan #for i in /sys/class/net/eth?; do ethtool -s $(basename $i) wol d; done # ------------------------------------------------- # powertop tweaks # ------------------------------------------------- # Enable SATA link power management echo med_power_with_dipm | tee /sys/class/scsi_host/host*/link_power_management_policy # Runtime PM for I2C Adapter (i915 gmbus dpb) #echo auto | tee /sys/bus/i2c/devices/i2c-*/device/power/control # Autosuspend for USB device echo auto | tee /sys/bus/usb/devices/*/power/control # Runtime PM for disk echo auto | tee /sys/block/sd*/device/power/control # Runtime PM for PCI devices #echo auto | tee /sys/bus/pci/devices/????:??:??.?/power/control # Runtime PM for ATA devices echo auto | tee /sys/bus/pci/devices/????:??:??.?/ata*/power/control This is my setting. the cpu govenor is disabled because i franky dont need it and the effient ethernet bit is the problematic one, that also why its disabled. auto tune just turns that one on. so you can basically remove the auto tune line and replace it with just this # ------------------------------------------------- # powertop tweaks # ------------------------------------------------- # Enable SATA link power management echo med_power_with_dipm | tee /sys/class/scsi_host/host*/link_power_management_policy # Runtime PM for I2C Adapter (i915 gmbus dpb) #echo auto | tee /sys/bus/i2c/devices/i2c-*/device/power/control # Autosuspend for USB device echo auto | tee /sys/bus/usb/devices/*/power/control # Runtime PM for disk echo auto | tee /sys/block/sd*/device/power/control # Runtime PM for PCI devices #echo auto | tee /sys/bus/pci/devices/????:??:??.?/power/control # Runtime PM for ATA devices echo auto | tee /sys/bus/pci/devices/????:??:??.?/ata*/power/control For you current problem, not being able to access the server, you can only get it done by hooking up a keyboard to it and running cmds to try to bring the nic back up or shutdown to the server to make the modifications on the usb drive so that never happens again. Edit: or also the (Runtime PM for I2C Adapter (i915 gmbus dpb) i cant remember why i turned it off, i know it had a reason but honestly i have no clue why now Edit #2: I did see that the PCI Devices is disabled/commented out, thats was on my end the important second line because my NIC is treated as PCI device. But you would have to check how it works in your setup. So to sum it up, once again # ------------------------------------------------- # powertop tweaks # ------------------------------------------------- # Enable SATA link power management echo med_power_with_dipm | tee /sys/class/scsi_host/host*/link_power_management_policy # Autosuspend for USB device echo auto | tee /sys/bus/usb/devices/*/power/control # Runtime PM for disk echo auto | tee /sys/block/sd*/device/power/control # Runtime PM for ATA devices echo auto | tee /sys/bus/pci/devices/????:??:??.?/ata*/power/control Should work out but it depends on what you have as a system. Thats a link for a bit more information on it https://forums.unraid.net/topic/98070-reduce-power-consumption-with-powertop/ Edited September 6, 2023 by Mainfrezzer 1 1 Quote Link to comment
EmJay276 Posted September 6, 2023 Author Share Posted September 6, 2023 @Mainfrezzer Thank you very much for your helpfull information and the link! I disabled the auto-tune and changed it to your suggestions (my Ethernet adapter is also connected via PCI). For everyone interested, I was able to reboot my server by connecting a keyboard (without a monitor) and type the following commands blind 1) Login name root <ENTER> 2) Password password <ENTER> 3) Reboot powerdown -r <ENTER> Wait for ~120 sec Quote Link to comment
Mainfrezzer Posted September 7, 2023 Share Posted September 7, 2023 Make sure to let your friend know aswell 1 Quote Link to comment
eLpresidente Posted November 30, 2023 Share Posted November 30, 2023 hey @Mainfrezzer can u please tell me where to edit autoune ? sorry i am a newbee but have maybee the same Problem.. my NIC is getting disconnected.. i have powerwertop with autotune, but dont know where to edit to turn off EEE Gues i have to #commendout the EEE line.. Quote # ------------------------------------------------- # Enable power-efficient ethernet # ------------------------------------------------- # enable IEEE 802.3az (Energy Efficient Ethernet): Could be incompatible to LACP bonds! #for i in /sys/class/net/eth?; do dev=$(basename $i); [[ $(echo $(ethtool --show-eee $dev 2> /dev/null) | grep -c "Supported EEE link modes: 1") -eq 1 ]] && ethtool --set-eee $dev eee on; done Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.