Unable to take snapshots of Linux Containers, no bind mounts apparent

headcase

New Member
Jul 7, 2019
10
0
1
39
I'm unable to take snapshots of Linux Containers (the option on the GUI is greyed out), even when there are no apparent bind mounts on the container.

I have a Linux container config in /etc/pve/lxc/101.conf that looks like this.

Code:
arch: amd64
cores: 1
hostname: debian
memory: 2096
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=66:29:A8:E4:1E:17,ip=dhcp,ip6=dhcp,type=veth
ostype: debian
rootfs: local:101/vm-101-disk-0.raw,size=40G
swap: 2096
unprivileged: 1

There aren't any bind mounts apparent here. I am using Proxmox on a hosted provider, so it's possible a config has been changed elsewhere. Is there any way to check whether bind mounts are being applied somewhere else, or am I missing something?
 
In the link you posted, it says that block level storage like lvmthin can only store raw images, but it also says that snapshots are supported. On the other hand for local file stores, if I wanted to use snapshots I would have to either use zfspool or cephfs, is that correct? Right now it seems that I am unable to select any other kind of storage besides raw for my containers, is there another option that I am missing?
 
In the link you posted, it says that block level storage like lvmthin can only store raw images, but it also says that snapshots are supported.

That's true, but you do not use lvm-thin, you use directory. The extension .raw gives that away.

On the other hand for local file stores, if I wanted to use snapshots I would have to either use zfspool or cephfs, is that correct?

ZFS and thin-lvm is possible, but ZFS rulez for containers.

Right now it seems that I am unable to select any other kind of storage besides raw for my containers, is there another option that I am missing?

The storage type is defined at install time (if you only have on disk).
 
Ahh okay cool, I seem to have it working now thanks :). Is it possible to move my old raw images from file storage to the ZFS pool? When I try to click the 'Move Volume' option in the GUI I get an error like this

Code:
mount: cannot mount /dev/loop0 read-only
TASK ERROR: command 'mount -o ro /dev/loop0 /var/lib/lxc/101/.copy-volume-2//' failed: exit code 32
 
I believe the container was stopped but rebooting Proxmox seemed to do the trick, thanks.
 

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!