Backup Plugin / Restore Issue

  • I had to do a fresh OMV install and wanted to test my backup/restore protocols.


    I followed this guide: [Backup Plugin] create a single img backup image for use with win32 disk imager / etcher, etc.


    Basically I made a ddfull backup, flashed this using usbimager to a new formatted SD card (which was successful). Shutdown my OMV server, took out the existing SD Card, inserted new backup image SD card, started the system.


    But I got an error saying error: invalid arch-independent ELF magic and then entering into rescue mode?

  • Are you trying to boot the machine in UEFI mode? If so try not doing that.

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.


  • tannaroo

    Changed the title of the thread from “Backup Plugin / Restore Grub Issue” to “Backup Plugin / Restore Issue”.
  • So I have been trying to create a backup using the guide in post #1.


    I have tried 4 different USB brands, creating a backup of my 16gb flash drive operating system to another 16gb and 32gb flash drive.


    I can not get the 'backup' version to boot - keep getting errors on each version (sometimes same) per the image below:


    I've tried using Etcher and USB imager as well.


    Any ideas to get it working?

  • I followed this guide: [Backup Plugin] create a single img backup image for use with win32 disk imager / etcher, etc.


    Shutdown my OMV server, took out the existing SD Card, inserted new backup image SD card, started the system.

    The link you posted is refering RaspberryPi.

    Its set to Legacy mode

    RaspberryPi doesn't have Legacy/UEFI.


    So, the question is: What are you trying to accomplish?


    And the next one: which hardware are you running?


  • I'm running Dell Desktop i5.


    I've had to fully re-install OMV5 a few weeks ago, which I have done on a flash drive.


    I'm now trying to restore from the backup plug by writing the backup image to a new flash drive. Therefore, if my original system drive crashes, I can just replace it with my backup flash drive.

  • I'm running Dell Desktop i5.


    I've had to fully re-install OMV5 a few weeks ago, which I have done on a flash drive.


    I'm now trying to restore from the backup plug by writing the backup image to a new flash drive. Therefore, if my original system drive crashes, I can just replace it with my backup flash drive.

    I recall ryecoaaron explaining to someone what/how to do it (can't remember which thread).


    For me, the easiest way is:

    Power down the server.

    Clone the USB stick to another of same size on another PC (use whatever software you feel more comfortable)


    Plug the new USB stick on the OMV rig.

    Power up.


    Sorry but I never got around the backup plugin and the time I spend to do it as above is less than 1/2 hour with a good quality 16Gb stick/img.

  • My other machine is Windows based, so is there a cloning software that works that reads the linux USB to clone it on another USB?

    For cloning, it doesn't matter if Windows or any other OS sees the partitions.


    For my Raspberries, I use Win32DiskImager. Create an image and then write it to the new stick.

    I also run Paragon Partition Manager and it can also clone it.


    If you go this route, there are a lot of apps that do a 1:1 clone. Just try to find one you feel OK with.


    One thing I can't be sure of is if you need to do an upgrade-grub after starting with the new stick.

    Since it's a clone, it should not be necessary but I have no experience with it. Pis don't have grub.

  • Sorry, I thought Paragon CE would allow it to clone.


    Use Win32DiskImager:

    Click the folder icon and set a name for the image:

    Make sure device matches the stick:

    Mark the box Read Only Allocated Partitions

    Click Read



    When finished, close Win32 and eject safely the stick.


    Plug in the new stick and open Win32 again:

    Click the folder icon and use the previous made image:

    Make sure the Device matches your:

    Check the box Read Only Allocated Partitions

    Click Write


    There will show a Warning, just click yes (or continue)


    When finished, close Win32 and eject the stick.

    Test it on the OMV and see if all is OK.

  • Just to correct myself, the other software I use is Macrium Reflect Free Edition.

    That one is also able to clone USB disks:

  • thanks soma. tried Macrium Reflect Free Edition to clone my OMV system drive.


    first I tried to clone my 16gb system drive to another usb drive but couldn't because my system drive is 14.98gb whereas the backup flashdrive are 14.78gb (so it says insufficient memory) - maybe this is why backup using ddfull, writing the image to these flash drives did not work??


    I then tried to clone onto a 32gb flash drive but when I tried to boot - it didn't boot to OMV (its headless so I need to connect a monitor to find what happened) but also thinking if going from 16gb to 32gb would cause any issues?

  • I then tried to clone onto a 32gb flash drive but when I tried to boot - it didn't boot to OMV (its headless so I need to connect a monitor to find what happened) but also thinking if going from 16gb to 32gb would cause any issues?

    That is why I said that you probably have issues with grub (the Pis don't have/use it).

    Moving from 16GiB to 32GiB won't be an issue since the partition will only be of the size of the original stick.

    Sorry but I'm really out of my league here.


    Hoping ryecoaaron can shed some light on this one (although Windows might not be is area)

    • Official Post

    can shed some light on this one (although Windows might not be is area)

    You are correct but I don't understand why people use fancy utilities to clone a drive. usbimager on windows, mac, or linux is all you need. I have no idea how Macrium works. It might just be cloning the filesystem instead of the whole disk but I am just guessing.

    omv 7.7.7-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.5.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • You are correct but I don't understand why people use fancy utilities to clone a drive. usbimager on windows, mac, or linux is all you need. I have no idea how Macrium works. It might just be cloning the filesystem instead of the whole disk but I am just guessing.

    ok I haven't yet done cloning system drive to backup drive using usb imager, if that is what you suggest?


    but I've done ddfull backup and then tried to write the image using usbimager (didn't work) and etcher (didn't work).


    EDIT: usbimager (on windows) doesn't recognise the ext4 filesystem so no tquite sure how to physically clone the drive on a windows machine using usb imager

  • tannaroo

    Use Win32 to clone the 16GiB and then flash it to the 32GiB and see if it boots.


    As I posted on #11:

    • Official Post

    usbimager (on windows) doesn't recognise the ext4 filesystem so no tquite sure how to physically clone the drive on a windows machine using usb imager

    It doesn't need to. It is only cloning the disk and the blocks on it. Windows doesn't have to understand what is on those blocks.


    Use Win32 to clone the 16GiB and then flash it to the 32GiB and see if it boots.

    usbimager is better.

    omv 7.7.7-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.5.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • usbimager is better.

    We've already talked about it in a different thread but I still haven't had the time to use/test it.


    And I had already explained with Win32 some posts above, was saving time, :)

    • Official Post

    We've already talked about it in a different thread but I still haven't had the time to use/test it.

    It is all I use on Windows and Linux. And I write a LOT of SD cards with it for OMV testing.

    omv 7.7.7-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.5.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!