[DRBD-user] CentOS 7 RPM Yum Transaction Check Error

Shane Lawrence shane.patrick.lawrence at gmail.com
Mon Jan 23 21:38:32 CET 2017

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


I built the drbd-utils-8.9.10-1 rpm from source. When I try to install it,
yum reports Transaction Check Errors. The kmod rpm, also built from source,
installs fine.

Here's how I built drbd-utils:
./configure --with-udev --with-pacemaker --with-heartbeat --with-rgmanager
--with-bashcompletion --with-distro=redhat
make rpmprep
make rpm

Here's the error:
yum install drbd-utils-8.9.10-1.el7.centos.x86_64.rpm
...
Transaction check error:
  file /usr/sbin/drbdadm conflicts between attempted installs of
drbd-utils-8.9.10-1.el7.centos.x86_64 and
drbd-utils-8.9.10-1.el7.centos.x86_64
  file /usr/sbin/drbdmeta conflicts between attempted installs of
drbd-utils-8.9.10-1.el7.centos.x86_64 and
drbd-utils-8.9.10-1.el7.centos.x86_64
  file /usr/sbin/drbdsetup conflicts between attempted installs of
drbd-utils-8.9.10-1.el7.centos.x86_64 and
drbd-utils-8.9.10-1.el7.centos.x86_64

When I examine the rpm, I can see that there are separate entries for these
files in /sbin and /usr/sbin:
rpm --dump -qp drbd-utils-8.9.10-1.el7.centos.x86_64.rpm
...
/sbin/drbdadm 19 1485198537
0000000000000000000000000000000000000000000000000000000000000000 0120777
root root 0 0 0 ../usr/sbin/drbdadm
/sbin/drbdmeta 20 1485198537
0000000000000000000000000000000000000000000000000000000000000000 0120777
root root 0 0 0 ../usr/sbin/drbdmeta
/sbin/drbdsetup 21 1485198537
0000000000000000000000000000000000000000000000000000000000000000 0120777
root root 0 0 0 ../usr/sbin/drbdsetup
...
/usr/sbin/drbd-overview 12817 1485198535
b5c844edf49a61061b9916d3f24dc0f39d0a4069254fbc67d17103c71be6a779 0100755
root root 0 0 0 X
/usr/sbin/drbdadm 234312 1485198540
dfeed667407729d018801875e14acad9fe51dab7edfe18227d4b94322400df1d 0100755
root root 0 0 0 X
/usr/sbin/drbdmeta 118280 1485198540
ff2b2db1b061b773ba67d412d79f99db9dc46ef880aaf4a1a0a637b8d588ce0d 0100755
root root 0 0 0 X
/usr/sbin/drbdmon 159008 1485198538
97e7808a31982ef5cbf96cf30bba014cb4550280c2c35131407bdb58c66c2a70 0100755
root root 0 0 0 X
/usr/sbin/drbdsetup 140576 1485198540
33bf5040127a1144f8f65adb356ac502d0b37db066e231007c76a53e30b80701 0100755
root root 0 0 0 X

In EL7, /sbin is a link to /usr/sbin, and I believe that having separate
files for each path in the rpm creates the conflict.

In a test environment, I can force it to install using:
rpm -ivh --force drbd-utils-8.9.10-1.el7.centos.x86_64.rpm

However, that won't be acceptable when it's time to move into a production
environment.

Did I miss a step or do something incorrectly? How can I build the rpm so
that it installs with yum?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20170123/def98393/attachment.htm>


More information about the drbd-user mailing list