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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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. CentOS / RHEL : How to install and start the Apache httpd service
  2. Linux OS Service ‘microcode_ctl’
  3. crontab error : “You (user) are not allowed to access to (crontab) because of pam configuration.”
  4. How to install/remove/query/update RPM packages in Linux (Cheat Sheet)
  5. SSH Connection Refused by TCP Wrapper
  6. How to configure Partitioned Block Devices (Non-ASMLIB) And Assign Them To ASM
  7. How to Change the Default Timeout Settings for Telnet Session in CentOS/RHEL
  8. CentOS / RHEL : Move a Physical Volume from an existing Volume Group to another Volume Group
  9. Linux OS Service ‘squid’
  10. How to Connect Remote Host Using the ssh Command

You May Also Like

Primary Sidebar

Recent Posts

  • How to disable ACPI in CentOS/RHEL 7
  • How to Use real-time query to access data on a physical standby database
  • CentOS/RHEL 8: “ACPI MEMORY OR I/O RESET_REG” Server Hung after reboot
  • How to Create a Physical Standby Database by Using SQL and RMAN Commands
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary