Server trying to share and receiving errors:
rpm -qa |grep lvm lvm2-libs-2.02.100-8.el6.s390x lvm2-2.02.100-8.el6.s390x

Owning server:

-bash-3.2$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.10 (Tikanga)
-bash-3.2$ hostname
wil-zwasmstrtst01.bbtnet.com
-bash-3.2$ rpm -qa |grep lvm
lvm2-2.02.88-12.el5
system-config-lvm-1.1.5-14.el5


Thanks
Scott


-----Original Message-----
From: Linux on 390 Port [mailto:[email protected]] On Behalf Of Pavelka, 
Tomas
Sent: Thursday, November 13, 2014 3:45 AM
To: [email protected]
Subject: Re: device-mapper: reload ioctl on failed

What version of the lvm RPM are you running? We have run into a problem on a 
CentOS 6 installation where LVM would not put online disks that were read only. 
The bug started at a version that I unfortunately forgot and was fixed in a 
newer version that I forgot as well. But I managed to find one of the versions 
that was wrong, which was lvm2-2.02.87-6. At that time we were on CentOS and 
did not have support contract with Red Hat so we just rolled a custom RPM with 
a patch which I was able to find:

--- ./lib/device/dev-io.c.orig  2012-08-31 03:45:14.000000000 -0400
+++ ./lib/device/dev-io.c       2012-08-31 03:46:22.000000000 -0400
@@ -282,7 +282,7 @@ static int _dev_read_ahead_dev(struct de
                return 1;
        }

-       if (!dev_open(dev))
+       if (!dev_open_readonly(dev))
                return_0;

        if (ioctl(dev->fd, BLKRAGET, &read_ahead_long) < 0) {

The project where we needed this got cancelled so I have not followed up 
whether Red Hat fixed it or not, but this should give you some leads.

HTH,
Tomas


The information in this transmission may contain proprietary and non-public 
information of BB&T or its affiliates and may be subject to protection under 
the law. The message is intended for the sole use of the individual or entity 
to which it is addressed. If you are not the intended recipient, you are 
notified that any use, distribution or copying of the message is strictly 
prohibited. If you received this message in error, please delete the material 
from your system without reading the content and notify the sender immediately 
of the inadvertent transmission.

Reply via email to