Hello.
I am trying to move some containers to a new disk but when trying to move the volume i get the following output
I think the filesystems in the containers are corrupted in some way, i also get similar issues when trying to make a backup of the container so i can try restoring it to the new disk. I've tried to repair the file system with fsck and it says errors were fixed but still have the same issues. I'm not so worried about the files it can't read being lost after the move if there's an option to make the move operation ignore errors but i can't find an option like this even when doing the move on the command line using pct move_voilume.
How do i repair the file system so the volume can be moved or how do i move it and ignore the errors?
Thanks!
I am trying to move some containers to a new disk but when trying to move the volume i get the following output
Code:
Logical volume "vm-610-disk-0" created.
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: 4096/87818240 4722688/8781824012062720/8781824018878464/8781824025694208/8781824033034240/8781824039849984/8781824046665728/8781824054005760/8781824060821504/8781824067637248/8781824074452992/8781824081793024/87818240 done
Creating filesystem with 87818240 4k blocks and 21954560 inodes
Filesystem UUID: 4337687c-3c05-4b09-aeed-7f28e843afec
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968
Allocating group tables: 0/2680 done
Writing inode tables: 0/2680 done
Creating journal (262144 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: 0/2680 done
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk00887.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk00950.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk01003.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk01004.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk01022.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk01099.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk01104.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk01151.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk01219.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/chainstate/3464560.ldb": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk00887.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk00950.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk01003.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk01004.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk01022.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk01099.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk01104.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk01151.dat": Input/output error (5)
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/blocks/blk01219.dat": Input/output error (5)
ERROR: blocks/blk00887.dat failed verification -- update discarded.
ERROR: blocks/blk00950.dat failed verification -- update discarded.
rsync: read errors mapping "/var/lib/lxc/610/.copy-volume-2/chainstate/3464560.ldb": Input/output error (5)
ERROR: blocks/blk01003.dat failed verification -- update discarded.
ERROR: blocks/blk01004.dat failed verification -- update discarded.
ERROR: blocks/blk01022.dat failed verification -- update discarded.
ERROR: blocks/blk01099.dat failed verification -- update discarded.
ERROR: blocks/blk01104.dat failed verification -- update discarded.
ERROR: blocks/blk01151.dat failed verification -- update discarded.
ERROR: blocks/blk01219.dat failed verification -- update discarded.
ERROR: chainstate/3464560.ldb failed verification -- update discarded.
Number of files: 6,529 (reg: 6,524, dir: 5)
Number of created files: 6,527 (reg: 6,524, dir: 3)
Number of deleted files: 0
Number of regular files transferred: 6,534
Total file size: 331,788,304,278 bytes
Total transferred file size: 332,991,362,192 bytes
Literal data: 332,991,362,192 bytes
Matched data: 0 bytes
File list size: 131,062
File list generation time: 0.005 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 333,073,097,682
Total bytes received: 124,942
sent 333,073,097,682 bytes received 124,942 bytes 102,499,837.71 bytes/sec
total size is 331,788,304,278 speedup is 1.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
Logical volume "vm-610-disk-0" successfully removed
TASK ERROR: command '/usr/bin/rsync --stats -X -A --numeric-ids -aH --whole-file --sparse --one-file-system /var/lib/lxc/610/.copy-volume-2/ /var/lib/lxc/610/.copy-volume-1' failed: exit code 23
I think the filesystems in the containers are corrupted in some way, i also get similar issues when trying to make a backup of the container so i can try restoring it to the new disk. I've tried to repair the file system with fsck and it says errors were fixed but still have the same issues. I'm not so worried about the files it can't read being lost after the move if there's an option to make the move operation ignore errors but i can't find an option like this even when doing the move on the command line using pct move_voilume.
How do i repair the file system so the volume can be moved or how do i move it and ignore the errors?
Thanks!

Last edited: