Upgrade Scripts for non-interactive major release upgrades (2->3, 3->4, 4->5)

  • What do you mean you are lookinf for ssh and webpanel?

    Do you mean sshd and nginx are not running on your OMV?


    Did you check systemctl. status nginx.service

    If you got help in the forum and want to give something back to the project click here and write up your solution for others.

  • but still doesn't work

    I wasn't done. We work in small steps. Make one change and check. Then make more.

    omv 6.0.8-1 Shaitan | 64 bit | 5.15 proxmox kernel | omvextrasorg 6.0.5 | kvm plugin 6.0.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Sorry, dumb question, Is this topic about "omv-release-upgrade" or some other utility? I wanted to read about what omv-release-upgrade does in prep for an omv5 to 6 upgrade and I'm having a hard time finding any documentation. I take it from comments this script will do both the debian upgrade and the omv upgrade. Do I run the version in my omv5 install or pull a new one somehow from omv6 to run? I'm hesitant to run any script until I understand what it's going to do :-).


    steve

  • Ok, thanks! It looks like the omv5 script will default to 6.0/shaitan so I just use the script in the 5.0 installation. How do I tell which plugins are ready for 6? I see all the plugins on github. I guess if something has a 5.x branch then master must be for 6, but does that mean it is ready?

  • Thanks for the script, at the end it worked, however some obstacles. Those might be useful to know for more readers and/or the creator of the script. I upgraded (rather late ...) from OMV 4 to OMV 5 on HP Microserver.


    Sorry, if this is a repetition, honestly, I did not check all the messages of the 16 page thread.


    0. [I'll write about this later, to have the stuff, that might be of more general interest at the front]

    1. Error:

    Code
    Reading package lists...
    E: The repository 'https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch Release' does no longer have a Release file.
    run-parts: /root/openmediavault-upgrade-4.7/run.d/10-apt-update exited with return code 100


    I could solve this, by following omv-extras repos moving to github and restart the upgrade.


    Then it succeeded. I rebooted, sort of ok.


    2. After upgrade, the hostname was openmediavault, before the upgrade, the hostname was hpms (for HP Microserver). I changed the hostname by the OMV-GUI under System->General->Network->Hostname (I am using a German system, so these are my translations - possibly in an English configuration, the phrases are slightly different.) I rebooted the system by the GUI. When it was booted, it was not accessibly by the net anymore. My router did not find it. The ILO Interface of the Server showed N/A for the NICs. I could still connect to the console by the ILO. I looked at dmesg | grep eth, did not save the output. I rebooted again (no big hope), still no network. omv-firstaid helped here.

    a) It seems, that renaming the hostname is yielding in a system without accessability by the network (at least in my environment)

    b) It seems the upgrade script will not preserve the hostname. (Sorry, when I have missed this in the docs)


    3. I have a strange HD (by USB, NTFS), with a space in the label. This never worked without warnings in OMV, but it did not really influence functionality. I believe some quoting was missing (and some probably still is missing in OMV5, or it might be a consequence of the upgrade path). Now, during booting, I receive a warning:

    So, it looks like missing quoting here.


    0. The first error, which might be related to my stupid disk with a space in the label (it was delivered like this).

    Code
    Remounting is not supported at present. You have to umount volume and then mount it once again.
    run-parts: /root/openmediavault-upgrade-4.7/pre.d/20-remount-ro exited with return code 11

    I had disabled all the services according to the documentation before. The solution for me seemingly was, to plug out the USB-connected disks, reboot, and rerun the upgrade scripts.


    4. I know, that my setup never was totally clean in one other sense. I have 4 external USB-Disks mounted, mainly for Backup purposes. To save energy, I usually have them powered off. Still, they always have been configured inside OMV. It was working for me. Now, I seemingly have to pay a significant startup time penalty, when the disks are powered off during reboot (that penalty was not there in OMV 4). Any idea, how to circumvent this?

    OMV 4.1.13-1 (typically everything up to date), only plugin: flash memory; HP Microserver, 4 internal ext4 HDDs, SSD for OS, SD-Card for booting (can't boot on SSD with 4 HDD used …), external USB3 HDDs (ext4 + NTFS)

  • Oops, I am very sorry, my fault, embarrassing enough!


    (I really did read for a couple of hours about upgrade procedures, and I did find several sources. I believe, I had carefully read https://github.com/dleidert/op…-upgrade/blob/4/README.md, where I did not see the contents of that red sentences at the start of this thread).


    I hope, 0. and 2.-4. from my message make more sense.

    OMV 4.1.13-1 (typically everything up to date), only plugin: flash memory; HP Microserver, 4 internal ext4 HDDs, SSD for OS, SD-Card for booting (can't boot on SSD with 4 HDD used …), external USB3 HDDs (ext4 + NTFS)

  • Hi, thanks for these scripts.

    I am a little confused about warnings you wrote in first posts.


    I have 3 OMV 5. which have been installed on OMV 4 servers. As i use HP raid cards or LSI or 3ware cards for the volumes, i deleted all partitions on the OS drive which is installed on SSD, and i installed from scratch new OMV5.


    But i have also a few OMV 4.x systems which could be upgraded to OMV 5.x with the relevant script.


    I have already ran the omv-extra fix (github) on a few OMV 4 and it works fine.


    So what is the best way ?


    running omv4->5 script on OMV 4.x already set (shares, etc.) like this:

    Code
    wget -qO- https://github.com/dleidert/openmediavault-upgrade/archive/v4.7.tar.gz | tar -xz
    cd openmediavault-upgrade-4.7
    sudo ./omv-release-upgrade-5

    or, as i have already done in the past, installing OMV5 straigthly on fresh and empty ssd? (or OMV6 !)

    thanks.

  • Have a backup of your os disk and try. if it faile you can go back easily and do a fresh install.

    Soem have problems some don't,depending how much non-standard things have been done to the system.

    If you got help in the forum and want to give something back to the project click here and write up your solution for others.

  • Have a backup of your os disk and try. if it faile you can go back easily and do a fresh install.

    Soem have problems some don't,depending how much non-standard things have been done to the system.

    hi,

    thanks. I use backup function on all my omv systems, but i never use the restore function from one backup. Thanks for your simple idea.

    i m going to run the script OMV 4->5 on a OMV 4 test system. i ll learn this.

    Thanks.

  • hey guys, tried to upgrade from 4 to 5 and got that output.


    Edit: Any suggestions ho i can fixe that? sorry absolute noob here


  • reinstall can be done via be repeating below steps for each package in the list displayed as user root or by pre-pending "sudo"

    1. apt uninstall <Package from list>
    2. apt install <Package from list>

    omv 6.0.8 (Shaitan) on RPi CM4/4GB with 64bit Kernel 5.10.63

    2x 6TB 3.5'' HDDs formatted with ext4 via 2port PCIe SATA card with ASM1061R chipset providing hardware supported RAID1


    omv 5.6.21-1 (usul) on RPi4/4GB with Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 3TB 3.5'' HDDs formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

Participate now!

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