从XenCenter发现,硬盘有个红色“X”,即使使用右键 “Repair…” 修复硬盘,出现错误:“The SR failed to complete the operation”
Citrix XenServer硬盘出现错误:There was an SR backend failure

5.jpg (6.15 KB, 下载次数: 0)

下载附件  保存到相册

2013-1-9 14:12 上传


“The SR failed to complete the operation”这错误再次伤了我,太笼统的错误了,Google,度娘,都查了N遍又N遍,没有答案,也无效。没办法了,我只能在命令行里使用命令修复,这样就会有具体错误,使用以下命令

  1. [root@localnost ~]# xe pbd—plug
  2. uuid=2c8al346—TdTl—e5dl—73l6—55b65l962O§a
  3. There was an SR backend
  4. failure.
  5. status: non—zero exit
  6. stdout:
  7. stderr: Traceback (most recent
  8. call last):
  9. File "/opt/xens0urce/sm/LVMSR", line 1447, in
  10. ?
  11. SRCommand.run(LVHDSR, DRIVER_INFO)
  12. File
  13. "/opt/xens0urce/sm/SRCommand.py", line 244, in run
  14. sr = driver(cmd,
  15. cmd.sr_uuid)
  16. File "/opt/xensource/sm/SR.py", line 128, in
  17. init
  18. self.load(sr uuid) __ –
  19. File "/opt/xens0urce/sm/LVMSR", line 138, in
  20. load
  21. self._undoAllJ0urnals()
  22. File "/opt/xens0urce/sm/LVMSR", line 627, in
  23. _undoAllJ0urnals
  24. self._undoAllInflateJournals()
  25. File
  26. "/opt/xens0urce/sm/LVMSR", line 636, in _undoAllInflateJ0urnals
  27. entries =
  28. self.j0urnaler.getAll(lvndutil.JRN_INFLATE)
  29. File
  30. "/opt/xensource/sm/journaler.py", line 63, in getAll
  31. entries =
  32. self._getAllEntries()
  33. File "/opt/xensource/sm/journaler.py", line 35, in
  34. _getAllEntries
  35. raise JournalerException("Bad LV name: %s" %
  36. lvName)
  37. journaler.JournalerException: Bad LV name:
  38. c99dcba?—755b—425d—b3a7—7ed7589e84cS

复制代码

我在这发现以下错误,原来是这个UUID有问题

File "/opt/xensource/sm/journaler.py", line 35, in _getAllEntries
raise JournalerException("Bad LV name: %s" % lvName)
journaler.JournalerException: Bad LV name: c99dcba?—755b—425d—b3a7—7ed7589e84cS

接下来就是找出有问题的UUID,执行以下命令

  1. Name "VG_Xenstoragr–<font style="BACKGROUND-COLOR: rgb(255,255,255)">a7d129e4-45e5-3130-e9d2-fece417336da</font>-l<font style="BACKGROUND-COLOR: rgb(255,255,255)">eaf_526a60ac-3dc0-4321-9232-a453ac3bb306_46466711-ad30-40f0-baf3-5b3b515fd658</font>"
  2. too long
  3.    inactive ‘<font style="BACKGROUND-COLOR: rgb(255,255,255)">/dev/VG_XenStorage-a7d129e4-45e5-3130-e9d2-fece417336da/leaf_526a60ac-3dc0-4321-9232-a453ac3bb306_46466711-ad30-40f0-baf3-5b3b515fd658</font>’
  4. [4.00 MB]
  5. inherit

复制代码

以上可能错误可能有些丢失了,或者错误,但大致的是这些,
我从这看到这个错误的UUID“46466711-ad30-40f0-baf3-5b3b515fd655 ”,那么我就找出这个UUID属于哪个更硬盘
Citrix XenServer硬盘出现错误:There was an SR backend failure

6.jpg (29.03 KB, 下载次数: 0)

下载附件  保存到相册

2013-1-9 14:14 上传

删除完毕,因该没问题了,我在把硬盘plug到服务器中

  • xe pbd-plug uuid=硬盘UUID

发表评论

电子邮件地址不会被公开。 必填项已用*标注