Jump to content

Router firmware update causes unraid to lose network connection


EmJay276
Go to solution Solved by Mainfrezzer,

Recommended Posts

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?

Link to comment
  • Solution

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 xD

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 by Mainfrezzer
  • Like 1
  • Upvote 1
Link to comment

@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

Link to comment
  • 2 months later...

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

 

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...