cobbler在导入镜像时出错

问题描述

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

task started: 2018-06-06_125116_import
task started (id=Media import, time=Wed Jun  6 12:51:16 2018)
Exception occured: <class '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了。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值