/dev/loop0 read-only - Cant move lxc disk from NFS share to local disk

Jan 12, 2022
39
8
13
35
Just noticed that I accidentally created one of my containers with its storage on my backup nfs mount.
I tried moving the disk storage in the gui and got this error:

Code:
Formatting '/var/lib/vz/images/101/vm-101-disk-0.raw', fmt=raw size=53687091200 preallocation=off
Creating filesystem with 13107200 4k blocks and 3276800 inodes
Filesystem UUID: 113d6190-3bef-4cf4-b7bb-2b0c331ff226
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424
mount: /var/lib/lxc/101/.copy-volume-2: cannot mount /dev/loop0 read-only.
Specified filename /var/lib/lxc/101/.copy-volume-1 does not exist.
TASK ERROR: command 'mount -o ro /dev/loop0 /var/lib/lxc/101/.copy-volume-2//' failed: exit code 32

Not sure what to do here, why is it erroring out if the command its running is mounting /dev/loop0 as ro?
How do I move the lxc disk back to my local storage?
 
Last edited:
  • Like
Reactions: sinister5665
Exactly the same with the latest version of proxmox. Did you ever get a resolution to this?
 
I’m starting to think lxc isn’t so stable on proxmox, seems to have a risk of complications unless your use case is very very simple.

Started migrating the data to a VM instead.

Hopefully there’s an answer to this at some stage but this will suit my requirements for now..