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

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

edited Jun 6, 2023 2:48AM in Linux

Attempting to remove an LVM snapshot on a linux instance fails with the following error:

# lvremove /dev/VGExaDb/LVDbVar1Snap

Logical volume VGExaDb/LVDbVar1Snap contains a filesystem in use.

This error occurs if there are any open files on the LVM snapshot volume, or if the LVM snapshot is being used by any running processes such as backup processes or application processes. Any open files will need to be closed and any running processes using the LVM snapshot will either need to be completed or killed (if it is safe to do so).

1). First try to un-mount the LVM snapshot from the system (in case it has been mounted):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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