[SOLVED] Verwaiste Snapshots

Peronia

New Member
Aug 5, 2020
4
0
1
34
Hi,

ich habe ein Problem: Ich habe virtuelle Festplatten eines Containers gelöscht und ersetzt. Jetzt habe ich verwaiste Snapshots, welche ich nicht löschen kann. In der GUI sehe ich sie noch, genauso wenn ich in der Shell lvs eingebe. Wie kann ich diese restlos löschen?

Grüße
Stefan
 
hi,

du kannst lvremove benutzen:

Code:
root@pve:~# lvs -a
  LV                      VG  Attr       LSize  Pool Origin        Data%  Meta%  Move Log Cpy%Sync Convert
  data                    pve twi-aotz-- 33.87g                    0.62   1.60
  [data_tdata]            pve Twi-ao---- 33.87g
  [data_tmeta]            pve ewi-ao----  1.00g
  [lvol0_pmspare]         pve ewi-------  1.00g
  root                    pve -wi-ao---- 15.75g
  snap_vm-100-disk-0_test pve Vri---tz-k  8.00g data vm-100-disk-0
  swap                    pve -wi-ao----  4.00g
  vm-100-disk-0           pve Vwi-aotz--  8.00g data               2.63
root@pve:~# lvremove 'pve/snap_vm-100-disk-0_test'
Do you really want to remove and DISCARD logical volume pve/snap_vm-100-disk-0_test? [y/n]: y
  Logical volume "snap_vm-100-disk-0_test" successfully removed
 
  • Like
Reactions: Peronia
Danke, es löscht sogar Snapshots wenn der Ursprung nicht bekannt ist (das war wohl mit das Problem), wie in Zeile 8:
Code:
root@pve:~# lvs
  LV                                   VG  Attr       LSize   Pool Origin        Data%  Meta%  Move Log Cpy%Sync Convert
  base-998-disk-0                      pve Vri---tz-k   2.00g data                                                     
  base-999-disk-0                      pve Vri---tz-k   8.00g data                                                     
  data                                 pve twi-aotz-- 394.57g                    25.20  1.65                           
  root                                 pve -wi-ao----  20.00g                                                           
  snap_vm-102-disk-1_vorBackup         pve Vri---tz-k   2.00g data vm-102-disk-1                                       
  snap_vm-103-disk-0_vorUpdate         pve Vri---tz-k   1.00g                                       
  snap_vm-106-disk-0_vorUpdate         pve Vri---tz-k   2.00g data vm-106-disk-0                                       
  snap_vm-114-disk-0_vorUpdate         pve Vri---tz-k   2.00g data vm-114-disk-0

Aber in der GUI werden mir noch immer 2 Snapshots angezeigt, welche nicht mehr existieren, siehe Anhang. Wie kann ich die GUI-Einträge löschen? Neue Snapshots können erstellt werden.
 

Attachments

  • 13-08-_2020_17-01-47.png
    13-08-_2020_17-01-47.png
    10.5 KB · Views: 6
  • 13-08-_2020_17-02-14.png
    13-08-_2020_17-02-14.png
    9 KB · Views: 6
Danke, es löscht sogar Snapshots wenn der Ursprung nicht bekannt ist (das war wohl mit das Problem), wie in Zeile 8:
Code:
root@pve:~# lvs
  LV                                   VG  Attr       LSize   Pool Origin        Data%  Meta%  Move Log Cpy%Sync Convert
  base-998-disk-0                      pve Vri---tz-k   2.00g data                                                    
  base-999-disk-0                      pve Vri---tz-k   8.00g data                                                    
  data                                 pve twi-aotz-- 394.57g                    25.20  1.65                          
  root                                 pve -wi-ao----  20.00g                                                          
  snap_vm-102-disk-1_vorBackup         pve Vri---tz-k   2.00g data vm-102-disk-1                                      
  snap_vm-103-disk-0_vorUpdate         pve Vri---tz-k   1.00g                                      
  snap_vm-106-disk-0_vorUpdate         pve Vri---tz-k   2.00g data vm-106-disk-0                                      
  snap_vm-114-disk-0_vorUpdate         pve Vri---tz-k   2.00g data vm-114-disk-0

Aber in der GUI werden mir noch immer 2 Snapshots angezeigt, welche nicht mehr existieren, siehe Anhang. Wie kann ich die GUI-Einträge löschen? Neue Snapshots können erstellt werden.

im config file musst du die relevante section ausloeschen, dann sollte es weg gehen.
 
  • Like
Reactions: Peronia

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!