devicemapper: Error running deviceCreate (ActivateDevice) dm_task_run failed

在一臺新機子上面,docker處理完lvs數據卷以後,啓動docker服務時,出現了啓動失敗,失敗信息以下:docker

[root@hxin221 ~]# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/docker.service.d
           └─flannel.conf
   Active: failed (Result: exit-code) since Tue 2018-07-24 14:06:15 CST; 4s ago
     Docs: https://docs.docker.com
  Process: 28723 ExecStart=/usr/bin/dockerd $DOCKER_NETWORK_OPTIONS $DOCKER_NETWORK_OPTIONS $DOCKER_STORAGE_OPTIONS (code=exited, status=1/FAILURE)
 Main PID: 28723 (code=exited, status=1/FAILURE)
   Memory: 412.0K
   CGroup: /system.slice/docker.service

Jul 24 14:06:14 hxin221 systemd[1]: Starting Docker Application Container Engine...
Jul 24 14:06:14 hxin221 dockerd[28723]: time="2018-07-24T14:06:14.416711161+08:00" level=info msg="libcontainerd: new containerd process, pid: 28738"
Jul 24 14:06:15 hxin221 dockerd[28723]: Error starting daemon: error initializing graphdriver: devmapper: Base Device UUID and Filesystem verification failed: devicemapper: Error running deviceCreate (ActivateDevice) dm_task_run failed
Jul 24 14:06:15 hxin221 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Jul 24 14:06:15 hxin221 systemd[1]: Failed to start Docker Application Container Engine.
Jul 24 14:06:15 hxin221 systemd[1]: Unit docker.service entered failed state.
Jul 24 14:06:15 hxin221 systemd[1]: docker.service failed.

  

總的來講就是:bash

Error starting daemon: error initializing graphdriver: devmapper: Base Device UUID and Filesystem verification failed: devicemapper: Error running deviceCreate (ActivateDevice) dm_task_run failed

  

好吧,這個錯誤,以前沒有遇到過,踩了不少坑,最終,想了想,莫非這臺機子早先時候已經裝了docker,而後舊數據致使的?app

因而乎,就抱着試試看的目的,執行了以下操做:rest

[root@hxin221 ~]# rm -rf /var/lib/docker/*

  沒錯,清除了docker的數據,因爲是新機子,我也沒有作什麼備份處理,其餘小夥伴若是又遇到的話,記得先備份數據。code

因而,重啓服務blog

[root@hxin221 ~]# systemctl restart docker

  OK,問題不大,解決了。it

 

以上io

相關文章
相關標籤/搜索