[Lxc-users] frequent host machine kernel panic

2013-06-01 Thread Kalyana sundaram
Hi All
We run a bunch of lxc containers over a centos 6.2 host. The containers use
veth pairs and connect to the network through a linux bridge(br0) at the
host. The setup was fine. But suddenly the host machine started crashing
frequently with kernel panic. The strings in kernal panic are

do_invalid_op
skb_over_panic
invalid_op
skb_put
tg3_poll_work
tg3_poll_msix
net_rx_action
hrtimer_get_next_event
__do_softirq

(Since the mail with screenshot bounces I could not attach the screenshot
of kernel panic.)

It seems like a network issue. I need to zero down as whether it is a
driver issue, linux bridge issue or lxc issue. Has anybody experienced this
issue? Please do share your expertise
-- 
Kalyanasundaram
http://blogs.eskratch.com/
https://github.com/kalyanceg/
--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] frequent host machine kernel panic

2013-06-01 Thread Papp Tamas
On 06/01/2013 09:43 PM, Kalyana sundaram wrote:
 Hi All
 We run a bunch of lxc containers over a centos 6.2 host. The containers use 
 veth pairs and connect
 to the network through a linux bridge(br0) at the host. The setup was fine. 
 But suddenly the host
 machine started crashing frequently with kernel panic. The strings in kernal 
 panic are

 do_invalid_op
 skb_over_panic
 invalid_op
 skb_put
 tg3_poll_work
 tg3_poll_msix
 net_rx_action
 hrtimer_get_next_event
 __do_softirq

 (Since the mail with screenshot bounces I could not attach the screenshot of 
 kernel panic.)

 It seems like a network issue. I need to zero down as whether it is a driver 
 issue, linux bridge
 issue or lxc issue. Has anybody experienced this issue? Please do share your 
 expertise

If it was healthy before, I would suspect HW issue.

tamas


--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


[Lxc-users] Script to generate systemd unit file for containers

2013-06-01 Thread Shridhar Daithankar
Hi All,

I looked around and didn't find a script that generates systemd unit files for 
containers.

Here is the script. I hope people find it useful and it is included by default 
in lxc upstream.

Thanks

-
#!/bin/bash

function usage()
{
  echo Usage:$0 enable|disable container name
}

if [ $# -lt 2 ] ;
then
  usage
  exit -1;
fi

export UNITFILE=/etc/systemd/system/multi-user.target.wants/$2_container.service


case $1 in
enable)
  cat EOF  $UNITFILE
[Unit]
Description=Container $2 service

[Service]
Type=forking
ExecStart=/usr/bin/lxc-start -d -n $2
ExecStop=/usr/bin/lxc-stop -n $2
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
EOF
  
  ;;
disable)
  rm $UNITFILE
  ;;
*)
  usage
  ;;
esac

-
-- 
Regards
 Shridhar

--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users