Unable to Remove LVM Snapshot - “Logical volume XYZ contains a filesystem in use." — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

Unable to Remove LVM Snapshot - “Logical volume XYZ contains a filesystem in use."

Applies to:

Oracle Cloud Infrastructure - Version N/A and later

Linux x86-64

Symptoms:

Unable to remove a LVM snapshot volume and it reports following error:

 # lvremove /dev/VGExaDb/LVDbVar1Snap
Logical volume VGExaDb/LVDbVar1Snap contains a filesystem in use.

Also lsof reports no open files:

 # lsof /dev/VGExaDb/LVDbVar1Snap

Cause:

The LVM snapshot volume is in use by some process(es) (backup/third party application in this case).

This can be verified with the “fuser” command.

Example: - tar processes are using the snapshot volume

# fuser -muv /dev/VGExaDb/LVDbVar1Snap
           USER    PID ACCESS COMMAND
 /dev/dm-22:     root   379966 ..c.. (root)bash
           root   379969 f.c.. (root)tar
           root   379970 ..c.. (root)tar
           root   379971 ..c.. (root)bash
           root   379974 ..c.. (root)tar
           root   379975 ..c.. (root)tar

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!