Bug 735861

Summary: device-mapper: create ioctl failed: Device or resource busy
Product: Red Hat Enterprise Linux 4 Reporter: Stefano <stefano.passarella>
Component: device-mapper-multipathAssignee: Peter Rajnoha <prajnoha>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.8CC: agk, bmarzins, dwysocha, extras-orphan, heinzm, jbrassow, jonathan, mbroz, notting, prajnoha, prockai, thornber
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-20 12:34:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Strace of kpartx none

Description Stefano 2011-09-05 18:52:13 UTC
Created attachment 521536 [details]
Strace of kpartx

Description of problem:

kpartx -l /dev/mapper/lindisk_BO_0119_75GB
lindisk_BO_0119_75GB1 : 0 157276287 /dev/mapper/lindisk_BO_0119_75GB 63

kpartx -a /dev/mapper/lindisk_BO_0119_75GB
device-mapper: create ioctl failed: Device or resource busy

in strace output 
ioctl(3, DM_DEV_CREATE, 0x60cb90)       = -1 EBUSY (Device or resource busy)
write(2, "device-mapper: create ioctl fail"..., 59) = 59


Version-Release number of selected component (if applicable):
rpm -qa | grep -i device
device-mapper-1.02.28-2.el4
device-mapper-multipath-0.4.5-35.el4_8.1
device-mapper-1.02.28-2.el4


How reproducible:
device-mapper: create ioctl failed: Device or resource busy

Steps to Reproduce:
1.
2.
3.
  
Actual results:
device-mapper: create ioctl failed: Device or resource busy

Expected results:


Additional info:
strace -o kpart.strace.txt kpartx -a /dev/mapper/lindisk_BO_0119_75GB

Comment 1 Milan Broz 2012-04-20 12:34:00 UTC
kpartx require that this device is not in use by another subsystem. Check that there is no dependence (cat /proc/mdstat, dmsetup ls --tree) etc.

RHEL4 alse reached end of production phase
https://rhn.redhat.com/errata/RHSA-2012-0349.html, please use standard Red Hat support if you need more info http://www.redhat.com/support/process/

Thanks.