help to remove bond0

  • Please help me with this issue: I'd like to remove bond0 (eth0+eth1) with webgui.


    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; echo '-bond0' > /sys/class/net/bonding_masters 2>&1' with exit code '1':
    Detailed:
    exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; echo '-bond0' > /sys/class/net/bonding_masters 2>&1' with exit code '1': ' in /usr/share/php/openmediavault/system/process.inc:175Stack trace:#0 /usr/share/php/openmediavault/engine/module/moduleabstract.inc(75): OMV\System\Process->execute(Array, 1)#1 /usr/share/openmediavault/engined/module/interfaces.inc(76): OMV\Engine\Module\ModuleAbstract->exec('echo '-bond0' >...')#2 [internal function]: OMVModuleInterfaces->deleteBondInterface(Array)#3 /usr/share/php/openmediavault/engine/module/moduleabstract.inc(146): call_user_func_array(Array, Array)#4 /usr/share/openmediavault/engined/module/interfaces.inc(52): OMV\Engine\Module\ModuleAbstract->execTasks('delete')#5 /usr/share/openmediavault/engined/rpc/config.inc(152): OMVModuleInterfaces->stopService()#6 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)#7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)#8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(150): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)#9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(528): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatus7G...', '/tmp/bgoutput99...')#10 /usr/share/php/openmediavault/rpc/serviceabstract.inc(151): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))#11 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)#12 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)#13 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)#14 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)#15 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)#16 {main}


    when log in i got this error message too: "RPC service 'OpenVpn' not found" error
    exception 'OMV\Rpc\Exception' with message 'RPC service 'OpenVpn' not found.' in /usr/share/php/openmediavault/rpc/rpc.inc:99Stack trace:#0 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('OpenVpn', 'getList', Array, Array, 1)#1 {main}


    Previously removed (with webgui) openvpn module.


    omv version: 3.0.96

  • Same issue here:


    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; echo '-bond0' > /sys/class/net/bonding_masters 2>&1' with exit code '2':


    Error #0:exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; echo '-bond0' > /sys/class/net/bonding_masters 2>&1' with exit code '2': ' in /usr/share/php/openmediavault/system/process.inc:175Stack trace:#0 /usr/share/php/openmediavault/engine/module/moduleabstract.inc(75): OMV\System\Process->execute(Array, 2)#1 /usr/share/openmediavault/engined/module/interfaces.inc(76): OMV\Engine\Module\ModuleAbstract->exec('echo '-bond0' >...')#2 [internal function]: OMVModuleInterfaces->deleteBondInterface(Array)#3 /usr/share/php/openmediavault/engine/module/moduleabstract.inc(146): call_user_func_array(Array, Array)#4 /usr/share/openmediavault/engined/module/interfaces.inc(52): OMV\Engine\Module\ModuleAbstract->execTasks('delete')#5 /usr/share/openmediavault/engined/rpc/config.inc(152): OMVModuleInterfaces->stopService()#6 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)#7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)#8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(150): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)#9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(528): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatus5C...', '/tmp/bgoutputPi...')#10 /usr/share/php/openmediavault/rpc/serviceabstract.inc(151): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))#11 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)#12 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)#13 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)#14 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)#15 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)#16 {main}



    omv version: 3.0.97

    OMV 6.x
    Supermicro X9DRH-7F
    2X-XEON E5-2660V2
    128GB PC3-10600R ECC REG
    Supermicro SATA DOM 64GB
    Areca ARC-1883IX-24
    24X - WD WD80EFZX
    NORCO RPC-4224 4U
    Eaton 5PX 1500

  • I can't save a configuration, it fails to apply changes, so I had to edit /etc/network/interfaces to get back up and running.


    auto lo
    iface lo inet loopback


    auto eth0
    iface eth0 inet static
    address 192.168.10.20
    netmask 255.255.255.0
    gateway 192.168.10.1
    dns-nameservers 192.168.10.1



    # ip addr flush dev bond0
    Device "bond0" does not exist.


    # echo "-bond0" > /sys/class/net/bonding_masters
    -bash: /sys/class/net/bonding_masters: Permission denied



    # ifconfig bond0
    bond0: error fetching interface information: Device not found


    # rmmod bonding
    rmmod: ERROR: Module bonding is not currently loaded




    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; echo '-bond0' > /sys/class/net/bonding_masters 2>&1' with exit code '2':


    Error #0:exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; echo '-bond0' > /sys/class/net/bonding_masters 2>&1' with exit code '2': ' in /usr/share/php/openmediavault/system/process.inc:175Stack trace:#0 /usr/share/php/openmediavault/engine/module/moduleabstract.inc(75): OMV\System\Process->execute(Array, 2)#1 /usr/share/openmediavault/engined/module/interfaces.inc(76): OMV\Engine\Module\ModuleAbstract->exec('echo '-bond0' >...')#2 [internal function]: OMVModuleInterfaces->deleteBondInterface(Array)#3 /usr/share/php/openmediavault/engine/module/moduleabstract.inc(146): call_user_func_array(Array, Array)#4 /usr/share/openmediavault/engined/module/interfaces.inc(52): OMV\Engine\Module\ModuleAbstract->execTasks('delete')#5 /usr/share/openmediavault/engined/rpc/config.inc(152): OMVModuleInterfaces->stopService()#6 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)#7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)#8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(150): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)#9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(528): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusg8...', '/tmp/bgoutputEt...')#10 /usr/share/php/openmediavault/rpc/serviceabstract.inc(151): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))#11 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)#12 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)#13 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)#14 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)#15 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)#16 {main}

    OMV 6.x
    Supermicro X9DRH-7F
    2X-XEON E5-2660V2
    128GB PC3-10600R ECC REG
    Supermicro SATA DOM 64GB
    Areca ARC-1883IX-24
    24X - WD WD80EFZX
    NORCO RPC-4224 4U
    Eaton 5PX 1500

  • The configuration has been changed. You must apply thechanges in order for them to take effect.

    OMV 6.x
    Supermicro X9DRH-7F
    2X-XEON E5-2660V2
    128GB PC3-10600R ECC REG
    Supermicro SATA DOM 64GB
    Areca ARC-1883IX-24
    24X - WD WD80EFZX
    NORCO RPC-4224 4U
    Eaton 5PX 1500

  • I was able to get past my issue by using


    #echo "+bond0" > /sys/class/net/bonding_masters Then applying the OMV settings....

    OMV 6.x
    Supermicro X9DRH-7F
    2X-XEON E5-2660V2
    128GB PC3-10600R ECC REG
    Supermicro SATA DOM 64GB
    Areca ARC-1883IX-24
    24X - WD WD80EFZX
    NORCO RPC-4224 4U
    Eaton 5PX 1500

Jetzt mitmachen!

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