LXC clone issue /dev/loop

wylord

New Member
Feb 25, 2023
1
0
1
Hi all,

I´m a complete noob to Linux and Proxmox. I clustered 2 nodes and after that, I ran into this issue while trying to clone a CT:

Code:
create full clone of mountpoint rootfs (Machines:225/vm-225-disk-0.raw)
Formatting '/var/lib/vz/images/2500/vm-2500-disk-0.raw', fmt=raw size=8589934592 preallocation=off
Creating filesystem with 2097152 4k blocks and 524288 inodes
Filesystem UUID: d1af6245-4b02-4abb-9228-468d5dedf9e9
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
mount: /var/lib/lxc/2500/.copy-volume-2: cannot mount /dev/loop2 read-only.
Specified filename /var/lib/lxc/2500/.copy-volume-1 does not exist.
TASK ERROR: clone failed: command 'mount -o ro /dev/loop2 /var/lib/lxc/2500/.copy-volume-2//' failed: exit code 32

I would be happy to get your advise, how I can solve that.

Cheers
 
Hi,
please share the output of pveversion -v and pct config 225? What kind of storage is Machines. Are you cloning on the same node?
 
Hi,
I have the same error but for moving a storage file to an other HDD.

Code:
Formatting '/root/ssd/images/202/vm-202-disk-4.raw', fmt=raw size=214748364800 preallocation=off
Creating filesystem with 52428800 4k blocks and 13107200 inodes
Filesystem UUID: 58e40b3f-9ed4-458e-addf-a61b765a3cec
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424, 20480000, 23887872
mount: /var/lib/lxc/202/.copy-volume-2: cannot mount /dev/loop3 read-only.
Specified filename /var/lib/lxc/202/.copy-volume-1 does not exist.
TASK ERROR: command 'mount -o ro /dev/loop3 /var/lib/lxc/202/.copy-volume-2//' failed: exit code 32

Output of pveversion
Code:
proxmox-ve: 7.3-1 (running kernel: 5.15.85-1-pve)
pve-manager: 7.3-6 (running version: 7.3-6/723bb6ec)
pve-kernel-helper: 7.3-4
pve-kernel-5.15: 7.3-2
pve-kernel-5.15.85-1-pve: 5.15.85-1
pve-kernel-5.15.83-1-pve: 5.15.83-1
pve-kernel-5.15.74-1-pve: 5.15.74-1
pve-kernel-5.15.64-1-pve: 5.15.64-1
pve-kernel-5.15.30-2-pve: 5.15.30-3
ceph-fuse: 15.2.16-pve1
corosync: 3.1.7-pve1
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.24-pve2
libproxmox-acme-perl: 1.4.3
libproxmox-backup-qemu0: 1.3.1-1
libpve-access-control: 7.3-1
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.3-2
libpve-guest-common-perl: 4.2-3
libpve-http-server-perl: 4.1-5
libpve-storage-perl: 7.3-2
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 5.0.2-1
lxcfs: 5.0.3-pve1
novnc-pve: 1.3.0-3
proxmox-backup-client: 2.3.3-1
proxmox-backup-file-restore: 2.3.3-1
proxmox-mail-forward: 0.1.1-1
proxmox-mini-journalreader: 1.3-1
proxmox-offline-mirror-helper: 0.5.1-1
proxmox-widget-toolkit: 3.5.5
pve-cluster: 7.3-2
pve-container: 4.4-2
pve-docs: 7.3-1
pve-edk2-firmware: 3.20220526-1
pve-firewall: 4.2-7
pve-firmware: 3.6-3
pve-ha-manager: 3.5.1
pve-i18n: 2.8-2
pve-qemu-kvm: 7.2.0-5
pve-xtermjs: 4.16.0-1
qemu-server: 7.3-3
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.8.0~bpo11+2
vncterm: 1.7-1
zfsutils-linux: 2.1.9-pve1

Output of pct config 202
Code:
arch: amd64
cores: 2
features: keyctl=1,nesting=1
hostname: Nextcloud
memory: 4096
mp0: localssd:202/vm-202-disk-1.raw,mp=/mnt/NextcloudData,backup=1,size=200G
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.1.1,hwaddr=AA:BD:73:D9:61:19,ip=192.168.1.27/24,ip6=dhcp,type=veth
onboot: 1
ostype: ubuntu
rootfs: localssd:202/vm-202-disk-0.raw,size=10G
swap: 2048
unprivileged: 1

Thanks for help