Description
Are you using XOA or XO from the sources? BOTH
If XOA: - which release channel? LATEST 5.86.1
If XO from the sources: COMMIT [bcc62]
Describe the bug
As discussed in forum post 7722
Attempting to do a file level restore from a delta backup on a VM with a EXT4 filesystem on a single LVM partition does not work.
XO does not correctly activate the backed up LVM partition (from the VHD on FUSE) before mounting the EXT4 filesystem on that LVM partition. XO generates an error: xo-server: mount: /tmp/e01vgsdwkdt: unknown filesystem type 'LVM2_member'.
To Reproduce
Steps to reproduce the behavior:
- Install Ubuntu 20.04 LTS with a default install that includes a single main LVM partition with root/ EXT4 filesystem.
- Backup with XO/XOA using Delta Backup (example on S3)
- Use File Restore
- Select backup (only one)
- Select disk (only one)
- Select partition (last/largest one that is the main data partition)
- XO will display red triangle and NOT display any files
- Error in log (from XO source):
Sep 11 07:55:26 xo1 systemd[1]: Starting LVM event activation on device 7:1...
Sep 11 07:55:26 xo1 lvm[24697]: pvscan[24697] /dev/loop1 excluded by filters: device is too small (pv_min_size).
Sep 11 07:55:26 xo1 systemd[1]: Started /sbin/lvm pvscan --cache 7:1.
Sep 11 07:55:26 xo1 lvm[24699]: pvscan[24699] /dev/loop1 excluded by filters: device is too small (pv_min_size).
Sep 11 07:55:26 xo1 systemd[1]: lvm2-pvscan@7:1.service: Main process exited, code=killed, status=15/TERM
Sep 11 07:55:26 xo1 systemd[1]: lvm2-pvscan@7:1.service: Failed with result 'signal'.
Sep 11 07:55:26 xo1 systemd[1]: Stopped LVM event activation on device 7:1.
Sep 11 07:55:26 xo1 systemd[1]: run-r0f8c91fc21104cbdb590831d168f84f4.service: Succeeded.
Sep 11 07:55:26 xo1 systemd[1]: Starting LVM event activation on device 7:1...
Sep 11 07:55:26 xo1 lvm[24703]: pvscan[24703] /dev/loop1 excluded by filters: device is too small (pv_min_size).
Sep 11 07:55:26 xo1 xo-server[492]: 2023-09-11T11:55:26.995Z xo:api WARN admin | backupNg.listFiles(...) [233ms] =!> Error: Command failed: mount --options=loop,ro,norecovery,sizelimit=20397948928,offset=1075838976 --source=/tmp/oa2kpvm9h88/vhd0 --target=/tmp/066w38w84glh
Sep 11 07:55:26 xo1 xo-server[492]: mount: /tmp/066w38w84glh: unknown filesystem type 'LVM2_member'.
Sep 11 07:55:27 xo1 systemd[1]: Started /sbin/lvm pvscan --cache 7:1.
Sep 11 07:55:27 xo1 lvm[24705]: pvscan[24705] /dev/loop1 excluded by filters: device is too small (pv_min_size).
Sep 11 07:55:27 xo1 systemd[1]: lvm2-pvscan@7:1.service: Main process exited, code=killed, status=15/TERM
Sep 11 07:55:27 xo1 systemd[1]: lvm2-pvscan@7:1.service: Failed with result 'signal'.
Sep 11 07:55:27 xo1 systemd[1]: Stopped LVM event activation on device 7:1.
Sep 11 07:55:27 xo1 systemd[1]: run-r998a76a4dba2435595a3f8059ae11523.service: Succeeded.
Expected behavior
Expecting VM root/ filesystem to be available and show file list.
Environment (please provide the following information):
XO/XOA Linux Debian 11 Node v18.17.1
XCP-ng 8.2.1 (updated)
Additional context
Data from delta backup IS valid and can be manually accessed on the XO server from the FUSE mounted VHD.