Manually remove snapshot

Discussion in 'Proxmox VE: Installation and configuration' started by frantek, Dec 15, 2017.

  1. frantek

    frantek Member

    Joined:
    May 30, 2009
    Messages:
    154
    Likes Received:
    3
    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
     
  2. wolfgang

    wolfgang Proxmox Staff Member
    Staff Member

    Joined:
    Oct 1, 2014
    Messages:
    4,664
    Likes Received:
    309
    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 ;-)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. frantek

    frantek Member

    Joined:
    May 30, 2009
    Messages:
    154
    Likes Received:
    3
    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
    


    Did so already :)
     
  4. frantek

    frantek Member

    Joined:
    May 30, 2009
    Messages:
    154
    Likes Received:
    3
    When you look, at my last post - it IS "Thin-LVM" and removing the snapshot is no problem, right ?
     
  5. wolfgang

    wolfgang Proxmox Staff Member
    Staff Member

    Joined:
    Oct 1, 2014
    Messages:
    4,664
    Likes Received:
    309
    Yes correct.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice