Delta File Restore - LVM



  • Hello,

    I have gone ahead and re-installed using Debian 8. I am still getting, "Error while scanning disk" while selecting Disk.
    Getting below error within the XOA logs,

    ==============
    backup.scanDisk
    {
    "remote": "e6d59835-b5d9-4058-bc50-d6df35525d4b",
    "disk": "vm_delta_45AIR-C03_6db54486-4682-25a0-8bc3-7aa9bcfbae6c/vdi_85ddea4a-b77b-4301-8bfb-e03b214c37f9/20171003T040028Z_delta.vhd"
    }
    {
    "message": "spawn pvs ENOENT",
    "stack": "Error: spawn pvs ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:197:32)
    at onErrorNT (internal/child_process.js:376:16)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)",



  • Have you installed LVM?



  • Yes I do have.

    ========
    root@sherbin1:/home/sherbin# pvs
    PV VG Fmt Attr PSize PFree
    /dev/xvda2 sherbin-root lvm2 a-- 36.32g 0
    /dev/xvda3 sherbin-root lvm2 a-- 2.74g 0
    /dev/xvdb1 sherbin-var lvm2 a-- 60.00g 0

    root@sherbin1:/home/sherbin# vgs
    VG #PV #LV #SN Attr VSize VFree
    sherbin-root 2 2 0 wz--n- 39.06g 0
    sherbin-var 1 1 0 wz--n- 60.00g 0

    root@sherbin1:/home/sherbin# lvs
    LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
    root sherbin-root -wi-ao---- 37.19g
    swap_1 sherbin-root -wi-ao---- 1.87g
    gluster sherbin-var -wi-ao---- 60.00g



  • For anyone else following along, looks like @julien-f posted the solution here.

    You need to install lvm2 as well.
    This is used for file restore.



  • File Restoring breaks once again. It is not working. XOA has been built under Debian8 with Libfuse, LVM2 and vhdimount. Pasting error logs below, while trying to select disk,

    =================================
    root@xoa1:/home/xoa# vhdimount -V
    vhdimount 20170223

    root@xoa1:/home/xoa# apt-get install lvm2
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    lvm2 is already the newest version.

    root@xoa1:/home/xoa# apt-get install libfuse2
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    libfuse2 is already the newest version.

    Command failed: vgchange -ay sherbin-var
    File descriptor 11 (/var/lib/xo-server/data/leveldb/LOG) leaked on vgchange invocation. Parent PID 88120: /usr/local/bin/node
    File descriptor 13 (/var/lib/xo-server/data/leveldb/LOCK) leaked on vgchange invocation. Parent PID 88120: /usr/local/bin/node
    File descriptor 15 (/var/lib/xo-server/data/leveldb/000410.log) leaked on vgchange invocation. Parent PID 88120: /usr/local/bin/node
    File descriptor 117 (/var/lib/xo-server/data/leveldb/MANIFEST-000408) leaked on vgchange invocation. Parent PID 88120: /usr/local/bin/node
    Couldn't find device with uuid ayMbuR-1l9u-JHJ3-toRq-mvXz-FyYI-muPIVz.
    Refusing activation of partial LV sherbin-var/gluster. Use '--activationmode partial' to override.

    0 logical volume(s) in volume group "sherbin-var" now active


    Command failed: mount --options=loop,ro,offset=1048576 --source=/tmp/tmp-88120rI62MQHzgWfp/vhdi1 --target=/tmp/tmp-88120FM1gHobDTCcA
    mount: unknown filesystem type 'LVM2_member'

    =================================

    Also XOA is built to latest version. Looking for some advice, on what could be missing here leading to the error.



  • What do you mean by XOA? You are using the official appliance or not?



  • Oh. Sorry. I just termed Xen Orchestra as XOA in short.



  • XOA is Xen Orchestra Appliance 😉



  • Oh. Wasn't aware about that. We just termed Xen Orchestra internally 😃

    Can you shed some light in fixing the issue with Delta Backup File Restore .



  • The issue is very likely correlated to your install not XO by itself. Try it with XOA and tell us if you have the same problem. If yes, create the issue in GitHub 🙂


Log in to reply