Jul 18, 2011

bonding in suse linux


Bonding in SUSE Enterprise Linux

Release:
SUSE Enterprise Linux 10

Problem:
Configure the bond0 interface with the interface eth0 and eth1

Solution:
1)     Create a bond0 interface file in the /etc/sysconfig/network directory.

            # vi /etc/sysconfig/network/ifcfg-bond0
           
            BONDING_MASTER='yes'
            BONDING_MODULE_OPTS='mode=1 miimon=100 use_carrier=0'
            BOOTPROTO='static'
            IPADDR='192.168.10.19'
            NETMASK='255.255.255.0'
            STARTMODE='onboot'
            USERCONTROL='no'
            BONDING_SLAVE0='bus-pci-0000:03:00.0'
            BONDING_SLAVE1='bus-pci-0000:03:00.1'

Note:BONDING_SLAVE” value is available in the ethernet configuration file as a parameter “_nm_name” and also “mode=1” indicates active-backup policy  ( mode=0 indicates Round-robin policy).

2)     configure both the ethernet interface eth0 and eth1 like below

            # vi /etc/sysconfig/network/ifcfg-eth-id-xx:xx:xx:xx:xx:xx

            BOOTPROTO='none'
            STARTMODE='off'
            USERCONTROL='no'
                                        
3)     Restart the network service

            # service network restart

4)     To check the status of the bond0 interface use the below command

            # cat /proc/net/bonding/bond0






Jul 7, 2011

Manually Load Driver in initrd on SUSE

Manually Load Driver in initrd on SUSE Server


Release:

SUSE Linux Enterprise Server 10 SP2

Problem:

Need to manually add the hba card (fibre card) driver in initrd image

Solution:

1)      Load the required driver temporarily using the modprobe command

            # modprobe -v qla2xxx

2)      Check weather the driver module is loaded or not by using lsmod
           
                # lsmod | grep qla

3)      Add the new driver module entry in the kernel file

                # vi /etc/sysconfig/kernel

            INITRD_MODULES="ata_piix mptsas processor thermal fan jbd ext3 edd qla2xxx"

4)      Now recreate the initrd image using the below command.

                # mkinitrd -k /boot/vmlinux-2.6.16.60-0.21-smp.gz -i /boot/initrd-2.6.16.60-0.21-smp

5)      Reboot the server and check weather the driver is loaded or not.
           
                # init 6

       # lsmod | grep qla