Skip to contentSkip to conversation

Issue with dmsetup

DISCUSSION Paul Riddle 2 participants 2 messages Oct 31, 2008 Device mapper

lore
Share & tools
lore
#0 lore raw

Hi,

I'm in the process of testing and documenting a procedure for a device failure on our SAN.

We a running with two RHEL 5 nodes talking to a HP MSA2012fc

When I remove a device from the SAN, I'm having a issue with dmsetup refusing to remove the old map.

Notice mpath8 is in error below.

[root@scrac2 ( mailto:[root@scrac2 ) dev]# dmsetup table
mpath2: 0 286715904 multipath 1 queue_if_no_path 0 1 1 round-robin 0 2 1 8:16 100 8:176 100
mpath1: 0 286713856 multipath 1 queue_if_no_path 0 1 1 round-robin 0 2 1 8:112 100 65:16 100
mpath0p10: 0 276671367 linear 253:0 10040688
mpath0: 0 286715904 multipath 1 queue_if_no_path 0 1 1 round-robin 0 2 1 8:0 100 8:160 100
mpath0p9: 0 2008062 linear 253:0 8032563
mpath0p8: 0 2008062 linear 253:0 6024438
mpath0p7: 0 2008062 linear 253:0 4016313
mpath0p6: 0 2008062 linear 253:0 2008188
mpath9: 0 286713856 multipath 1 queue_if_no_path 0 1 1 round-robin 0 2 1 8:144 100 65:48 100
mpath0p5: 0 2007999 linear 253:0 126
mpath8: 0 286713856 error
mpath7: 0 286715904 multipath 1 queue_if_no_path 0 1 1 round-robin 0 2 1 65:64 100 65:80 100
mpath6: 0 286713856 multipath 1 queue_if_no_path 0 1 1 round-robin 0 2 1 8:64 100 8:224 100
mpath5: 0 286715904 multipath 1 queue_if_no_path 0 1 1 round-robin 0 2 1 8:96 100 65:0 100
mpath4: 0 286713856 multipath 1 queue_if_no_path 0 1 1 round-robin 0 2 1 8:48 100 8:208 100
mpath10: 0 286715904 multipath 1 queue_if_no_path 0 1 1 round-robin 0 2 1 8:32 100 8:192 100
mpath3: 0 286713856 multipath 1 queue_if_no_path 0 1 1 round-robin 0 2 1 8:128 100 65:32 100

[root@scrac2 ( mailto:[root@scrac2 ) dev]# dmsetup -v remove -f mpath8
device-mapper: remove ioctl failed: Device or resource busy Command failed

Can anyone offer any help???

Regards,
Paul.

Please consider the environment before you print this email
For email conditions, please see our website http://www.cps.com.au/email_conditions.htm

#1 lore raw
Quoted 3 lines · Paul Riddle

[root@scrac2 ( mailto:[root@scrac2 ) dev]# dmsetup -v remove -f mpath8
device-mapper: remove ioctl failed: Device or resource busy Command failed

So something still has that device open: you need to hunt down what it is. dmsetup info -c
lsof
mount
etc.

Alasdair

Signature · 1 line
[email protected]