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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. Unable to start Nagios Service (CentOS/RHEL)
  2. How To Remove Disk from a LVM Volume Group
  3. CentOS / RHEL : DNS servers in /etc/resolv.conf change after a reboot/network service restart. How to make them permanent
  4. How to install/remove/query/update RPM packages in Linux (Cheat Sheet)
  5. How to Start, Stop and Restart Zimbra Service
  6. Understanding OS load average and run queue/blocked queue in terms of CPU utilization in Linux
  7. CentOS / RHEL : Resize (extend) non-root EXT3/4 filesystem on LVM device
  8. UNIX / Linux : How to lock or disable an user account
  9. How to check change log of RPM packages on CentOS/RHEL
  10. CentOS / RHEL 7 : How to disable IPv6 on a specific interface only

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright