/dev/mapper/mpathX is apparently in use by the system; will not make a filesystem here!

Solution Verified - Updated -

Issue

  • When trying to create a filesystem on device, it fails with the following 'in use' message:
# mkfs.ext4 /dev/mapper/mpathX
mke2fs 1.42.9 (28-Dec-2013) 
/dev/mapper/mpathX is apparently in use by the system; will not make a filesystem here!

Environment

  • Red Hat Enterprise Linux 7.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content