티스토리 뷰

 

 

 

Centos7.x 또는 RHEL7.x 버전을 처음 설치 후 Yum Update 혹은 Install 을 수행 할 경우 아래와 같은 Error 메시지와 함께 수행이 불가능 한 경우가 발생한다.

 

이는 lvm2 및 device-mapper 관련 Package Bug 로서 아래와 같이 lvm2 Package Update 를 통해 해결 가능하다.

 

 

1. Yum Update 시 Error message 확인

 

[root@centos7 ~]#
[root@centos7 ~]# yum -y update device-mapper*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.kaist.ac.kr
 * epel: mirrors.hustunique.com
 * extras: ftp.kaist.ac.kr
 * updates: ftp.kaist.ac.kr
Resolving Dependencies
--> Running transaction check
---> Package device-mapper.x86_64 7:1.02.84-14.el7 will be updated
---> Package device-mapper.x86_64 7:1.02.107-5.el7 will be an update
---> Package device-mapper-event.x86_64 7:1.02.84-14.el7 will be updated
---> Package device-mapper-event.x86_64 7:1.02.107-5.el7 will be an update


... 중략

 

Transaction check error:
  file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
  file /usr/sbin/blkdeactivate from install of device-mapper-7:1.02.107-5.el7.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
  file /usr/share/man/man8/blkdeactivate.8.gz from install of device-mapper-7:1.02.107-5.el7.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64

Error Summary
-------------

[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]#  

 

 

2. LVM2 Package Update를 통한 Bug 패치 및 해결

 

[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]# yum -y update lvm2*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.kaist.ac.kr
 * epel: mirrors.hustunique.com
 * extras: ftp.kaist.ac.kr
 * updates: ftp.kaist.ac.kr
Resolving Dependencies
--> Running transaction check
---> Package lvm2.x86_64 7:2.02.105-14.el7 will be updated
---> Package lvm2.x86_64 7:2.02.130-5.el7 will be an update
--> Processing Dependency: device-mapper-persistent-data >= 0.5.5-1 for package: 7:lvm2-2.02.130-5.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: 7:lvm2-2.02.130-5.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_104)(64bit) for package: 7:lvm2-2.02.130-5.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_103)(64bit) for package: 7:lvm2-2.02.130-5.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_101)(64bit) for package: 7:lvm2-2.02.130-5.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_100)(64bit) for package: 7:lvm2-2.02.130-5.el7.x86_64
---> Package lvm2-cluster.x86_64 7:2.02.105-14.el7 will be updated
---> Package lvm2-cluster.x86_64 7:2.02.130-5.el7 will be an update


... 중략


  Verifying  : 7:lvm2-libs-2.02.105-14.el7.x86_64                                                           15/18
  Verifying  : 7:device-mapper-event-libs-1.02.84-14.el7.x86_64                                             16/18
  Verifying  : 7:device-mapper-libs-1.02.84-14.el7.x86_64                                                   17/18
  Verifying  : 7:device-mapper-1.02.84-14.el7.x86_64                                                        18/18

Updated:
  lvm2.x86_64 7:2.02.130-5.el7             lvm2-cluster.x86_64 7:2.02.130-5.el7 lvm2-libs.x86_64 7:2.02.130-5.el7
  lvm2-python-libs.x86_64 7:2.02.130-5.el7

Dependency Updated:
  device-mapper.x86_64 7:1.02.107-5.el7                       device-mapper-event.x86_64 7:1.02.107-5.el7        
  device-mapper-event-libs.x86_64 7:1.02.107-5.el7            device-mapper-libs.x86_64 7:1.02.107-5.el7         
  device-mapper-persistent-data.x86_64 0:0.5.5-1.el7        

Complete!
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]# yum -y update device-mapper*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.kaist.ac.kr
 * epel: mirrors.hustunique.com
 * extras: ftp.kaist.ac.kr
 * updates: ftp.kaist.ac.kr
Resolving Dependencies
--> Running transaction check
---> Package device-mapper-multipath.x86_64 0:0.4.9-66.el7 will be updated
---> Package device-mapper-multipath.x86_64 0:0.4.9-85.el7 will be an update
--> Processing Dependency: kpartx = 0.4.9-85.el7 for package: device-mapper-multipath-0.4.9-85.el7.x86_64


... 중략


  Verifying  : device-mapper-multipath-libs-0.4.9-66.el7.x86_64                                               5/6
  Verifying  : kpartx-0.4.9-66.el7.x86_64                                                                     6/6

Updated:
  device-mapper-multipath.x86_64 0:0.4.9-85.el7         device-mapper-multipath-libs.x86_64 0:0.4.9-85.el7       

Dependency Updated:
  kpartx.x86_64 0:0.4.9-85.el7                                                                                   

Complete!
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]#  

 

 

 

 

반응형
반응형
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday