Manually remove snapshot

frantek

Renowned Member
May 30, 2009
171
7
83
Hi,

on a LVM setup I did some thing stupid. I manually (edit conf file ...) added LVM disks of VM A to VM B. Now VM B is in production and I've noticed that there is a snapshot on VM A.

My question is: Can I safely use "lvremove" to remove the LVM snapshots?

I think the answer is: yes ... but, it's a production system :)

TIA
Matthias
 
Hi,

Thin-LVM every snapshot is independent,
so yes you can do it without problems.

I think the answer is: yes ... but, it's a production system :)
But if you unsure make a test VM and test it before ;-)
 
Thanks ... it looks like this:

Code:
  --- Logical volume ---
  LV Path                /dev/pve/vm-301-disk-1
  LV Name                vm-301-disk-1
  VG Name                pve
  LV UUID                2AL3Iz-zjdx-Hsfl-3Yz3-zTyO-wYGT-d3woTM
  LV Write Access        read/write
  LV Creation host, time pve01, 2017-07-06 16:03:12 +0200
  LV Pool name           data
  LV Status              available
  # open                 0
  LV Size                120,00 GiB
  Mapped size            99,77%
  Current LE             30720
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:7

Code:
  --- Logical volume ---
  LV Path                /dev/pve/snap_vm-301-disk-1_PP
  LV Name                snap_vm-301-disk-1_PP
  VG Name                pve
  LV UUID                1mZvUR-KHf4-qm9f-ojCh-6U3i-mGl4-tvh2sC
  LV Write Access        read only
  LV Creation host, time pve01, 2017-12-13 08:28:32 +0100
  LV Pool name           data
  LV Thin origin name    vm-301-disk-1
  LV Status              NOT available
  LV Size                120,00 GiB
  Current LE             30720
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto



Hi,

Thin-LVM every snapshot is independent,
so yes you can do it without problems.


But if you unsure make a test VM and test it before ;-)

Did so already :)
 
When you look, at my last post - it IS "Thin-LVM" and removing the snapshot is no problem, right ?
 
Yes correct.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!