• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

lvcreate/lvremove Failed with Error “Can’t remove merging snapshot logical volume”

by admin

The Problem

Unable create or remove snapshot volume as error below:

# lvcreate -s -L 3G -n snapopt /dev/vgOS/opt
Logical volume "snapopt" already exists in volume group "vgOS"

Whereas the logical volume is not present in any Volume Group.

# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
cplex vgOPT -wi-ao---- 3.00g
oracle vgOPT -wi-ao---- 20.00g
home vgOS -wi-ao---- 2.00g
opt vgOS Owi-aos--- 6.45g
root vgOS -wi-ao---- 6.00g
swap vgOS -wi-ao---- 2.00g
tmp vgOS -wi-ao---- 2.95g
var vgOS Owi-aos--- 10.00g

The lvremove command would also fail with the below error.

# lvremove /dev/vgOS/snapopt
Can't remove merging snapshot logical volume "snapopt"

The Solution

The snapshot was corrupted and unable to remove the snapshot using lvremove. From dmsetup table, it is evident that the snapshot is corrupted.

4 vgOS-snapopt: 0 13533184 error

1. Remove the LVM snapshot using low-level LVM tool dmsetup.

# dmsetup -f remove /dev/mapper/VG-snapopt

2. Remove the LVM snapshot using lvremove

# lvremove -f /dev/VG/snapopt

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to Use rpm2cpio Command in Linux
  2. lrztar: command not found
  3. gosource Command Examples
  4. fisher: Fisher, a fish-shell plugin manager
  5. dar Command Examples in Linux
  6. runuser: command not found
  7. berks Command Examples (Chef cookbook dependency manager)
  8. just Command Examples
  9. keepass2 Command Examples
  10. pactree Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright