Xen 4.1.2尝试设置Remus时出错


0

当我尝试在两台机器之间设置remus时,我在remus日志文件中收到一个错误,我无法理解为什么会发生,我在两个系统上都运行了相同的vm,因此尝试复制应该不是问题。日志文件如下

Disk is not replicated: phy:/dev/loop0,xvda,w
Disk is not replicated: phy:/dev/loop1,xvdb,w
tc qdisc add dev vif1.0 ingress
RTNETLINK answers: File exists
tc filter add dev vif1.0 parent ffff: proto ip pref 10 u32 match u32 0 0 action
mirred egress redirect dev ifb0
RTNETLINK answers: No such file or directory
We have an error talking to the kernel
Traceback (most recent call last):
  File "/usr/bin/remus", line 219, in <module>
     run(cfg)
  File "/usr/bin/remus", line 125, in run
     bufs.append(BufferedNIC(vif))
  File "/usr/lib64/python2.6/site-packages/xen/remus/device.py", line 326, in __init__
    self.setup()
  File "/usr/lib64/python2.6/site-packages/xen/remus/device.py", line 358, in setup
    self.bufdev.install(self.vif)
  File "/usr/lib64/python2.6/site-packages/xen/remus/device.py", line 184, in install
    'dev %s' % (vif.dev, self.devname))
  File "/usr/lib64/python2.6/site-packages/xen/remus/util.py", line 71, in runcmd
    proc.returncode)
xen.remus.util.PipeException: tc failed (errmsg: RTNETLINK answers: No such file or directory
We have an error talking to the kernel): 2, No such file or directory

用于获取此文件的remus命令如下:

remus -i 100 sles11-sp1-xm BackupMachineIP >/var/log/xen/domU-sles11-sp1-24-09-12.log 2>&1 &

将BackupMachineIP设置为备份设备IP地址的名称,每台机器上的xm列表和回送设备设置的内容如下:

XM清单

主:

 Name                                        ID   Mem VCPUs      State   Time(s)
 Domain-0                                     0 1036702     8     r----- 411617.9
 sles11-sp1                                       512     4                 0.0
 sles11-sp1-xm                                1   256     1     -b----     77.0
 sles11-sp2                                       512     4                 0.0
 sles11-sp2-xm                                2   256     1     -b----     62.0

次要:

 Name                                        ID   Mem VCPUs      State   Time(s)
 Domain-0                                     0  1400     2     r-----     73.1
 sles11-sp1-xm                                1   256     1     -b----     11.6
 sles11-sp2-xm                                2   256     1     -b----     14.0

输了

主:

/dev/loop0: [0808]:337772 (/tmp/base/sles11sp1/sles11sp1.img)
/dev/loop1: [0808]:337773 (/tmp/base/sles11sp1/swap)
/dev/loop2: [0808]:337779 (/tmp/base/sles11sp2/sles11sp2.img)
/dev/loop3: [0808]:337780 (/tmp/base/sles11sp2/swap)

次要:

/dev/loop0: [0805]:2109411 (/tmp/base/sles11sp1/sles11sp1.img)
/dev/loop1: [0805]:2109412 (/tmp/base/sles11sp1/swap)
/dev/loop2: [0805]:1840010 (/tmp/base/sles11sp2/sles11sp2.img)
/dev/loop3: [0805]:1840012 (/tmp/base/sles11sp2/swap)

Answers:


1

可能您的内核没有加载镜像的内核模块。通常,它甚至没有使用内核进行编译,因此您必须编译并加载它。如果模块未加载,RTNETLINK会回答一个简单的ENOENT(没有这样的文件或目录),这真是愚蠢的,我花了整整一天的时间才找出为什么它不起作用。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.