create cluster - network config (vmbr0, vmbr1..)

eliotte

New Member
Jun 17, 2014
10
0
1
I have 2 cards on my node (eth0 and eth1). I started to create the cluster and thought the cluster would use vmbr0 to control itself. What a surprise when I saw the public ip typing "pvecm staus".

My eth0 is a public IP and eth1 is the private interface.

Can someone help/explain me?

I use 3.2-4

Code:
[COLOR=#4C2F2D][FONT=Courier]root@node2:/# pvecm status[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Version: 6.2.0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Config Version: 1[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Cluster Name: test[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Cluster Id: 26553[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Cluster Member: Yes[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Cluster Generation: 4[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Membership state: Cluster-Member[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Nodes: 1[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Expected votes: 1[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Total votes: 1[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Node votes: 1[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Quorum: 1  [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Active subsystems: 5[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Flags: [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Ports Bound: 0  [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Node name: node2[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Node ID: 1[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Multicast addresses: 239.192.103.33 [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]Node addresses: 192.99.x.x[/FONT][/COLOR]

Code:
[COLOR=#4C2F2D][FONT=Courier]dummy0    Link encap:Ethernet  HWaddr 2a:7f:ea:f6:af:e0  [/FONT][/COLOR][COLOR=#4C2F2D][FONT=Courier]          inet6 addr: fe80::287f:eaff:fef6:afe0/64 Scope:Link[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX packets:0 errors:0 dropped:0 overruns:0 frame:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          TX packets:23 errors:0 dropped:0 overruns:0 carrier:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          collisions:0 txqueuelen:0 [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX bytes:0 (0.0 B)  TX bytes:1554 (1.5 KiB)[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]
[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]eth0      Link encap:Ethernet  HWaddr 00:25:90:e6:e2:d4  [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX packets:65015 errors:0 dropped:0 overruns:0 frame:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          TX packets:22657 errors:0 dropped:0 overruns:0 carrier:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          collisions:0 txqueuelen:1000 [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX bytes:81302546 (77.5 MiB)  TX bytes:4537123 (4.3 MiB)[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]
[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]eth1      Link encap:Ethernet  HWaddr 00:25:90:e6:e2:d5  [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX packets:141 errors:0 dropped:0 overruns:0 frame:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          collisions:0 txqueuelen:1000 [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX bytes:32854 (32.0 KiB)  TX bytes:1126 (1.0 KiB)[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]
[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]lo        Link encap:Local Loopback  [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          inet addr:127.0.0.1  Mask:255.0.0.0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          inet6 addr: ::1/128 Scope:Host[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          UP LOOPBACK RUNNING  MTU:16436  Metric:1[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX packets:868 errors:0 dropped:0 overruns:0 frame:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          TX packets:868 errors:0 dropped:0 overruns:0 carrier:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          collisions:0 txqueuelen:0 [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX bytes:138913 (135.6 KiB)  TX bytes:138913 (135.6 KiB)[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]
[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          inet6 addr: fe80::1/128 Scope:Link[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX packets:0 errors:0 dropped:0 overruns:0 frame:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          TX packets:0 errors:0 dropped:3 overruns:0 carrier:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          collisions:0 txqueuelen:0 [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]
[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]vmbr0     Link encap:Ethernet  HWaddr 00:25:90:e6:e2:d5  [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          inet6 addr: fe80::225:90ff:fee6:e2d5/64 Scope:Link[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX packets:62 errors:0 dropped:0 overruns:0 frame:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          collisions:0 txqueuelen:0 [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX bytes:2852 (2.7 KiB)  TX bytes:578 (578.0 B)[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]
[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]vmbr1     Link encap:Ethernet  HWaddr 2a:7f:ea:f6:af:e0  [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX packets:0 errors:0 dropped:0 overruns:0 frame:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          collisions:0 txqueuelen:0 [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX bytes:0 (0.0 B)  TX bytes:578 (578.0 B)[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]
[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]vmbr2     Link encap:Ethernet  HWaddr 00:25:90:e6:e2:d4  [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          inet addr:192.99.x.x  Bcast:192.99.x.255  Mask:255.255.255.0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX packets:46380 errors:0 dropped:0 overruns:0 frame:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          TX packets:22082 errors:0 dropped:0 overruns:0 carrier:0[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          collisions:0 txqueuelen:0 [/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]          RX bytes:79406100 (75.7 MiB)  TX bytes:4501509 (4.2 MiB)[/FONT][/COLOR]
[COLOR=#4C2F2D][FONT=Courier]
[/FONT][/COLOR]
 
I think my config was ok. I need to chnage /etc/hosts to what ever I want as IP for the node. Can someone can validate it.

Thanks