Missing eth dev file. Network working ok but I can't monitor

  • Hi everybody.
    I have a strange behaviour in my OMV 3.x installation. The upgrade from 2.x went ok but today I noticed a strange network usage and I wanted to find out which process was to blame.
    I tried some tools (ntop, nethogs) but everyone was failing. I realized that they complained about a missing dev/eth0 file.
    Well the file is effectively missing, but the network is working fine, and in the Networking Tab of the OMV admin interface the eth0 network interface is shown and configured.
    What can I do? I searched the web but I found nothing.
    I tried the 3.16 kernel (I am on 4.x kernel) but the device is still missing.
    I attach my omv-sysinfo output.


    I really appreciate any hint.


    Have a nice day,


    Gianpaolo

  • Thanks for your answer.
    I tried what you suggest.


    Code
    $ ip link show 
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
        link/ether e8:39:35:ed:73:a6 brd ff:ff:ff:ff:ff:ff



    But still dev is missing.



    Code
    ls -l /dev/eth*
    ls: cannot access /dev/eth*: No such file or directory

    I also checked the udev rule (/etc/udev/rules.d/70-persistent-net.rules) and the MAC address for my card seems right


    Code
    # PCI device 0x14e4:0x165b (tg3)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="e8:39:35:ed:73:a6", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


    any further test I can try?

  • ethernet devices are not enumerated in /dev


    Can you post here the command is failing with the error. Make in mind network tools like those usually need to run as root

    Ah ok. That's new to me. When did they stopped appearing under /dev ?
    If they aren't supposed to be there I'm ok.


    The command failing is:


    Code
    root@openmediavault:~# nethogs eth0
    creating socket failed while establishing local IP - are you root?
    root@openmediavault:~# nethogs /dev/eth0
    creating socket failed while establishing local IP - are you root?


    I was assuming this was failing due to the missing eth0 dev file, but it must be something else.

  • Be kind, calm down, don't be silly and read my code.
    I *was* root. It's clearly written.


    Further searches led me to a debian bug see
    It's a known problem with nethogs < 0.8.1 and newer kernels.


  • yes I meant the prompt which said root@mymachine.
    It seems nethogs 0.8.0 has issue with newer kernel.


    I think the thread can be marked as SOLVED.
    Thanks,

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!