About this list Date view Thread view Subject view Author view Attachment view

From: Gebhardt Thomas (gebhardt_at_hrz.Uni-Marburg.DE)
Date: Fri 27 Feb 2004 - 13:15:03 GMT


Hi,

in a previous mail I noticed that sometimes I found
the alias interface of a vserver down, thus this
vserver had lost its network connectivity. Now I
have found a way to reproduce this effect:

I've got 2 vservers (mainmx and smtp-staff) running:

master:~# vserver-stat
CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME DESCRIPTION
0 53 47MB 5kB 41m54.53 9m49.24 6h52m36 root server
49153 22 266MB 33kB 17m38.16 2m38.23 6h50m30 smtp-staff
49156 25 309MB 36kB m53.53 m09.20 8m14.52 mainmx

master:~# ip addr ls
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:07:e9:06:bb:09 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.1 peer 10.0.0.2/32 brd 10.0.0.1 scope global eth0
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:07:e9:06:bb:08 brd ff:ff:ff:ff:ff:ff
    inet xxx.yyy.z.14/25 brd xxx.yyy.z.127 scope global eth1
    inet xxx.yyy.z.35/25 brd xxx.yyy.z.127 scope global eth1:mainmx
    inet xxx.yyy.z.34/25 brd xxx.yyy.z.127 scope global secondary
eth1:smtp-staf

It seems worth to note that the eth1:smtp-staf alias interface is marked
secondary, whatever this means. ifconfig does not show this information.

Now I stop vserver mainmx:

master:~# vserver mainmx stop
Stopping the virtual server mainmx
Server mainmx is running
....
Killing all processes

The second alias interface has disappeared, too:

master:~# ip addr ls
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:07:e9:06:bb:09 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.1 peer 10.0.0.2/32 brd 10.0.0.1 scope global eth0
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:07:e9:06:bb:08 brd ff:ff:ff:ff:ff:ff
    inet xxx.yyy.z.14/25 brd xxx.yyy.z.127 scope global eth1

vserver-stat shows that vserver smtp-staff is still running.

Starting mainmx again only brings up the first alias interface

master:~# vserver mainmx start
Starting the virtual server mainmx
Server mainmx is not running
...

master~# ip addr ls
...
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:07:e9:06:bb:08 brd ff:ff:ff:ff:ff:ff
    inet xxx.yyy.z.14/25 brd xxx.yyy.z.127 scope global eth1
    inet xxx.yyy.z.35/25 brd xxx.yyy.z.127 scope global eth1:mainmx

I can enter smtp-staff, which brings up the second alias interface:

master:~# vserver smtp-staff enter
ipv4root is now xxx.yyy.z.34
New security context is 49153
smtp-staff:/# exit
logout

master:~# ip addr ls
...
    inet xxx.yyy.z.14/25 brd xxx.yyy.z.127 scope global eth1
    inet xxx.yyy.z.35/25 brd xxx.yyy.z.127 scope global eth1:mainmx
    inet xxx.yyy.z.34/25 brd xxx.yyy.z.127 scope global secondary
eth1:smtp-staff

I'm running kernel 2.4.24-vs1.22 with vserver-utils 0.29-1 on
Debian/woody.

Cheers, Thomas
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 27 Feb 2004 - 13:16:23 GMT by hypermail 2.1.3