Ingo Juergensmann: Xen randomly crashing server
It's a long story... an oddessey of almost two years...
But to start from the beginning: Back then I rented a server at Hetzner until they decided to bill for every IP address you got from them. I got a /26 in the past and so I would have to pay for every IP address of that subnet in addition to the server rent of 79.- EUR/month. That would have meant nearly doubling the monthly costs. So I moved with my server from Hetzner to rrbone Net, which offered me a /26 on a rented Cisco C200 M2 server for a competitve price.
After migrating the VMs from Hetzner to rrbone with the same setup that was running just fine at Hetzner I experienced spontaneous reboots of the server, sometimes several times per day and in short time frame. The hosting provider was very, very helpful in debugging this like exchanging the memory, setting up a remote logging service for the CIMC and such. But in the end we found no root cause for this. The CIMC logs showed that the OS was rebooting the machine.
Anyway, I then bought my own server and exchanged the Cisco C200 by my own hardware, but the reboots still happen as before. Sometimes the servers runs for weeks, sometimes the server crashes 4-6 times a day, but usually it's like a pattern: when it crashes and reboots, it will do that again within a few hours and after the second reboot the chances are high that the server will run for several days without a reboot - or even weeks.
The strange thing is, that there are absolutely no hints in the logs, neither syslog or in the Xen logs, so I assume that's something quite deep in the kernel that causes the reboot. Another hint is, that the reboots fairly often happened, when I used my Squid proxy on one of the VMs to access the net. I'm connecting for example by SSH with portforwarding to one VM, whereas the proxy runs on another VM, which led to network traffic between the VMs. Sometimes the server crashed on the very firsts proxy requests. So, I exchanged Squid by tinyproxy or other proxies, moved the proxy from one VM to that VM I connect to using SSH, because I thought that the inter-VM traffic may cause the machine to reboot. Moving the proxy to another virtual server I rented at another hosting provider to host my secondary nameserver did help a little bit, but with no real hard proof and statistics, just an impression of mine.
I moved from xm toolstack to xl toolstack as well, but didn't help either. The reboots are still happening and in the last few days very frequent. Even with the new server I exchanged the memory, used memory mirroring as well, because I thought that it might be a faulty memory module or something, but still rebooting out of the blue.
During the last weekend I configured grub to include "noreboot" command line and then got my first proof that somehow the Xen network stack is causing the reboots:
This is a screenshot of the IPMI console, so it's not showing the full information of that kernel oops, but as you can see, there are most likely such parts involved like bridge, netif, xenvif and the physical igb NIC.
Here's another screenshot of a crash from this night:
Slightly different information, but still somehow network involved as you can see in the first line (net_rx_action).
So the big question is: is this a bug Xen or with my setup? I'm using xl toolstack, the xl.conf is basically the default, I think:
This is a screenshot of the IPMI console, so it's not showing the full information of that kernel oops, but as you can see, there are most likely such parts involved like bridge, netif, xenvif and the physical igb NIC.
Here's another screenshot of a crash from this night:
Slightly different information, but still somehow network involved as you can see in the first line (net_rx_action).
So the big question is: is this a bug Xen or with my setup? I'm using xl toolstack, the xl.conf is basically the default, I think:
## Global XL config file ##With this the default network scripts of the distribution (i.e. Debian stable) should be used. The network setup consists of two brdiges:
# automatically balloon down dom0 when xen doesn't have enough free
# memory to create a domain
autoballoon=0
# full path of the lockfile used by xl during domain creation
#lockfile="/var/lock/xl"
# default vif script
#vif.default.script="vif-bridge"
auto xenbr0There are some more lines to that config like setting up some iptables rules with up commands and such. But as you can see my eth0 NIC is part of the "main" xen bridge with all the IP addresses that are reachable from the outside. The second bridge is used for internal networking like database connections and such. I would rather like to use a netconsole to capture the full debug output in case of a new crash, but unfortunately this only works until the bridge is brought up and in place:
iface xenbr0 inet static
address 31.172.31.193
netmask 255.255.255.192
gateway 31.172.31.254
bridge_ports eth0
pre-up brctl addbr xenbr0 auto xenbr1
iface xenbr1 inet static
address 192.168.254.254
netmask 255.255.255.0
pre-up brctl addbr xenbr1
[ 0.000000] Command line: placeholder root=UUID=c3....22 ro debug ignore_loglevel loglevel=7 netconsole=port@31.172.31.193/eth0,514@5.45.x.y/e0:ac:f1:4c:y:xSo, the first question is: how to use netconsole with an interface that is used on a bridge? The second question is: is the setup with two bridges with Xen ok? I've been using this setup for years now and it worked fairly well on the Hetzner server as well, although I used there xm toolstack with a mix of bridge and routed setup, because Hetzner didn't like to see the MAC addresses of the other VMs on the switch and shut the port down if that happens.
[ 32.565624] netpoll: netconsole: local port $port
[ 32.565683] netpoll: netconsole: local IPv4 address 31.172.31.193
[ 32.565742] netpoll: netconsole: interface 'eth0'
[ 32.565799] netpoll: netconsole: remote port 514
[ 32.565855] netpoll: netconsole: remote IPv4 address 5.45.x.y
[ 32.565914] netpoll: netconsole: remote ethernet address e0:ac:f1:4c:y:x
[ 32.565982] netpoll: netconsole: device eth0 not up yet, forcing it
[ 36.126294] netconsole: network logging started
[ 49.802600] netconsole: network logging stopped on interface eth0 as it is joining a master device
Kategorie:
Some of you (
Last night I got back from spending around 5 days in the Bay Area for
Spring Break. I stayed in a hostel in downtown SF for three nights
and then I stayed with a friend who is doing a PhD at Stanford. When
initially planning this trip my aim was just to visit somewhere
interesting on the west coast of the continental United States. I
chose the Bay Area because I wanted to get my PGP key signed by some
Debian Developers and that area has a high concentration of DDs, and
because I wanted to see my friend at Stanford. But in the end I liked
San Francisco a lot more than expected to and am very glad that I had an
opportunity to visit.
The first thing that I liked was how easy it seemed to be to find
people interested in the same kind of tech stuff that I am. I spent
my first afternoon in the city exploring the famous Mission district,
and at one point while sitting in the original Philz Coffee I found
that the person sitting next to me was running Debian on her laptop
and blogs about data privacy. We had an discussion about how viable
OpenPGP is as a component of a technically unsophisticated user s
attempts to stay safe online. Later that same day while riding the
subway train, someone next to me fired up Emacs on their laptop. And
over the course of my trip I met five Debian Developers doing all
sorts of different kinds of work both in and outside of Debian, and
some Debian users including one of Stanford s UNIX sysadmins. This is
a far cry from my day-to-day life down in the Sonoran Desert where new
releases of iOS are all anyone seems to be interested in.
Perhaps I should have expected this before my trip, but I think I had
assumed that most of the work being done in San Francisco was writing
web apps, so I was pleased to find people working on the same kind of
things that I am currently putting time into. And in saying the
above, I don t mean to demean the interests of the people around me in
Arizona for a moment (nor those writing web apps; I d like to learn
how to write good ones at some point). I m very grateful to be able
to discuss my philosophical interests with the other graduate
students. It s just that I miss being able to discuss tech stuff. I
guess you can t have everything you want!
One particular encouraging meeting I had was with a Debian Developer
employed by Google and working on Git. While my maths background sets
me up with the right thinking skills to write programs, I don t have
knowledge typically gained from an education in computer science that
enables one to work on the most interesting software. In particular,
low-level programming in C is something that I had thought it wouldn t
be possible for me to get started with. So it was encouraging to meet
the DD working on Git at Google because his situation was similar: his
undergraduate background is in maths and he was able to learn how to
code in C by himself and is now working on a exciting project at a
company that it is hard to get hired by. I don t mean that doing
exactly what he s doing is something that I aiming for, just that it
is very encouraging to know the field is more open to me than I had
thought. I was also reminded of how fortunate I am to have the
Internet to learn from and projects like Debian to get involved with.
Moving on from tech, I enjoyed the streets of San Francisco, and the
Stanford campus. San Francisco is fantastically multicultural though
with clear class and wealth divisions. A very few minutes walk from
the Twitter headquarters with its tech bros , as the maths PhD
students I met at Stanford call them, are legions of the un- and
barely-employed passing their time on the concrete. I enjoyed riding
one of the old cable cars through the aesthetically revealing and
stark combination of a west coast grid system on some very steep
hills. I was fortunate to be able to walk across the Golden Gate
Bridge on a perfectly clear and mist-free day.
Meeting people involved with Debian and meeting my old friend at
Stanford had me reflecting on and questioning my life in the desert
even more than usual. I try to remind myself that there is an end
date in sight and I will regret spending my time here just thinking
about leaving. I sometimes worry that I could easily find myself
moving to the big city London, San Francisco or elsewhere and
letting myself be carried by the imagined self-importance of that,
sidelining and procrastinating things that I should prize more highly.
I should remember that the world of writing software in big cities
isn t going away and my time in the desert is an opportunity to
prepare myself better for that, building my resistance to being swept
away by the tides of fashion.

After some serious thinking, I've decided not to nominate myself
in the Debian project leader elections for 2016. While I was doing
that, I wrote the beginnings of a platform, below. I'm publishing it
to have a record of what I was thinking, in case I change my mind in
the future, and perhaps it can inspire other other people to do
something I would like to happen.
Why not run? I don't think I want to deal with the stress. I already
have more than enough stress in my life, from work. I enjoy my
obscurity in Debian. It allows me to go away for long periods of time,
and to ignore any discussions, topics, and people that annoy or
frustrate me, if I don't happen to want to tackle them at any one
time. I couldn't do that if I was DPL.
NOT a platform for Debian project leader election, 2016
Apart from what the Debian constitution formally specifies, I find
that the important duties of the Debian project leader are:
The situation where Agon (the designated organizer of the Chess World
Championship, and also the Candidates tournament, the prequalifier to
said WC) is trying to claim exclusive rights of the broadcasting of the
moves (not just the video) is turning bizarre.
First of all, they have
Julien Ries anthropological research showed us that, already more than two million years ago, Homo Habilis looks like Symbolicus, with aesthetic sensibility, sense of symmetry and consciousness of creativity. Gilbert Durand confirms that the specific activity of man, the identity card of Homo Sapiens, is the symbolic activity, an essential part of his creativity. Then, man is creative at the moment when his first activates his imaginative feature.
So we can ask ourselves, how did we miss the creativity of man, of which so much we feel the need, or at least where is it hiding now? But above all which kind of creativity are we talking about?
<
I'm in London for 
Like
What happened in the