e2fsck gives the error /dev/mapper/vg_name-lv_name in use Cannot continue, aborting.
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
e2fsckafter lazy unmount withumount -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.