|
osdir.com mailing list archive F.A.Q. -since 2001! |
|
|
|
Subject: Bonding+vlan and initscripts problem - msg#00001List: linux.mandrake.server
by Date: Prev Next Date Index by Thread: Prev Next Thread Index
I have somes problems activating bond driver on a mandriva 2006
I know it's not cooker but it's server related it's seem initscript are buggy for bonding or I missed something when I reboot my server network script doesn't enslave eth0 and eth1 if i run just after network script this one at startup , every thing work perfectly : [root@localhost ~]# more /etc/rc3.d/S10network-bond-vlan # case $1 in start) /sbin/ifup bond0 /sbin/ifup eth0 /sbin/ifup eth1 for iface in /etc/sysconfig/network-scripts/ifcfg-bond0.[0-9]* do /sbin/ifup $iface done ;; [root@localhost ~]# more /etc/sysconfig/network NETWORKING=yes FORWARD_IPV4=false NETWORKING_IPV6=no VLAN=yes ifcfg-eth0: DEVICE=eth0 BOOTPROTO=static ONBOOT=yes USERCTL=no MII_NOT_SUPPORTED=yes MASTER=bond0 SLAVE=yes ifcfg-eth1: DEVICE=eth1 BOOTPROTO=static ONBOOT=yes USERCTL=no MII_NOT_SUPPORTED=yes MASTER=bond0 SLAVE=yes ifcfg-bond0 DEVICE=bond0 BOOTPROTO=none MII_NOT_SUPPORTED=yes ONBOOT=yes USERCTL=NO ifcfg-bond0.999: DEVICE=bond0.999 BOOTPROTO=static ONBOOT=yes IPADDR=192.168.254.200 NETMASK=255.255.255.0 BROADCAST=192.168.254.255 USERCTL=no MII_NOT_SUPPORTED=yes I also tried with an IP address directly on the bond device ( No VLAN ) symptoms are the same eth0 and eth1 are NOT enslaved at boot time If somedy know about that -- Weill Philippe - Administrateur Systeme et Reseaux
Thread at a glance:
Previous Message by Date:Xen kernel patches for MandrivaHi, I've managed to rebuild the Mandriva Xen package for the 3.0 release, from http://tx.downloads.xensource.com/torrents/xen-3.0.0-src.tgz.torrent (new spec and a patch used are attached) The hypervisor boots well, however complains about different version when it's about loading the kernel-xen0-2.6.12.12mdk. I would like to rebuild the kernel rpms with the new xen patches, however I wasn't able to figure out how did you created the XE01_2.6.12-050823.patch from the official Xen kernel distribution, or patchset. Thanks in advance Geza Gemes xen-3.0.0-fhs.patch.bz2 Description: application/bzip # UNDER SVN - UNDER SVN - UNDER SVN - UNDER SVN # https://cvs.mandriva.com/svn/mdv/cooker/xen/ # Please don't forget to set REL back to 1 when SOURCE_VER is increased #%define source_ver 20050823 %define source_ver 3.0.0 %define rel 1 Name: xen Version: 3.0 Release: %{rel}mdk Summary: The basic tools for managing XEN virtual machines. Summary(pt_BR): Ferramentas para gerenciamento das máquinas virtuais XEN. Group: Utilities Group(pt_BR): Utilitários Group(es): Utilitarios License: GPL Source0: xen-%{source_ver}.tar.bz2 Patch0: xen-3.0.0-fhs.patch.bz2 #Patch1: xen-unstable-x86_64.patch.bz2 Requires: python-twisted-core Requires: python Requires: module-init-tools Requires: iptables Requires: bridge-utils Requires: glibc-xen BuildRequires: libpython-devel >= 2.4 BuildRequires: glibc-static-devel BuildRequires: libext2fs-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The basic tools for managing XEN virtual machines. %description -l pt_BR Ferramentas para gerenciamento das máquinas virtuais XEN. %prep #%setup -q -n %{name}-%{source_ver} %setup -q -n %{name}-unstable %patch0 -p0 #%patch1 -p1 -b .x86_64 %build # clean all stuff make clean export CFLAGS="$CFLAGS -fno-strict-aliasing" export HOSTCC="$HOSTCC -fno-strict-aliasing" %make -C tools %make -C xen %install make DESTDIR=%{buildroot} -C tools install make DESTDIR=%{buildroot} -C xen install # fix man pages mkdir -p %{buildroot}%{_datadir}/man #cp -adpR %{buildroot}/usr/man/* %{buildroot}%{_datadir}/man/ #rm -rf %{buildroot}/usr/man %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf %{buildroot} %files %defattr(0644,root,root,0755) %doc README %dir %{_sysconfdir}/xen %dir %{_sysconfdir}/xen/auto %config %{_sysconfdir}/xen/xend-config.sxp %config %{_sysconfdir}/xen/xmexample1 %config %{_sysconfdir}/xen/xmexample2 %config %{_sysconfdir}/xen/xmexample.vmx %config %{_sysconfdir}/xen/xmexample.vti %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/vif-bridge %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/block %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/block-common.sh %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/block-nbd %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/block-enbd #%attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/block-file %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/network-route %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/network-bridge %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/network-nat %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/vif-common.sh %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/vif-nat %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/vif-route %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/vtpm %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/vtpm-common.sh %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/xen-hotplug-common.sh %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/xen-network-common.sh %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/xen-script-common.sh %attr(0755,root,root) %config %{_sysconfdir}/xen/qemu-ifup %config %{_sysconfdir}/hotplug/xen-backend.agent %config %{_sysconfdir}/sysconfig/xendomains %config %{_sysconfdir}/udev/xen-backend.rules %config %{_sysconfdir}/udev/rules.d/xen-backend.rules %{_mandir}/man*/* %dir %{_prefix}/lib/xen %{_prefix}/lib/xen/* %dir %{_libdir}/python/xen %{_libdir}/python/xen/* %{_libdir}/python/grub/GrubConf.* %{_libdir}/python/grub/__init__.* %{_libdir}/python/grub/fsys/__init__.* %{_libdir}/python/grub/fsys/ext2/__init__.* %{_libdir}/python/grub/fsys/ext2/_pyext2.so %{_libdir}/python/grub/fsys/ext2/test.* #%{_libdir}/python/grub/fsys/ext2/_pyext2.so %{_libdir}/libxenstore* %{_libdir}/libxenctrl* %{_libdir}/libxenguest* #%{_libdir}/libxc* %{_includedir}/*.h %dir %{_datadir}/xen %{_datadir}/xen/* %dir /var/lib/xenstored %dir /var/run/xenstored /boot/xen* %dir /usr/include/xen /usr/include/xen/* %defattr(0755,root,root,0755) %config %{_sysconfdir}/init.d/xend %config %{_sysconfdir}/init.d/xendomains %{_sbindir}/xenstored %{_sbindir}/netfix %{_sbindir}/xm %{_sbindir}/xend %{_sbindir}/xenperf %{_sbindir}/setmask %{_sbindir}/xenbaked %{_sbindir}/xenmon.py #%{_sbindir}/xcs #%{_sbindir}/xcsdump %{_sbindir}/xenconsoled %{_sbindir}/xentop %{_sbindir}/xen-bugtool %{_bindir}/xenperf %{_bindir}/xc_shadow %{_bindir}/xencons %{_bindir}/cpuperf-xen %{_bindir}/cpuperf-perfcntr %{_bindir}/lomount %{_bindir}/xentrace %{_bindir}/xentrace_format %{_bindir}/pygrub %{_bindir}/setsize %{_bindir}/tbctl %{_bindir}/xenstore-exists %{_bindir}/xenstore-list %{_bindir}/xenstore-read %{_bindir}/xenstore-rm %{_bindir}/xenstore-write %{_bindir}/xsls #%dir /usr/libexec/xen #/usr/libexec/xen/* %changelog * Sun Jan 1 2006 Geza Gemes <geza@xxxxxxxxxxxxxxxxxxx> 3.0.0 - 3.0.0 release * Thu Sep 8 2005 Gwenole Beauchesne <gbeauchesne@xxxxxxxxxxxx> 3.0-0.20050823.6mdk - x86_64 fixes for binutils 2.16.9x - requires glibc-xen for */nosegneg/ libs * Thu Aug 11 2005 Flávio Bruno Leitner <fbl@xxxxxxxxxxxx> 3.0-0.20050823.5mdk - updated to snapshot of 2005-08-23 (last know working) * Thu Aug 11 2005 Flávio Bruno Leitner <fbl@xxxxxxxxxxxx> 3.0-0.20050829.4mdk - updated to snapshot of 2005-08-29 * Thu Aug 11 2005 Flávio Bruno Leitner <fbl@xxxxxxxxxxxx> 3.0-0.20050811.3mdk - updated to snapshot of 2005-08-19 * Thu Aug 11 2005 Flávio Bruno Leitner <fbl@xxxxxxxxxxxx> 3.0-0.20050811.2mdk - updated to snapshot of 2005-08-11 * Fri Aug 05 2005 Flávio Bruno Leitner <fbl@xxxxxxxxxxxx> 3.0-0.20050801.1mdk - created package. Next Message by Date:Re: Bonding+vlan and initscripts problemOn Friday 20 January 2006 14:44, Philippe Weill wrote: > I have somes problems activating bond driver on a mandriva 2006 > I know it's not cooker but it's server related > > it's seem initscript are buggy for bonding or I missed something > when I reboot my server > network script doesn't enslave eth0 and eth1 > if i run just after network script > this one at startup , every thing work perfectly : > [root@localhost ~]# more /etc/rc3.d/S10network-bond-vlan > # > case $1 in > start) > /sbin/ifup bond0 > /sbin/ifup eth0 > /sbin/ifup eth1 > for iface in /etc/sysconfig/network-scripts/ifcfg-bond0.[0-9]* > do > /sbin/ifup $iface > done > ;; > [root@localhost ~]# more /etc/sysconfig/network > NETWORKING=yes > FORWARD_IPV4=false > NETWORKING_IPV6=no > VLAN=yes > > ifcfg-eth0: > DEVICE=eth0 > BOOTPROTO=static > ONBOOT=yes > USERCTL=no > MII_NOT_SUPPORTED=yes > MASTER=bond0 > SLAVE=yes > > ifcfg-eth1: > DEVICE=eth1 > BOOTPROTO=static > ONBOOT=yes > USERCTL=no > MII_NOT_SUPPORTED=yes > MASTER=bond0 > SLAVE=yes > > ifcfg-bond0 > DEVICE=bond0 > BOOTPROTO=none > MII_NOT_SUPPORTED=yes > ONBOOT=yes > USERCTL=NO I would try adding: IPADDR=0.0.0.0 here (to bond0), maybe also with: NETMASK=0.0.0.0 > > ifcfg-bond0.999: > DEVICE=bond0.999 > BOOTPROTO=static > ONBOOT=yes > IPADDR=192.168.254.200 > NETMASK=255.255.255.0 > BROADCAST=192.168.254.255 > USERCTL=no > MII_NOT_SUPPORTED=yes > > I also tried with an IP address directly on the bond device ( No VLAN ) > symptoms are the same eth0 and eth1 are NOT enslaved at boot time Can you provide the contents of /etc/modprobe.conf? Since, we also (at least on RHEL, I don't have any Mandriva boxes running with bond+VLAN at present) add: alias bond0 bonding Regards, Buchan -- Buchan Milne B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592) pgpwn1hPeXXyz.pgp Description: PGP signature Previous Message by Thread:Xen kernel patches for MandrivaHi, I've managed to rebuild the Mandriva Xen package for the 3.0 release, from http://tx.downloads.xensource.com/torrents/xen-3.0.0-src.tgz.torrent (new spec and a patch used are attached) The hypervisor boots well, however complains about different version when it's about loading the kernel-xen0-2.6.12.12mdk. I would like to rebuild the kernel rpms with the new xen patches, however I wasn't able to figure out how did you created the XE01_2.6.12-050823.patch from the official Xen kernel distribution, or patchset. Thanks in advance Geza Gemes xen-3.0.0-fhs.patch.bz2 Description: application/bzip # UNDER SVN - UNDER SVN - UNDER SVN - UNDER SVN # https://cvs.mandriva.com/svn/mdv/cooker/xen/ # Please don't forget to set REL back to 1 when SOURCE_VER is increased #%define source_ver 20050823 %define source_ver 3.0.0 %define rel 1 Name: xen Version: 3.0 Release: %{rel}mdk Summary: The basic tools for managing XEN virtual machines. Summary(pt_BR): Ferramentas para gerenciamento das máquinas virtuais XEN. Group: Utilities Group(pt_BR): Utilitários Group(es): Utilitarios License: GPL Source0: xen-%{source_ver}.tar.bz2 Patch0: xen-3.0.0-fhs.patch.bz2 #Patch1: xen-unstable-x86_64.patch.bz2 Requires: python-twisted-core Requires: python Requires: module-init-tools Requires: iptables Requires: bridge-utils Requires: glibc-xen BuildRequires: libpython-devel >= 2.4 BuildRequires: glibc-static-devel BuildRequires: libext2fs-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The basic tools for managing XEN virtual machines. %description -l pt_BR Ferramentas para gerenciamento das máquinas virtuais XEN. %prep #%setup -q -n %{name}-%{source_ver} %setup -q -n %{name}-unstable %patch0 -p0 #%patch1 -p1 -b .x86_64 %build # clean all stuff make clean export CFLAGS="$CFLAGS -fno-strict-aliasing" export HOSTCC="$HOSTCC -fno-strict-aliasing" %make -C tools %make -C xen %install make DESTDIR=%{buildroot} -C tools install make DESTDIR=%{buildroot} -C xen install # fix man pages mkdir -p %{buildroot}%{_datadir}/man #cp -adpR %{buildroot}/usr/man/* %{buildroot}%{_datadir}/man/ #rm -rf %{buildroot}/usr/man %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf %{buildroot} %files %defattr(0644,root,root,0755) %doc README %dir %{_sysconfdir}/xen %dir %{_sysconfdir}/xen/auto %config %{_sysconfdir}/xen/xend-config.sxp %config %{_sysconfdir}/xen/xmexample1 %config %{_sysconfdir}/xen/xmexample2 %config %{_sysconfdir}/xen/xmexample.vmx %config %{_sysconfdir}/xen/xmexample.vti %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/vif-bridge %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/block %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/block-common.sh %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/block-nbd %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/block-enbd #%attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/block-file %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/network-route %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/network-bridge %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/network-nat %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/vif-common.sh %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/vif-nat %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/vif-route %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/vtpm %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/vtpm-common.sh %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/xen-hotplug-common.sh %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/xen-network-common.sh %attr(0755,root,root) %config %{_sysconfdir}/xen/scripts/xen-script-common.sh %attr(0755,root,root) %config %{_sysconfdir}/xen/qemu-ifup %config %{_sysconfdir}/hotplug/xen-backend.agent %config %{_sysconfdir}/sysconfig/xendomains %config %{_sysconfdir}/udev/xen-backend.rules %config %{_sysconfdir}/udev/rules.d/xen-backend.rules %{_mandir}/man*/* %dir %{_prefix}/lib/xen %{_prefix}/lib/xen/* %dir %{_libdir}/python/xen %{_libdir}/python/xen/* %{_libdir}/python/grub/GrubConf.* %{_libdir}/python/grub/__init__.* %{_libdir}/python/grub/fsys/__init__.* %{_libdir}/python/grub/fsys/ext2/__init__.* %{_libdir}/python/grub/fsys/ext2/_pyext2.so %{_libdir}/python/grub/fsys/ext2/test.* #%{_libdir}/python/grub/fsys/ext2/_pyext2.so %{_libdir}/libxenstore* %{_libdir}/libxenctrl* %{_libdir}/libxenguest* #%{_libdir}/libxc* %{_includedir}/*.h %dir %{_datadir}/xen %{_datadir}/xen/* %dir /var/lib/xenstored %dir /var/run/xenstored /boot/xen* %dir /usr/include/xen /usr/include/xen/* %defattr(0755,root,root,0755) %config %{_sysconfdir}/init.d/xend %config %{_sysconfdir}/init.d/xendomains %{_sbindir}/xenstored %{_sbindir}/netfix %{_sbindir}/xm %{_sbindir}/xend %{_sbindir}/xenperf %{_sbindir}/setmask %{_sbindir}/xenbaked %{_sbindir}/xenmon.py #%{_sbindir}/xcs #%{_sbindir}/xcsdump %{_sbindir}/xenconsoled %{_sbindir}/xentop %{_sbindir}/xen-bugtool %{_bindir}/xenperf %{_bindir}/xc_shadow %{_bindir}/xencons %{_bindir}/cpuperf-xen %{_bindir}/cpuperf-perfcntr %{_bindir}/lomount %{_bindir}/xentrace %{_bindir}/xentrace_format %{_bindir}/pygrub %{_bindir}/setsize %{_bindir}/tbctl %{_bindir}/xenstore-exists %{_bindir}/xenstore-list %{_bindir}/xenstore-read %{_bindir}/xenstore-rm %{_bindir}/xenstore-write %{_bindir}/xsls #%dir /usr/libexec/xen #/usr/libexec/xen/* %changelog * Sun Jan 1 2006 Geza Gemes <geza@xxxxxxxxxxxxxxxxxxx> 3.0.0 - 3.0.0 release * Thu Sep 8 2005 Gwenole Beauchesne <gbeauchesne@xxxxxxxxxxxx> 3.0-0.20050823.6mdk - x86_64 fixes for binutils 2.16.9x - requires glibc-xen for */nosegneg/ libs * Thu Aug 11 2005 Flávio Bruno Leitner <fbl@xxxxxxxxxxxx> 3.0-0.20050823.5mdk - updated to snapshot of 2005-08-23 (last know working) * Thu Aug 11 2005 Flávio Bruno Leitner <fbl@xxxxxxxxxxxx> 3.0-0.20050829.4mdk - updated to snapshot of 2005-08-29 * Thu Aug 11 2005 Flávio Bruno Leitner <fbl@xxxxxxxxxxxx> 3.0-0.20050811.3mdk - updated to snapshot of 2005-08-19 * Thu Aug 11 2005 Flávio Bruno Leitner <fbl@xxxxxxxxxxxx> 3.0-0.20050811.2mdk - updated to snapshot of 2005-08-11 * Fri Aug 05 2005 Flávio Bruno Leitner <fbl@xxxxxxxxxxxx> 3.0-0.20050801.1mdk - created package. Next Message by Thread:Re: Bonding+vlan and initscripts problemOn Friday 20 January 2006 14:44, Philippe Weill wrote: > I have somes problems activating bond driver on a mandriva 2006 > I know it's not cooker but it's server related > > it's seem initscript are buggy for bonding or I missed something > when I reboot my server > network script doesn't enslave eth0 and eth1 > if i run just after network script > this one at startup , every thing work perfectly : > [root@localhost ~]# more /etc/rc3.d/S10network-bond-vlan > # > case $1 in > start) > /sbin/ifup bond0 > /sbin/ifup eth0 > /sbin/ifup eth1 > for iface in /etc/sysconfig/network-scripts/ifcfg-bond0.[0-9]* > do > /sbin/ifup $iface > done > ;; > [root@localhost ~]# more /etc/sysconfig/network > NETWORKING=yes > FORWARD_IPV4=false > NETWORKING_IPV6=no > VLAN=yes > > ifcfg-eth0: > DEVICE=eth0 > BOOTPROTO=static > ONBOOT=yes > USERCTL=no > MII_NOT_SUPPORTED=yes > MASTER=bond0 > SLAVE=yes > > ifcfg-eth1: > DEVICE=eth1 > BOOTPROTO=static > ONBOOT=yes > USERCTL=no > MII_NOT_SUPPORTED=yes > MASTER=bond0 > SLAVE=yes > > ifcfg-bond0 > DEVICE=bond0 > BOOTPROTO=none > MII_NOT_SUPPORTED=yes > ONBOOT=yes > USERCTL=NO I would try adding: IPADDR=0.0.0.0 here (to bond0), maybe also with: NETMASK=0.0.0.0 > > ifcfg-bond0.999: > DEVICE=bond0.999 > BOOTPROTO=static > ONBOOT=yes > IPADDR=192.168.254.200 > NETMASK=255.255.255.0 > BROADCAST=192.168.254.255 > USERCTL=no > MII_NOT_SUPPORTED=yes > > I also tried with an IP address directly on the bond device ( No VLAN ) > symptoms are the same eth0 and eth1 are NOT enslaved at boot time Can you provide the contents of /etc/modprobe.conf? Since, we also (at least on RHEL, I don't have any Mandriva boxes running with bond+VLAN at present) add: alias bond0 bonding Regards, Buchan -- Buchan Milne B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592) pgpwn1hPeXXyz.pgp Description: PGP signature
blog comments powered by Disqus
|
|