System update with omv-update completetly uninstalled OMV!

  • Basically what the title says...


    I haven't updated my system for a while and today decided it was time to do it. Since there were a lot of packages to update, I opted to do it via the command line instead of the web interface so I could better track the update progress.


    I used sudo omv-update to start updating the system.


    Well, now I don't even have OMV installed anymore and I don't know how to fix it...


    Here's the package state of my system:



    And when I try to install OMV with sudo aptitude install openmediavault:



    I don't know how to properly answer this...


    What can I do to get my system up and running as before?

  • Ok, I think I now understand how this all happened...


    My sources.list file contained the word "stable" instead of "wheezy" which I didn't realize it meant Debian 8.0 "Jessie" (which OMV does not support). So, the reason there were "a lot of packages to update" is more clear now and I've done something I shouldn't have. Without realizing it, I just screwed up my whole system.


    Now, I believe all my configuration files are still intact so... Is there a way to simply downgrade all packages to the latest stable version from Wheezy? I since changed my sources.list to "wheezy" instead of "stable" and ran "sudo apt-get update". This way I could just properly reinstall OMV and hope for the best.


    If not, my second approach (and probably the recommended one anyway) is to restore my old backup (from March 14th) from the Backup plugin. It's one of those backups where grub.dd, grub_parts.dd, packages and uuids files exists in the root backup folder. I have read the restore guide, but I'm still confused by a few of the commands and how to properly do the restore process without messing the system further.


    For the record, here's my block devices:



    sda is the main system drive and sdb is where I store lots of stuff, including the system backup.


    Since this backup is from March 14th, I've made some configuration changes to some applications that I'd like to keep. They are all stored at /home so my question is, how do I restore the system without touching the /home partition?

  • Given my disk structure above, I'm confused by the following commands in the restore guide:


    Zitat

    mkfs.ext4 /dev/sda1


    cat /mnt/backup/uuids
    tune2fs /dev/sda1 -U uuid_from_above


    mount /dev/sda1 /mnt/gentoo
    rsync -aAXv /mnt/backup/* /mnt/gentoo/ --exclude=/lost+found


    Mainly because I have lots of /sdaX not just /sda1.


    Here's the output from my uuids file:


    Code
    amaral@ATLASBOX:/$ cat /media/3TBXFS/Backups/ATLASBOX/OpenMediaVault-Debian/uuids
    /dev/sda2: LABEL="SEVEN" UUID="86B4F666B4F6585F" TYPE="ntfs"
    /dev/sda3: LABEL="System Reserved" UUID="10E8F005E8EFE6C6" TYPE="ntfs"
    /dev/sdb1: LABEL="3TBXFS" UUID="4d98f9b3-512f-4d8b-96c6-4c6c4caaab40" TYPE="xfs"
    /dev/sda6: UUID="23954a7e-ecc4-4603-a749-f265f6b5878c" TYPE="swap"
    /dev/sda7: UUID="5954dbcf-99b9-4822-95cd-04dd7589f854" TYPE="ext3" LABEL="HOME" SEC_TYPE="ext2"
    /dev/sda5: UUID="f585b441-b3a4-465c-9ffc-bbd063ac568e" TYPE="ext3"


    Also, you can see above that /media/3TBXFS = /dev/sdb1 and that /Backups/ATLASBOX/OpenMediaVault-Debian/ is where my backup is located.


    Please help me get the restore commands right before I attempt to do anything...

    • Offizieller Beitrag

    Hard to say what the right partition is on a non-standard install. Post the output of: cat /etc/fstab

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.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!

  • So I just tried to follow your guide but since I was not going to restore to a new disk (but to the same one) I skipped a lot of steps. Basically mounted and ran rsync. I was only missing the grub-install step which gave me a few errors and it didn't work.


    I then decided to try the guide again with a few more steps and the "dd if=/mnt/backup/grub_parts.dd of=/dev/sda bs=512 count=1" command screwed it up even further because after that I no longer had /dev/sdaX (only /dev/sda) and because of that I couldn't continue...


    I'm going to bed now since it's late here... If I don't get an answer from you with an easy way out of this (there probably isn't one) when I woke up in the morning, I'll just install everything from scratch. I really didn't want to go that route (a lot of packages to install and stuff to configure) but it's probably for the best anyway.


    If only I had paid attention to my sources.list file... :(

    • Offizieller Beitrag

    The guide is what you use for a failed OS drive. If you just wanted to rollback to the backup, you would just mount /dev/sda5 and rsync. No need to repartition or reinstall grub. The other problem with the guide is that it assumes a standard OMV install. It doesn't backup other partitions


    Not sure how messed up everything is now but you could reinstall OMV and rsync the backup over that. No need to reinstall/config plugins. You may have to fix grub locations.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.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!

  • Well, my system needed a fresh install anyways and I've always meant to do it sooner or later (granted I wanted to do it later, but what the hell). For now I have a the base system installed with OMV and now I have to setup everything else, which is going to take a while.


    Since I have a backup, I'll try to use it as reference to restore everything to the previous state.


    Hopefully I've learned something to avoid a similar stupid mistake like that in the future.


    Thanks for your help :)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!