linux hangs when trying to stop bonding

Discussion in 'HOWTO-Related Questions' started by jyoukhana, Dec 22, 2008.

  1. jyoukhana

    jyoukhana New Member

    I set up bonding of two network interfaces for fault tolerance. But when i stop bond0 or restart the computer it never stops and just hangs there.

    I'm running CentOS 5 the kernel version is 2.6.18

    /etc/modprobe.conf
    alias scsi_hostadapter ahci
    alias snd-card-0 snd-hda-intel
    options snd-card-0 index=0
    options snd-hda-intel index=0
    remove snd-hda-intel { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-hda-intel
    alias eth1 8139too
    alias eth0 8139too
    alias bond0 bonding
    options bond0 miimon=100 mode=1 primary=eth1
    alias dev19958 8139too
    alias eth2 forcedeth

    /etc/sysconfig/network-scripts/ifcfg-bond0
    DEVICE=bond0
    IPADDR=192.168.100.2
    NETMASK=255.255.255.0
    ONBOOT=yes
    BOOTPROTO=none
    USERCTL=no
    TYPE=Ethernet

    /etc/sysconfig/network-scripts/ifcfg-eth0
    DEVICE=eth0
    ONBOOT=yes
    BOOTPROTO=none
    TYPE=Ethernet
    USERCTL=no
    MASTER=bond0
    SLAVE=yes
    PEERDNS=yes
    IPV6INIT=no

    /etc/sysconfig/network-scripts/ifcfg-eth1
    DEVICE=eth1
    ONBOOT=yes
    BOOTPROTO=none
    TYPE=Ethernet
    USERCTL=no
    MASTER=bond0
    SLAVE=yes
    PEERDNS=yes
    IPV6INIT=no

    The last line from bonding to syslog is
    bond0: removing slave eth1
    bond0: releasing active interface eth1

    Anyone have any ideas whats wrong?

    Thanks
     

Share This Page