Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Flush multipath device

Davoud TeimouriMar 12 2017 — edited Mar 16 2017

Hi all,

I want to remove some multipath device without rebooting our server.

When I run the below command, I'll face with "map in use" error:

multipath -f {Multipath Alias}

Also I've checked the below command but it doesn't work:

dmsetup remove -f

device-mapper: remove ioctl on * failed: Device or resource busy

Command failed

When I've checked the disks by lsof command, it seems the disks are locked by oracle user or process:

oracle48814oracle  256u  BLK          8,145   0t0 18446612238820801832 /dev/oracleasm/disks/*
oracle48814oracle  258u  BLK           65,1   0t0 18446612238800092520 /dev/oracleasm/disks/*
oracle48814oracle  259u  BLK           67,1   0t0 18446612238820564264 /dev/oracleasm/disks/*
oracle48814oracle  261u  BLK          65,33   0t0 18446612238959295848 /dev/oracleasm/disks/*
oracle48814oracle  264u  BLK         252,16   0t0 18446612238800089320 /dev/oracleasm/disks/*
oracle48814oracle  265u  BLK         252,17   0t0 18446612402307540456 /dev/oracleasm/disks/*

Here is our OS information:

LSB Version::base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch

Distributor ID: OracleServer

Description:Oracle Linux Server release 6.6
Release:    6.6

Kernel:

3.8.13-44.1.1.el6uek.x86_64

Is there any way to resolve it without reboot or stop oracle process?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 13 2017
Added on Mar 12 2017
5 comments
1,591 views