Failed upgrade from OMV 5 to 6

  • Dear friends,


    I have big trouble with my OMV now. Hope someone can help.

    I tried to upgrade my OMV 5.6.xx to OMV 6. I checked the plugins (omvextra and unionfs, said will be supported) then started with omv-update.

    omv-update seemed to end with no errors (Maybe I missed some message). Then when I ran omv-release-upgrade, it terminated due to some source.list error.


    I then noticed that I once manually changed source.list and source.list.d/openmediavault-kernel-backports.list, omvextras.list and os-security.list before, to get a faster connection.

    It seems some apt source not updated from buster to bullseye, and caused the error.


    After the upgrade terminated abnormally, I tried reverse sources to debian and omv default. but when I tried omv-update or omv-release-upgrade again. It said no command found.

    I also tried apt update and upgrade. Apt upgrade failed due to some dependency issue.


    Then I did the most stupid thing. I reboot the system. After the system reboot, everything in the system crashes.

    No ip network (ip address command only shows loopback and mac interface), so no way to apt update or install

    no files show in disk in /srv/dev-disk.... , Hope my files are still there. they just didn't show up.

    cannot run omv-firstaid (command not found)


    I tried rebooting to linux recovery mode and normal mode. But didn't find a way to recover it.

    one good thing is that I run omv on promox virtual machine so that I can still access the system via console.


    I really regret for what I have done. ;(

    I have 70T data stored. It will be a disaster if they can not be recoverd.


    Please help.

    Thanks!!!!

  • Hi, I don’t have the knowledge to solve your problem, but I hade some big problems during the upgrade like you. Nothing worked anymore and even an la command resulted in a core dump.

    I will assure that your data are still there.

    If nothing works re install omv from scratch and remount your disks.

    (If you have a backup at least of your fstab would be useful to identify your data drive if, like me, you are using not a regular software raid but mergerfs).

    Good luck!

  • Hi, I don’t have the knowledge to solve your problem, but I hade some big problems during the upgrade like you. Nothing worked anymore and even an la command resulted in a core dump.

    I will assure that your data are still there.

    If nothing works re install omv from scratch and remount your disks.

    (If you have a backup at least of your fstab would be useful to identify your data drive if, like me, you are using not a regular software raid but mergerfs).

    Good luck!

    Thanks a lot.


    I checked, etc/fstab and etc/fstab.bak are still in /etc folder.

    I can at least print them out and type them if I reinstall omv.


    As I ran omv on proxmox virtual machine, I plan to do as follows:

    1. keep the crashed system disk

    2. create a new virtual disk as the bootable system drive to reinstall omv.

    3. after reinstallation, I install mergerfs plugin

    4. mount the crashed system drive and copy the fstab to the new installed system.


    Are the above steps a possible solution? And what exactly I should do to restore the fstab from the backup file?


    Thanks again!!!

  • Why would you want to copy the old /etc/fstab file into the newly installed system?

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


    OMV AMD64 6.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • Why would you want to copy the old /etc/fstab file into the newly installed system?

    to restore the previous unionfs file system setting, which merges 8 disks into one volume and mount to a directory.

    Can I do that in this way?


    I also found 3files config.xml config.xml.5x.bak php.ini in /etc/openmediavault. Will these files help me to restore to my previous settings?

  • Well, you can hand code mergerfs in fstab, I did it that way for many years. But you might be better off using the plugin which no longer writes to fstab.


    The config.xml file is not importable. But you can read it to see what settings you had and use that information to refer to when setting things up in the GUI.

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


    OMV AMD64 6.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • Well, you can hand code mergerfs in fstab, I did it that way for many years. But you might be better off using the plugin which no longer writes to fstab.


    The config.xml file is not importable. But you can read it to see what settings you had and use that information to refer to when setting things up in the GUI.

    Really appreciate your help.


    Do you mean that mergerfs no longer writes to fstab or suggest me to use other plugins?

    My current fstab is something like this. What is the best way to recover my data in the 8 disks that merges to one volume "myomv" and better also to restore the previous directory structures in the volume?

  • The mergerfs plugin no longer writes to fstab. But this does not mean you can't write that line into fstab yourself. You will have to place it below the >>> [openmediavault] - <<< [openmediavault] section. But I suggest using the mergerfs plugin instead.

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


    OMV AMD64 6.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

Participate now!

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