Hello!
I believe, that I have a similar problem as mentioned here.
Container hosts gui messanger apps like Skype, Viber, etc and browsers, no other special use case, like lxd or docker inside.
So far I have tried to copy the container with snapshots, without them (–instance-only), with and without profiles applied (–no-profiles). Sadly, but everything has failed.
At the same time I have another container on the btrfs backend, but with no snapshots, and it hasn’t failed on copy to the new lvm backend.
UPD: Actually failed verification – update discarded seems to be a rsync error and i see a lot of them with opera/skype cache files stored in container.
lxd version
os_name: Arch Linux
os_version: ""
project: default
server: lxd
server_clustered: false
server_version: "4.12"
storage: btrfs | lvm
storage_version: 4.15.1 | 2.02.187(2) (2020-03-24) / 1.02.170 (2020-03-24) / 4.43.0
Container info:
$ lxc info messangers-arch
Name: messangers-arch
Location: none
Remote: unix://
Architecture: x86_64
Created: 2020/11/20 16:48 UTC
Status: Running
Type: container
Profiles: pulseaudio, messangers-arch
Snapshots:
201120-add-sudo-user (taken at 2020/11/20 17:11 UTC) (stateless)
201120-basic-gui-audio-packages (taken at 2020/11/20 17:22 UTC) (stateless)
201120-audio-ready (taken at 2020/11/20 20:55 UTC) (stateless)
201120-gui-ready (taken at 2020/11/20 22:50 UTC) (stateless)
201120-aur-helper (taken at 2020/11/20 23:06 UTC) (stateless)
201121-complete (taken at 2020/11/21 18:30 UTC) (stateless)
Container source storage pool (current working state):
lxc storage info messangers-arch
info:
description: 20GB
driver: btrfs
name: messangers-arch
space used: 14.24GB
total space: 20.00GB
used by:
instances:
- messangers-arch
profiles:
- messangers-arch
Container destination storage pool (2 - bigger):
$ lxc storage info lvmTPool01
info:
description: ""
driver: lvm
name: lvmTPool01
space used: 819.41MB
total space: 51.54GB
I’ve found out that this command should be issued to change default lv size, so i’ve issued it when found. Obviously, without that I had the same error, but it’s expected.
lxc storage set lvm_pool volume.size XXGB
Result of attempt to copy only instance to the LVM pool:
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/colt/.config/opera/Service Worker/CacheStorage/efb5023a1630344583faab602ea42e0ca473b65d/6bc2892c-701d-4187-8ba3-82e6155e8b99/17cc61884630086e_1": Input/output error (5)
WARNING: rootfs/home/colt/.config/opera/Service Worker/CacheStorage/579544fd7d0441717f082c9eb123588966aa57ac/8ef64737-bd09-4e73-9268-11e4e42b98c4/67c8aea7a5b97064_0 failed verification -- update discarded (will try again).
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/colt/.config/opera/Service Worker/CacheStorage/579544fd7d0441717f082c9eb123588966aa57ac/8ef64737-bd09-4e73-9268-11e4e42b98c4/67c8aea7a5b97064_0": Input/output error (5)
WARNING: rootfs/home/colt/.config/opera/Service Worker/CacheStorage/efb5023a1630344583faab602ea42e0ca473b65d/6bc2892c-701d-4187-8ba3-82e6155e8b99/17cc61884630086e_1 failed verification -- update discarded (will try again).
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/colt/.config/opera/Service Worker/CacheStorage/efb5023a1630344583faab602ea42e0ca473b65d/6bc2892c-701d-4187-8ba3-82e6155e8b99/17cc61884630086e_1": Input/output error (5)
ERROR: rootfs/home/colt/.config/opera/Service Worker/CacheStorage/579544fd7d0441717f082c9eb123588966aa57ac/8ef64737-bd09-4e73-9268-11e4e42b98c4/67c8aea7a5b97064_0 failed verification -- update discarded.
ERROR: rootfs/home/colt/.config/opera/Service Worker/CacheStorage/efb5023a1630344583faab602ea42e0ca473b65d/6bc2892c-701d-4187-8ba3-82e6155e8b99/17cc61884630086e_1 failed verification -- update discarded.
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.cache/mozilla/firefox/c7bzoruj.default-release/cache2/entries/3E1E786DB396415EE9C929E201DCC1989AF4805C": Input/output error (5)
WARNING: rootfs/home/ubuntu/.cache/mozilla/firefox/c7bzoruj.default-release/cache2/entries/3E1E786DB396415EE9C929E201DCC1989AF4805C failed verification -- update discarded (will try again).
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.cache/mozilla/firefox/c7bzoruj.default-release/cache2/entries/3E1E786DB396415EE9C929E201DCC1989AF4805C": Input/output error (5)
ERROR: rootfs/home/ubuntu/.cache/mozilla/firefox/c7bzoruj.default-release/cache2/entries/3E1E786DB396415EE9C929E201DCC1989AF4805C failed verification -- update discarded.
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.cache/thunderbird/tl012p50.default/cache2/entries/26F2934535ABE6B0B451DE3DC7BD2779A29E2CD4": Input/output error (5)
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.config/Microsoft/Microsoft Teams/old_logs_20210110183021.txt": Input/output error (5)
WARNING: rootfs/home/ubuntu/.cache/thunderbird/tl012p50.default/cache2/entries/26F2934535ABE6B0B451DE3DC7BD2779A29E2CD4 failed verification -- update discarded (will try again).
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.cache/thunderbird/tl012p50.default/cache2/entries/26F2934535ABE6B0B451DE3DC7BD2779A29E2CD4": Input/output error (5)
WARNING: rootfs/home/ubuntu/.config/Microsoft/Microsoft Teams/old_logs_20210110183021.txt failed verification -- update discarded (will try again).
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.config/Microsoft/Microsoft Teams/old_logs_20210110183021.txt": Input/output error (5)
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.config/opera/History": Input/output error (5)
ERROR: rootfs/home/ubuntu/.cache/thunderbird/tl012p50.default/cache2/entries/26F2934535ABE6B0B451DE3DC7BD2779A29E2CD4 failed verification -- update discarded.
ERROR: rootfs/home/ubuntu/.config/Microsoft/Microsoft Teams/old_logs_20210110183021.txt failed verification -- update discarded.
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.config/opera/Local Extension Settings/kccohkcpppjjkkjppopfnflnebibpida/000527.ldb": Input/output error (5)
WARNING: rootfs/home/ubuntu/.config/opera/History failed verification -- update discarded (will try again).
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.config/opera/History": Input/output error (5)
WARNING: rootfs/home/ubuntu/.config/opera/Local Extension Settings/kccohkcpppjjkkjppopfnflnebibpida/000527.ldb failed verification -- update discarded (will try again).
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.config/opera/Local Extension Settings/kccohkcpppjjkkjppopfnflnebibpida/000527.ldb": Input/output error (5)
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.config/skypeforlinux/Cache/3be61d81a0976669_0": Input/output error (5)
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.config/skypeforlinux/Cache/73e9b0021fae97a4_0": Input/output error (5)
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.config/skypeforlinux/Cache/f5135f83e9b23320_0": Input/output error (5)
ERROR: rootfs/home/ubuntu/.config/opera/History failed verification -- update discarded.
ERROR: rootfs/home/ubuntu/.config/opera/Local Extension Settings/kccohkcpppjjkkjppopfnflnebibpida/000527.ldb failed verification -- update discarded.
WARNING: rootfs/home/ubuntu/.config/skypeforlinux/Cache/3be61d81a0976669_0 failed verification -- update discarded (will try again).
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.config/skypeforlinux/Cache/3be61d81a0976669_0": Input/output error (5)
WARNING: rootfs/home/ubuntu/.config/skypeforlinux/Cache/73e9b0021fae97a4_0 failed verification -- update discarded (will try again).
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.config/skypeforlinux/Cache/73e9b0021fae97a4_0": Input/output error (5)
WARNING: rootfs/home/ubuntu/.config/skypeforlinux/Cache/f5135f83e9b23320_0 failed verification -- update discarded (will try again).
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/home/ubuntu/.config/skypeforlinux/Cache/f5135f83e9b23320_0": Input/output error (5)
ERROR: rootfs/home/ubuntu/.config/skypeforlinux/Cache/3be61d81a0976669_0 failed verification -- update discarded.
ERROR: rootfs/home/ubuntu/.config/skypeforlinux/Cache/73e9b0021fae97a4_0 failed verification -- update discarded.
ERROR: rootfs/home/ubuntu/.config/skypeforlinux/Cache/f5135f83e9b23320_0 failed verification -- update discarded.
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/var/cache/man/sv/index.db": Input/output error (5)
WARNING: rootfs/var/cache/man/sv/index.db failed verification -- update discarded (will try again).
rsync: read errors mapping "/var/snap/lxd/common/lxd/storage-pools/messangers-arch/containers/messangers-arch/rootfs/var/cache/man/sv/index.db": Input/output error (5)
ERROR: rootfs/var/cache/man/sv/index.db failed verification -- update discarded.
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
) Rsync receive failed: /var/snap/lxd/common/lxd/storage-pools/messangersTPool/containers/messangers/: [exit status 23] ()]
Space used few minutes before fail:
lxc storage info lvmTPool01
info:
description: ""
driver: lvm
name: lvmTPool01
space used: 11.02GB
total space: 51.54GB
used by:
instances:
- messangers
sudo lvdisplay lvmTPoolVG01 --units G
--- Logical volume ---
LV Name lvmTPool01
VG Name lvmTPoolVG01
LV UUID ZsTRzL-3QQQ-KAQN-a6eH-oLor-uCI1-J3V2ZU
LV Write Access read/write (activated read only)
LV Creation host, time LIVE.ARCH.BOX, 2021-03-13 21:25:35 +0200
LV Pool metadata lvmTPool01_tmeta
LV Pool data lvmTPool01_tdata
LV Status available
# open 2
LV Size 51.54 GB
Allocated pool data 19.53%
Allocated metadata 2.02%
Current LE 12287
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:14
--- Logical volume ---
LV Path /dev/lvmTPoolVG01/containers_messangers
LV Name containers_messangers
VG Name lvmTPoolVG01
LV UUID 8zfgId-l7Kf-3JOp-3YuK-VRbQ-0tNC-n2eXkt
LV Write Access read/write
LV Creation host, time LIVE.ARCH.BOX, 2021-03-14 18:35:46 +0200
LV Pool name lvmTPool01
LV Status available
# open 1
LV Size 50.00 GB
Mapped size 19.10%
Current LE 11921
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:17
Thank you in advance for any help!