Livio Teixeira Filho
RESUME ( English )

CURRICULO ( Portugues )

Home


UNIX TIPS

Solaris

HP-UX

AIX

Linux


DOWNLOADS

( my publications )

File and Print Serving with Linux on IBM i5

Solaris to AIX Migration: A Guide for System Administrators

Achieving High Availability on Linux for System z with Linux-HA Release 2


PICTURES

IBM-Rochester/MN (Jan/2005)

Gustavo 1 year old Birthday (Jul/2005)

São Luis/MA (Sep/2005)

Jan to Apr/2006

Texas (Apr to May/2006)

May to Aug/2006

Sep to Dec/2006

Italy/Feb-2007

Jan to Mar/2007

Washington/VA (Jun/2007)

Chesterfield/VA (Oct/2007)

New York (Jun/2008)

Dec/2008 to Jan/2009)

Itacare/Bahia (Jan/2009)

Jan to Dec/2010

Moto trail (Ago/2010)

Orlando/FL (Jan/2011)

Flying around Campinas (2011)

Flying Avid Flyer around Tatui (Jan/2012)

DICAS - LINUX

1- LINUX - General

1.1- How to disable IPV6 interface
1.2- Example how to work with lvm2 and SDD (Multipath Subsystem Device Driver)
1.3- How to setup a bond like backup adapter
1.4- Recovering a resource due the failcount issue on Linux HA
































1.1- How to disable IPV6 interface

Include these entries in the /etc/modprobe.conf:

alias net-pf-10 off
alias ipv6 off



1.2- Example how to work with lvm2 and SDD (Multipath Subsystem Device Driver)

In this example, there is one LUN and two ways (sdd e sdc)

a) Include the vpath control in the lvm2 (per default, lvm2 support just ide, sd, md, loop, dasd, dac960, ndb, ida, cciss, udb and ataraid)
types = [ "vpath", 16 ]

b) Filter controel: (in this case, ew removed sdc*, sdd*, pci*, e and added others).
filter = [ "r/sdc.*/" , "r/sdd.*/" , "r/pci.*/" , "a/.*/" ]




1.3- How to setup a bond like backup adapter

a) Create a bond0 configuration file

# vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
USERCTL=no
ONBOOT=yes
IPADDR=X.X.X.X
NETMASK=Y.Y.Y.Y
NETWORK=Z.Z.Z.Z

b) Modify eth1 and eth2 config files
(Assuming that eth1 and eth2 are in the customer vlan)

# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

# vi /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

c) Load bond driver/module

# vi /etc/modprobe.conf
alias bond0 bonding
options bonding miimon=100 mode=1

d) Test configuration

# modprobe bonding
# service network restart
# cat /proc/net/bonding/bond0



1.4- Recovering a resource due the failcount issue on Linux HA

a) Verify which resources have failcount to be cleaned
crm_failcount -U node_name -r resource_name -G

b) Put the resource in unmanaged mode
crm_resource -r resource_name -p is_managed -v false

c) Remove the failcount
crm_failcount -U node_name -r resource_name -D

d) Remove error messages
crm_resource -H node_name -r resource_name -C

e) Put the resource in managed mode
crm_resource -r resource_name -d is_managed