lvm snapshot from terminal

popey

New Member
Jul 24, 2020
22
0
1
39
Proxmox page about storage and feature types states that with using lvm snapshot feature is not available.

I have lvm volume group created on shared FC storage and made snapshot of vmdisk from linux terminal. After some time I shut down machine, merged snapshot and run it again. I got back successfully to the point of time when snapshot was taken.

So what what is disadvantage of that approach?
 
and made snapshot of vmdisk from linux terminal.
How is that FC storage configured in PVE? As LVM or directory storage?

Could you show the output of lsblk.
 
it's configured as LVM


Code:
NAME                            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                               8:0    0 136.7G  0 disk
├─sda1                            8:1    0  1007K  0 part
├─sda2                            8:2    0   512M  0 part
└─sda3                            8:3    0 136.2G  0 part
  ├─pve-swap                    253:0    0     8G  0 lvm  [SWAP]
  ├─pve-root                    253:1    0    34G  0 lvm  /
  ├─pve-data_tmeta              253:2    0     1G  0 lvm
  │ └─pve-data-tpool            253:4    0  76.2G  0 lvm
  │   ├─pve-data                253:5    0  76.2G  0 lvm
  │   └─pve-vm--100--disk--0    253:6    0     8G  0 lvm
  └─pve-data_tdata              253:3    0  76.2G  0 lvm
    └─pve-data-tpool            253:4    0  76.2G  0 lvm
      ├─pve-data                253:5    0  76.2G  0 lvm
      └─pve-vm--100--disk--0    253:6    0     8G  0 lvm
sde                               8:64   0    65G  0 disk
└─sde1                            8:65   0    65G  0 part /mnt/pve/backup2
sdf                               8:80   0     1T  0 disk
├─vg_00-vm--101--disk--0        253:7    0    32G  0 lvm
├─vg_00-vm--102--disk--0        253:8    0    32G  0 lvm
├─vg_00-vm--103--disk--0        253:9    0    32G  0 lvm
├─vg_00-vm--104--disk--0        253:10   0    32G  0 lvm
├─vg_00-vm--105--disk--0        253:11   0    32G  0 lvm
├─vg_00-vm--106--disk--0        253:12   0    60G  0 lvm
├─vg_00-vm--108--disk--0        253:13   0    12G  0 lvm
└─vg_00-vm--107--disk--0        253:14   0    12G  0 lvm
sdg                               8:96   0   200G  0 disk
├─snaptest-snaptest_tmeta       253:15   0     2G  0 lvm
│ └─snaptest-snaptest-tpool     253:17   0 195.9G  0 lvm
│   ├─snaptest-snaptest         253:18   0 195.9G  0 lvm
│   └─snaptest-vm--109--disk--0 253:19   0    12G  0 lvm
└─snaptest-snaptest_tdata       253:16   0 195.9G  0 lvm
  └─snaptest-snaptest-tpool     253:17   0 195.9G  0 lvm
    ├─snaptest-snaptest         253:18   0 195.9G  0 lvm
    └─snaptest-vm--109--disk--0 253:19   0    12G  0 lvm
 
Do you use this as shared storage in a cluster or only on a single node?

LVM on a shared storage only works reliably with "thick" LVM. Using thin LVM on that will lead to problems and data loss sooner or later once you have VMs from multiple nodes running on it.

"thick" LVM does not support taking snapshots though.
 

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!