Re: [CentOS] keepalived+LVS

2011-03-09 Thread bedo
thanks Jure Pečar,
*but ,i just know how to complete lvs/tun only use keepalived.*
*my experiment need  a result .
*
2011/3/10 Jure Pečar pega...@nerv.eu.org

 On Wed, 9 Mar 2011 12:44:38 +0800
 bedo bedo.w...@gmail.com wrote:

  oh,god , anybody help me!

 Do yourself a favour and use HAproxy or something more higher level. I had
 nothing but bad expirience with lvs for the past few years.

 --

 Jure Pečar
 http://jure.pecar.org
 http://f5j.eu
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Internet connection sharing?

2011-03-08 Thread bedo
your topology is below?
centos xp---internet

then centos access internet via xp ?



2011/3/8 hadi motamedi motamed...@gmail.com

 On 3/8/11, Rudi Ahlers r...@softdux.com wrote:
  On Tue, Mar 8, 2011 at 12:09 PM, hadi motamedi motamed...@gmail.com
 wrote:
  On 3/8/11, Jakub Jedelsky jakub.jedel...@gmail.com wrote:
  Dne 8.3.2011 10:19, hadi motamedi napsal(a):
  Dear All
  My centos machine is connected to my MS Windows machine on the net.The
  MS Windows machine is connected to Internet via valid IP address
  setting and on its secondary ip address setting it can see my centos
  machine on the intranet.Can you please let me know how can try for
  Internet connection sharing such that my centos machine can see
  internet with minor modifications done?
  Thank you in advance
 
  Hi hadi,
 
  this isn't centos thing, all you need is to configure network bridge on
  your Windows machine. You didn't send info about your windows verison
 so
  try to google something about it
  (http://www.google.com/#q=windows+network+bridge)
 
  JJ
  ___
  CentOS mailing list
  CentOS@centos.org
  http://lists.centos.org/mailman/listinfo/centos
 
  Thank you very much for your reply.I am familiar with internet
  connection sharing on MS Windows as I have a third XP client on the
  same net connected to the internet.I tried as the following on my
  centos:
  #route add -net default gw 172.18.209.1
  Where this is the secondary ip address of the MS Windows host.But the
  centos cannot see the internet. Can you please let me know why?
  ___
 
 
  Did you add any DNS resovler IP's to /etc/resolv.conf ?
 
 
  --
  Kind Regards
  Rudi Ahlers
  SoftDux
 
  Website: http://www.SoftDux.com
  Technical Blog: http://Blog.SoftDux.com
  Office: 087 805 9573
  Cell: 082 554 7532
 
 Yes, I did but still internet unreachable.
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Internet connection sharing?

2011-03-08 Thread bedo
OK, i know ,you need ICS with XP ,you can see below:
http://www.microsoft.com/windowsxp/using/networking/expert/crawford_02july01.mspx

2011/3/8 hadi motamedi motamed...@gmail.com

 On 3/8/11, bedo bedo.w...@gmail.com wrote:
  your topology is below?
  centos xp---internet
 
  then centos access internet via xp ?
 
 
 
  2011/3/8 hadi motamedi motamed...@gmail.com
 
  On 3/8/11, Rudi Ahlers r...@softdux.com wrote:
   On Tue, Mar 8, 2011 at 12:09 PM, hadi motamedi motamed...@gmail.com
  wrote:
   On 3/8/11, Jakub Jedelsky jakub.jedel...@gmail.com wrote:
   Dne 8.3.2011 10:19, hadi motamedi napsal(a):
   Dear All
   My centos machine is connected to my MS Windows machine on the
   net.The
   MS Windows machine is connected to Internet via valid IP address
   setting and on its secondary ip address setting it can see my
 centos
   machine on the intranet.Can you please let me know how can try for
   Internet connection sharing such that my centos machine can see
   internet with minor modifications done?
   Thank you in advance
  
   Hi hadi,
  
   this isn't centos thing, all you need is to configure network bridge
   on
   your Windows machine. You didn't send info about your windows
 verison
  so
   try to google something about it
   (http://www.google.com/#q=windows+network+bridge)
  
   JJ
   ___
   CentOS mailing list
   CentOS@centos.org
   http://lists.centos.org/mailman/listinfo/centos
  
   Thank you very much for your reply.I am familiar with internet
   connection sharing on MS Windows as I have a third XP client on the
   same net connected to the internet.I tried as the following on my
   centos:
   #route add -net default gw 172.18.209.1
   Where this is the secondary ip address of the MS Windows host.But the
   centos cannot see the internet. Can you please let me know why?
   ___
  
  
   Did you add any DNS resovler IP's to /etc/resolv.conf ?
  
  
   --
   Kind Regards
   Rudi Ahlers
   SoftDux
  
   Website: http://www.SoftDux.com
   Technical Blog: http://Blog.SoftDux.com
   Office: 087 805 9573
   Cell: 082 554 7532
  
  Yes, I did but still internet unreachable.
  ___
  CentOS mailing list
  CentOS@centos.org
  http://lists.centos.org/mailman/listinfo/centos
 
 
 Yes, This is the topology I am seeking to work.
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] keepalived+LVS

2011-03-08 Thread bedo
oh,god , anybody help me!
recently , i try build lvs/tun of keepalived . but i am failure.
-
vip 172.16.39.100
lb1 master 172.16.39.10
lb2 backup 172.16.39.20
real server1 172.16.39.30
real server2 172.16.39.40

--master keepalived.conf
global_defs {
router_id LVS_DEVEL_M
}

vrrp_instance websev {
state MASTER
interface eth0
virtual_router_id 51
priority 100
advert_int 1

authentication {
auth_type PASS
auth_pass 
}

virtual_ipaddress {
172.16.39.100
}
}

virtual_server 172.16.39.100 80 {
delay_loop 6
lb_algo rr
lb_kind TUN
persistence_timeout 10
protocol TCP

real_server 172.16.39.30 80 {
weight 1
TCP_CHECK {
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
}
}
real_server 172.16.39.40 80 {
weight 1
TCP_CHECK {
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
}
}
}

-
real server 1:

ifconfig tunl0 172.16.39.100 netmask 255.255.255.0 up
route add -host 172.16.39.100 dev tunl0
echo 1 /proc/sys/net/ipv4/conf/tunl0/arp_ignore
echo 2 /proc/sys/net/ipv4/conf/tunl0/arp_announce
echo 1 /proc/sys/net/ipv4/conf/all/arp_ignore
echo 2 /proc/sys/net/ipv4/conf/all/arp_announce
sysctl -p


2011/3/8 Steve Barnes st...@echo.id.au

  no,my mean is the keepalived lvs need ipvsadm

 Ah right. Sorry, I thought you were having more problems :)

 Steve


 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] keepalived+LVS

2011-03-07 Thread bedo
hello,
  all!
if i want to use lvs function of keepalived , i must install ipvsadm ?
tks!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] keepalived+LVS

2011-03-07 Thread bedo
thanks for relay!
if i only use ha+lvs configuration of keepalived.the  load balance not work.
then,i install ipvsadm and setup lvs with tun by ipvsadm ,it's work.

command line below:
ipvsadm -A -t 172.16.39.100:80 -s rr
ipvsadm -a -t 172.16.39.100:80 -r 172.16.39.30:80 -i
ipvsadm -a -t 172.16.39.100:80 -r 172.16.39.40:80 -i


-lb server
(master) keepalived.conf
global_defs {
router_id LVS_DEVEL_M
}

vrrp_instance websev {
state MASTER
interface eth0
virtual_router_id 51
priority 100
advert_int 1

authentication {
auth_type PASS
auth_pass 
}

virtual_ipaddress {
172.16.39.100
}
}

virtual_server 172.16.39.100 80 {
delay_loop 6
lb_algo rr
lb_kind TUN
persistence_timeout 10
protocol TCP

real_server 172.16.39.30 80 {
weight 1
TCP_CHECK {
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
}
}
real_server 172.16.39.40 80 {
weight 1
TCP_CHECK {
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
}
}
}
---real server 1
command --
   ifconfig tunl0 172.16.39.100 netmask 255.255.255.0 up
   route add -host 172.16.39.100 dev tunl0
   echo 1 /proc/sys/net/ipv4/conf/tunl0/arp_ignore
   echo 2 /proc/sys/net/ipv4/conf/tunl0/arp_announce
   echo 1 /proc/sys/net/ipv4/conf/all/arp_ignore
   echo 2 /proc/sys/net/ipv4/conf/all/arp_announce
   sysctl -p
--


2011/3/8 Steve Barnes st...@echo.id.au

all!
  if i want to use lvs function of keepalived , i must install ipvsadm ?
  tks!
  ___
  CentOS mailing list
  CentOS@centos.org
  http://lists.centos.org/mailman/listinfo/centos
 

 [steve@mail ~]$ yum provides '*/ipvsadm'
 Loaded plugins: fastestmirror
 addons

  |  951 B
 00:00
 base

  | 2.1 kB
 00:00
 extras

  | 2.1 kB
 00:00
 updates

 | 1.9 kB
 00:00
 ipvsadm-1.24-10.x86_64 : Utility to administer the Linux Virtual Server
 Repo: base
 Matched from:
 Filename: /etc/rc.d/init.d/ipvsadm
 Filename: /sbin/ipvsadm

 I use keepalived/lvs. Yes, you need to install it. Otherwise, there's no
 way for you to manage the lvs function?

 At least, that's what I've been led to believe...

 Cheers

 Steve

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] keepalived+LVS

2011-03-07 Thread bedo
no,my mean is the keepalived lvs need ipvsadm

2011/3/8 Steve Barnes st...@echo.id.au

  if i only use ha+lvs configuration of keepalived.the  load balance not
 work.
  then,i install ipvsadm and setup lvs with tun by ipvsadm ,it's work.
  command line below:
  ipvsadm -A -t http://172.16.39.100:80 172.16.39.100:80
  -s rr
  ipvsadm -a -t http://172.16.39.100:80 172.16.39.100:80
  -r http://172.16.39.30:80 172.16.39.30:80
  -i
  ipvsadm -a -t http://172.16.39.100:80 172.16.39.100:80
  -r http://172.16.39.40:80 172.16.39.40:80
  -i
  -lb server
 (master) keepalived.conf
  global_defs {
  router_id LVS_DEVEL_M
  }
  vrrp_instance websev {
  state MASTER
  interface eth0
  virtual_router_id 51
  priority 100
  advert_int 1
  authentication {
  auth_type PASS
  auth_pass 
  }
  virtual_ipaddress {
  172.16.39.100
  }
  }
  virtual_server 172.16.39.100 80 {
  delay_loop 6
  lb_algo rr
  lb_kind TUN
  persistence_timeout 10
  protocol TCP
  real_server 172.16.39.30 80 {
  weight 1
  TCP_CHECK {
  connect_timeout 3
  nb_get_retry 3
  delay_before_retry 3
  }
  }
  real_server 172.16.39.40 80 {
  weight 1
  TCP_CHECK {
  connect_timeout 3
  nb_get_retry 3
  delay_before_retry 3
  }
  }
  }
  ---real
 server 1 command
 --
 ifconfig tunl0 172.16.39.100 netmask 255.255.255.0 up
 route add -host 172.16.39.100 dev tunl0
 echo 1 /proc/sys/net/ipv4/conf/tunl0/arp_ignore
 echo 2 /proc/sys/net/ipv4/conf/tunl0/arp_announce
 echo 1 /proc/sys/net/ipv4/conf/all/arp_ignore
 echo 2 /proc/sys/net/ipv4/conf/all/arp_announce
 sysctl -p

 Assuming I understand you correctly, and assuming you have an init.d script
 in place, run this command:

 grep daemon /etc/init.d/keepalived

 Odds are, you're editing /usr/local/etc/keepalived.conf, but the init.d
 script starts keepalived and tells it to use /etc/keepalived.conf

 ?

 Steve

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Ext4 on CentOS 5.5 64bit

2010-12-22 Thread bedo
ext4 better then ext3 !
you can install ext4 by yum
see:
https://ext4.wiki.kernel.org/index.php/Ext4_Howto#Compatibility

2010/12/23 cpol...@surewest.net

 Matt wrote:
  Is ext4 stable on CentOS 5.5 64bit?  I have an email server with a
  great deal of disk i/o and was wandering if ext4 would be better then
  ext3 for it?

 Before committing to ext4 on a production server, it
 would be good to consider the comments made in
 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/317781/comments/45
 which presumably still apply to current CentOS 5.5 64-bit kernels.
 As I read it, Ts'o argues that the apparent loss of stability
 compared to ext3 is a design issue in the realm of applications
 that run atop it. I hope this is not a misreading.
 --
 Charles Polisher

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos