e2fsck gives the error /dev/mapper/vg_name-lv_name in use Cannot continue, aborting.

Solution Verified - Updated -

Issue

  • Unmounting the logical volume gives the below error.
    $ umount -f /test
    umount2: Device or resource busy
    umount: /test: device is busy.
    (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1))
    umount2: Device or resource busy
  • Getting the below error while running e2fsck after lazy unmount with umount -l.
    $ e2fsck  -f /dev/mapper/vg_name-lv_name
    e2fsck 1.41.12 (17-May-2010)
    /dev/mapper/vg_name-lv-name is in use.
    e2fsck: Cannot continue, aborting.

Environment

  • Red Hat Enterprise Linux
  • Swap File is used in addition to a swap partition.

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