WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Restarting xend while domU are running

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Restarting xend while domU are running
From: bertrand.lupart@xxxxxxxxxx (Bertrand LUPART)
Date: Tue, 9 Aug 2011 11:48:49 +0200
Delivery-date: Tue, 09 Aug 2011 03:41:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: Linkeo.com
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: MacSOUP/2.8.3 (Mac OS X version 10.6.7 (x86))
Hello,

Story:
- xend 3.2.1 crashed on Dom0 and didn't restarted (xend.log below)
- DomU are still running


Question:
- Is it safe to restart xend while DomU are still running? Won't xend
try to start allready running DomU and mess up stuff?
- Is it safer to log into each DomU and shutdown it manually before
restarting xend?

Thanx,



----8<----8<----8<----
[2011-07-13 06:35:24 3509] CRITICAL (SrvDaemon:231) Xend died due to
signal 9!  Restarting it.
[2011-07-13 06:35:24 8776] INFO (SrvDaemon:331) Xend Daemon started
[2011-07-13 06:35:25 8776] INFO (SrvDaemon:335) Xend changeset:
unavailable.
[2011-07-13 06:35:26 8776] INFO (SrvDaemon:342) Xend version: Unknown.
[2011-07-13 06:35:32 8776] INFO (XendNetwork:114) Not recreating missing
unmanaged network eth0
[2011-07-13 06:35:34 8776] DEBUG (XendDomainInfo:132)
XendDomainInfo.recreate({'max_vcpu_id': 3, 'cpu_time':
1268771652253510L, 'ssidref': 73744, 'hvm': 0, 'shutdown_reason': 0,
'dying': 0, 'online_vcpus': 4, 'domid': 0, 'pau
sed': 0, 'crashed': 0, 'running': 1, 'maxmem_kb': 17179869180L,
'shutdown': 0, 'mem_kb': 643072L, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0], 'blocked': 0, 'name': 'Domain-0'})
[2011-07-13 06:35:34 8776] INFO (XendDomainInfo:149) Recreating domain
0, UUID 00000000-0000-0000-0000-000000000000. at /local/domain/0
[2011-07-13 06:35:36 8776] DEBUG (XendDomain:443) Adding Domain: 0
[2011-07-13 06:35:36 8776] DEBUG (XendDomain:379) number of vcpus to use
is 0
[2011-07-13 06:35:36 8776] DEBUG (XendDomainInfo:132)
XendDomainInfo.recreate({'max_vcpu_id': 0, 'cpu_time': 576190711184462L,
'ssidref': 73744, 'hvm': 0, 'shutdown_reason': 0, 'dying': 0,
'online_vcpus': 1, 'domid': 2, 'paus
ed': 0, 'crashed': 0, 'running': 0, 'maxmem_kb': 2097152L, 'shutdown':
0, 'mem_kb': 2097152L, 'handle': [115, 125, 2, 22, 224, 144, 141, 222,
233, 135, 135, 50, 188, 10, 17, 249], 'blocked': 1})
[2011-07-13 06:35:36 8776] INFO (XendDomainInfo:149) Recreating domain
2, UUID 737d0216-e090-8dde-e987-8732bc0a11f9. at /local/domain/2
[2011-07-13 06:35:36 8776] DEBUG (XendDomainInfo:1092)
XendDomainInfo.handleShutdownWatch
[2011-07-13 06:35:37 8776] DEBUG (XendDomain:443) Adding Domain: 2
[2011-07-13 06:35:37 8776] DEBUG (XendDomainInfo:132)
XendDomainInfo.recreate({'max_vcpu_id': 0, 'cpu_time': 16677756695156L,
'ssidref': 73744, 'hvm': 0, 'shutdown_reason': 0, 'dying': 0,
'online_vcpus': 1, 'domid': 3, 'pause
d': 0, 'crashed': 0, 'running': 0, 'maxmem_kb': 262144L, 'shutdown': 0,
'mem_kb': 262144L, 'handle': [157, 213, 214, 223, 183, 17, 225, 225,
231, 247, 133, 104, 14, 200, 1, 221], 'blocked': 1})
[2011-07-13 06:35:37 8776] INFO (XendDomainInfo:149) Recreating domain
3, UUID 9dd5d6df-b711-e1e1-e7f7-85680ec801dd. at /local/domain/3
[2011-07-13 06:35:37 8776] DEBUG (XendDomain:443) Adding Domain: 3
[2011-07-13 06:35:37 8776] DEBUG (XendDomainInfo:132)
XendDomainInfo.recreate({'max_vcpu_id': 0, 'cpu_time': 53612680526673L,
'ssidref': 73744, 'hvm': 0, 'shutdown_reason': 0, 'dying': 0,
'online_vcpus': 1, 'domid': 12, 'paus
ed': 0, 'crashed': 0, 'running': 0, 'maxmem_kb': 1048576L, 'shutdown':
0, 'mem_kb': 1048576L, 'handle': [169, 167, 192, 176, 175, 15, 178, 198,
162, 180, 45, 237, 175, 17, 143, 169], 'blocked': 1})
[2011-07-13 06:35:41 8776] INFO (XendDomainInfo:149) Recreating domain
12, UUID a9a7c0b0-af0f-b2c6-a2b4-2dedaf118fa9. at /local/domain/12
[2011-07-13 06:35:41 8776] DEBUG (XendDomain:443) Adding Domain: 12
[2011-07-13 06:35:41 8776] DEBUG (XendDomainInfo:132)
XendDomainInfo.recreate({'max_vcpu_id': 0, 'cpu_time': 19924498988769L,
'ssidref': 73744, 'hvm': 0, 'shutdown_reason': 0, 'dying': 0,
'online_vcpus': 1, 'domid': 15, 'paus
ed': 0, 'crashed': 0, 'running': 0, 'maxmem_kb': 2097152L, 'shutdown':
0, 'mem_kb': 2097152L, 'handle': [210, 97, 109, 81, 50, 232, 69, 47,
234, 69, 222, 40, 172, 108, 108, 47], 'blocked': 1})
[2011-07-13 06:35:41 8776] INFO (XendDomainInfo:149) Recreating domain
15, UUID d2616d51-32e8-452f-ea45-de28ac6c6c2f. at /local/domain/15
[2011-07-13 06:35:42 8776] DEBUG (XendDomain:443) Adding Domain: 15
[2011-07-13 06:35:42 8776] DEBUG (XendDomainInfo:132)
XendDomainInfo.recreate({'max_vcpu_id': 0, 'cpu_time': 63299717248945L,
'ssidref': 73744, 'hvm': 0, 'shutdown_reason': 0, 'dying': 0,
'online_vcpus': 1, 'domid': 18, 'paus
ed': 0, 'crashed': 0, 'running': 0, 'maxmem_kb': 2097152L, 'shutdown':
0, 'mem_kb': 2097152L, 'handle': [87, 12, 87, 253, 157, 185, 57, 64, 81,
38, 67, 153, 199, 214, 42, 192], 'blocked': 1})
[2011-07-13 06:35:42 8776] INFO (XendDomainInfo:149) Recreating domain
18, UUID 570c57fd-9db9-3940-5126-4399c7d62ac0. at /local/domain/18
[2011-07-13 06:35:42 8776] DEBUG (XendDomain:443) Adding Domain: 18
[2011-07-13 06:35:42 8776] DEBUG (XendDomainInfo:1092)
XendDomainInfo.handleShutdownWatch
[2011-07-13 06:35:42 8776] DEBUG (XendDomainInfo:1092)
XendDomainInfo.handleShutdownWatch
[2011-07-13 06:35:42 8776] DEBUG (XendDomainInfo:1092)
XendDomainInfo.handleShutdownWatch
[2011-07-13 06:35:42 8776] DEBUG (XendDomainInfo:1092)
XendDomainInfo.handleShutdownWatch
[2011-07-13 06:35:42 8776] DEBUG (XendDomainInfo:1092)
XendDomainInfo.handleShutdownWatch
[2011-07-13 06:35:44 8776] ERROR (XendDomainInfo:2619) bridge_to_network
Traceback (most recent call last):
  File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendDomainInfo.py", line
2610, in get_dev_xenapi_config
    for (b,ifs) in Brctl.get_state().items()
  File "/usr/lib/xen-3.2-1/lib/python/xen/util/Brctl.py", line 33, in
get_state
    fin = os.popen(CMD_BRCTL + ' show', 'r')
OSError: [Errno 12] Cannot allocate memory
[2011-07-13 06:35:51 8776] ERROR (XendDomainInfo:2619) bridge_to_network
Traceback (most recent call last):
  File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendDomainInfo.py", line
2617, in get_dev_xenapi_config
    config.get('bridge')).get_uuid()
  File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendNode.py", line 501,
in bridge_to_network
    'brctl show | cut -d "\n" -f 2 | cut -f 1')
  File "/usr/lib/python2.5/commands.py", line 53, in getstatusoutput
    pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
OSError: [Errno 12] Cannot allocate memory
[2011-07-13 06:35:53 8776] WARNING (XendAPI:678) API call:
VBD.set_device not found
[2011-07-13 06:35:53 8776] WARNING (XendAPI:678) API call: VBD.set_type
not found
[2011-07-13 06:35:53 8776] WARNING (XendAPI:678) API call:
session.get_all_records not found
[2011-07-13 06:35:53 8776] WARNING (XendAPI:678) API call:
event.get_record not found
[2011-07-13 06:35:53 8776] WARNING (XendAPI:678) API call: event.get_all
not found
[2011-07-13 06:35:53 8776] WARNING (XendAPI:678) API call:
VM.get_auto_power_on not found
[2011-07-13 06:35:53 8776] WARNING (XendAPI:678) API call:
VM.set_auto_power_on not found
[2011-07-13 06:35:53 8776] WARNING (XendAPI:678) API call:
VIF.get_network not found
[2011-07-13 06:35:53 8776] WARNING (XendAPI:678) API call:
VIF.set_device not found
[2011-07-13 06:35:53 8776] WARNING (XendAPI:678) API call: VIF.set_MAC
not found
[2011-07-13 06:35:53 8776] WARNING (XendAPI:678) API call: VIF.set_MTU
not found
[2011-07-13 06:35:53 8776] WARNING (XendAPI:678) API call: debug.get_all
not found
[2011-07-13 06:35:53 8776] ERROR (SrvDaemon:353) Exception starting xend
(can't start new thread)
Traceback (most recent call last):
  File "/usr/lib/xen-3.2-1/lib/python/xen/xend/server/SrvDaemon.py",
line 346, in run
    servers.start(status)
  File "/usr/lib/xen-3.2-1/lib/python/xen/xend/server/SrvServer.py",
line 117, in start
    thread.start()
  File "/usr/lib/python2.5/threading.py", line 440, in start
    _start_new_thread(self.__bootstrap, ())
error: can't start new thread
[2011-07-13 06:36:09 3509] INFO (SrvDaemon:219) Xend exited with status
1.
---->8---->8---->8----


-- 
Bertrand LUPART


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>