openmediavault-backup - fdisk: cannot open /dev/

  • Hello,


    when trying to backup data using the openmediavault-backup plugin, the following error message ist shown:



    This problem was actuatlly reported back in 2016 for OMV3: Openmediavault-backup errors


    Info: I also use the openmediavault-sharerootfs plugin; maybe this causes a problem with the /dev/mapper/root folder? I use OMV 5.3.9-1

  • toxicdragon

    Hat das Label OMV 5.x hinzugefügt.
    • Offizieller Beitrag

    when trying to backup data using the openmediavault-backup plugin, the following error message ist shown:

    I have tried to get root drive detection to work for years. Some setup like yours (using LVM or LUKS?) is just not going to work. That is why there is a root device override in the plugin form.


    This problem was actuatlly reported back in 2016 for OMV3:

    And if you read that post, I fixed it. Your problem is different.

    nfo: I also use the openmediavault-sharerootfs plugin; maybe this causes a problem with the /dev/mapper/root folder?

    Nope. That doesn't affect anything with the backup plugin. If findmnt -n / | awk '{ print $2 }' doesn't get the correct root device, you will have to specify the root device.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • Hi


    I'm afraid he is not the only one: I use omv 5.6.7.1 and the rood devide is not found as well.

    I tried it twith and without the the openmediavault-sharerootfs plugin. No change.Error #0:


    your code findmnt -n / | awk '{ print $2 }' give me:


    Code
    root@openmediavault:/srv/dev-disk-by-label-vol1# findmnt -n / | awk '{ print $2 }'
    /dev/mapper/terramaster--vg-root
    root@openmediavault:/srv/dev-disk-by-label-vol1# ll /dev/mapper/terramaster--vg-root
    lrwxrwxrwx 1 root root 7 May 18 21:43 /dev/mapper/terramaster--vg-root -> ../dm-0
    root@openmediavault:/srv/dev-disk-by-label-vol1# findmnt -n -o SOURCE /
    /dev/mapper/terramaster--vg-root
    root@openmediavault:/srv/dev-disk-by-label-vol1# sudo cat /etc/fstab | grep '\s\/\s'
    /dev/mapper/terramaster--vg-root /               ext4    noatime,nodiratime,errors=remount-ro 0 1
    root@openmediavault:/srv/dev-disk-by-label-vol1#


    What should I give as "root device" manually? /dev/mapper/terramaster--vg-root is working fine.

    • Offizieller Beitrag

    I'm afraid he is not the only one: I use omv 5.6.7.1 and the rood devide is not found as well.

    I'm not going to try and make the plugin work with every non-standard setup. You are using LVM and that is non-standard. That is why the root override is there.


    Root drive: /dev/

    As you can see, the plugin is trying to get the root device of the LV and just getting /dev (which will never work). Without knowing your drive and volume group setup, I can't give exact info but setting root to /dev/sda (or whatever drive your grub setup is on) would be the best bet. The root device is only used to backup grub and partition info. The latter isn't real useful if you are using LVM.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • Hi


    I don't blame anyone anything. It's just hard to find doc on the plugin what to put where.


    I was not aware I'm using special setup: my debian is on an SSD with default layout. My data on a raid 1 volume consisting out of 2 disks, standard formatted with btfrs on the debian install process. I assume you refer to "btfrs" as "non standard LVM".


    Am I correct the "/dev/terramaster-vg/root" is the root device I should fill in?

    Thanks!


    Johan.

    • Offizieller Beitrag

    It's just hard to find doc on the plugin what to put where.

    What needs to be documented? hard to document something that doesn't really work well with the plugin.


    I was not aware I'm using special setup: my debian is on an SSD with default layout. My data on a raid 1 volume consisting out of 2 disks, standard formatted with btfrs on the debian install process. I assume you refer to "btfrs" as "non standard LVM".

    I consider a standard setup to be what the OMV iso installs. I understand that you can do anything with the debian installer and that it will let you do LVM pretty easily but that is not what I consider standard for OMV. Raid, LVM, btrfs, etc for the OS disk are not standard. If someone wants to write a better backup plugin to support those, great. I just don't have plans to do that since the backup plugin is a pain in the ass to restore as it is.


    Am I correct the "/dev/terramaster-vg/root" is the root device I should fill in?

    raid and lvm... even more fun to the mix. No, If /dev/sdc is where grub is installed, then you would put /dev/sdc in for the root device. The problem is I wouldn't use the grub and partition backups for anything on your setup since they won't be enough to recreate raid and lvm setups.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • Hi


    Thanks for the info.

    For your info: in my setup I had a hard time to install "OMV iso" to a USB stick to put it on my terramaster NAS. I struggled with efi boot support, NIC 10gbit driver support and USB stick creation. So after a while I bought myself an USB enclosure with a SSD. A separate debian install with omv on top seems the most easy way to get the task done. The use of LVM on my OS? -> no particular reason. I can't remember why I choose it over ext4.


    my /boot is indeed on /dev/sdc, a LVM volume.

    • Offizieller Beitrag

    my /boot is indeed on /dev/sdc, a LVM volume.

    grub can't really boot from an LVM volume. That is why you have /dev/sdc2 as a normal filesystem for /boot. /dev/sdc3 is your LVM physical volume.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

    • Offizieller Beitrag

    Raid, LVM, btrfs, etc for the OS disk are not standard. If someone wants to write a better backup plugin to support those, great. I just don't have plans to do that since the backup plugin is a pain in the ass to restore as it is.

    I’m glad to see you say that. I tried the plugin a while back ( I didn’t try very hard) and never could get a working backup. No RAID, LVM, or btrfs here. Just vanilla. I’m happy to stay with dd.

    • Offizieller Beitrag

    ’m happy to stay with dd.

    If you use dd full on the plugin, I'm not sure what would be different than the dd command you are using.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

    • Offizieller Beitrag

    ryecoaaron honestly, I don’t know. Maybe something to do with it being a live backup. Like I said, I didn’t try very hard.

    • Offizieller Beitrag

    Maybe something to do with it being a live backup. Like I said, I didn’t try very hard.

    When you are using dd, is the system running?

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

    • Offizieller Beitrag

    ryecoaaron no. I shut the server down and run dd from my Mac or Linux machines.

    • Offizieller Beitrag

    Well, dd takes a few lines of code and it shuts your server down for about 30 minutes; double that if you make a physical backup to make sure it really works. It’s anything BUT automatic, but it ALWAYS works. :)

    System Backup Typo alert: Under the Linux section the command should be sudo umount /dev/sda1 NOT sudo unmount /dev/sda1

    Backup Data Disk to Backup Disk on Same Machine: In a Scheduled Job:rsync -av --delete /srv/dev-disk-by-uuid-f8814ed9-9a5c-4e1c-8830-426968c20ea3/ /srv/dev-disk-by-uuid-e67439d5-00a3-4942-bd5f-b84ab86aa850/ Don't forget trailing slashes, and BE CAREFUL. (HT: Getting Started with OMV5)

    Equipment - Thinkserver TS140, NanoPi M4 (v.1), Odroid XU4 (Using DietPi): PiHole

  • I am resurrecting an old thread, but it's not that old and it has been revived in the past already.


    I stumbled on the same issue as OP did - due to the omv installer not able to partition the disk, I landed on pure debian and installed omv from deb. For convenience I opted for lvm, but this obiviously breaks the backup plugin. However, I was able to come up with a close equivalent so I am pasting it in case it can be useful for someone. My setup has separate boot and efi partitions, and omv root is on single logical volume.


    I use fsarchiver to be able to restore to a different disk in case of failure. I know lvm is generally not supported, but it gives a great option to use snapshots for safe backups from an unmounted volume rather than forcing fsarchiver to backup live filesystem with -A flag.


Jetzt mitmachen!

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