Bug 735861 - device-mapper: create ioctl failed: Device or resource busy
Summary: device-mapper: create ioctl failed: Device or resource busy
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: device-mapper-multipath
Version: 4.8
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Peter Rajnoha
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-05 18:52 UTC by Stefano
Modified: 2012-04-20 12:34 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-20 12:34:00 UTC


Attachments (Terms of Use)
Strace of kpartx (6.70 KB, text/plain)
2011-09-05 18:52 UTC, Stefano
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.