cobbler在导入镜像时出错

问题描述

cobbler在导入镜像时报以下错误:

task started: 2018-06-06_125116_import
task started (id=Media import, time=Wed Jun  6 12:51:16 2018)
Exception occured: 'cobbler.cexceptions.CX'>
Exception value: 'Command failed'
Exception Info:
  File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 82, in run
    rc = self._run(self)
   File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 226, in runner
    self.logger
   File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 876, in import_tree
    utils.run_this(rsync_cmd, (spacer, mirror_url, path), self.logger)
   File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 899, in run_this
    die(logger,"Command failed")
   File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 114, in die
    raise CX(msg)

!!! TASK FAILED !!!

查看日志文件,发现报以下错误:

Fri Jun  1 11:28:57 2018 - DEBUG | received on stderr: rsync: read errors mapping "/mnt/EFI/TRANS.TBL": Input/output error (5)
rsync: read errors mapping "/mnt/EFI/BOOT/BOOTX64.EFI": Input/output error (5)
rsync: read errors mapping "/mnt/EFI/BOOT/MokManager.efi": Input/output error (5)
...

问题原因

  1. 防火墙、selinux等确认是否关闭(我这里是已经关闭了的)
  2. 确认镜像文件是否损坏,我这里就是镜像文件出了问题,换了一个新的镜像就导入OK了。

你可能感兴趣的:(Linux)