我一直在用一个 dom0 和 3 个 domU 设置这个 Debian Stable 系统。它运行了好几天,我几乎准备好将它部署到机架上。但是昨晚我第一次关闭了所有三个domU仍然在运行,今天我启动它时,xend无法启动。在 /var/log/messages 中,我有:
Apr 18 13:01:33 xen-test BLKTAPCTRL[4248]: blktapctrl: v1.0.0
Apr 18 13:01:33 xen-test BLKTAPCTRL[4248]: Found driver: [raw image (aio)]
Apr 18 13:01:33 xen-test BLKTAPCTRL[4248]: Found driver: [raw image (sync)]
Apr 18 13:01:33 xen-test BLKTAPCTRL[4248]: Found driver: [vmware image (vmdk)]
Apr 18 13:01:33 xen-test BLKTAPCTRL[4248]: Found driver: [ramdisk image (ram)]
Apr 18 13:01:33 xen-test BLKTAPCTRL[4248]: Found driver: [qcow disk (qcow)]
Apr 18 13:01:33 xen-test BLKTAPCTRL[4248]: couldn't find device number for 'blktap0'
Apr 18 13:01:33 xen-test BLKTAPCTRL[4248]: Unable to start blktapctrl
在 /var/log/xen/xend.log 中,我有这个:
[2010-04-18 12:46:32 3523] INFO (SrvDaemon:219) Xend exited with status 1.
[2010-04-18 13:01:34 4255] INFO (SrvDaemon:331) Xend Daemon started
[2010-04-18 13:01:34 4255] INFO (SrvDaemon:335) Xend changeset: unavailable.
[2010-04-18 13:01:34 4255] INFO (SrvDaemon:342) Xend version: Unknown.
[2010-04-18 13:01:34 4255] ERROR (SrvDaemon:353) Exception starting xend (no element found: line 1, column 0)
Traceback (most recent call last):
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/server/SrvDaemon.py", line 345, in run
servers = SrvServer.create()
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/server/SrvServer.py", line 251, in create
root.putChild('xend', SrvRoot())
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/server/SrvRoot.py", line 40, in __init__
self.get(name)
File "/usr/lib/xen-3.2-1/lib/python/xen/web/SrvDir.py", line 82, in get
val = val.getobj()
File "/usr/lib/xen-3.2-1/lib/python/xen/web/SrvDir.py", line 52, in getobj
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/server/SrvNode.py", line 30, in _
_init__
self.xn = XendNode.instance()
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendNode.py", line 709, in instance
inst = XendNode()
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendNode.py", line 164, in __init__
saved_pifs = self.state_store.load_state('pif')
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendStateStore.py", line 104, in load_state
dom = minidom.parse(xml_path)
File "/usr/lib/python2.5/xml/dom/minidom.py", line 1915, in parse
return expatbuilder.parse(file)
File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 924, in parse
result = builder.parseFile(fp)
File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 211, in parseFile
parser.Parse("", True)
ExpatError: no element found: line 1, column 0
[2010-04-18 13:01:34 4253] INFO (SrvDaemon:219) Xend exited with status 1.
关于可能出了什么问题的任何线索?
好的,
rm -rf /var/lib/xend/*
解决了问题。但我仍然想知道为什么以及它是否可能会回来。....时间流逝....
现在我发现我的 /var/lib 分区太小了,而且它被填满了。快速 lvcreate、mkfs.ext3 并复制一些文件并编辑 /etc/fstab,我可以开始了。