Split OMV7 disk to 2 disks ?

  • Hi all,

    To secure, improve and facilitate my system backup / restore procedure of OMV7, I would like to change my current disk configuration.

    Today I have OMV7 installed on a RPI4 and a bootable 1 TB NVME m.2.

    3 partitions on the disk /dev/sda :

    • /dev/sda1 : ? (I don't know what this very small partition is for and if it is mandatory in the Linux disk configuration)
    • /dev/sda2 : 34 GB. Only System/OMV.
    • /dev/sda3 : 900 GB. Only data (frigate, onedrive, media, user-data)

    The goal is to split and clone these 2 (or 3 if we consider /dev/sda1 ?) partitions from 1 disk to 2 disks :

    • A bootable 64 GB SDD for system only : /dev/sda2 (and /dev/sda1 ?)
    • the nvme m.2 (1 TB) for only the data : /dev/sda3

    This will allow me to make an easy backup of the system before OMV and Linux updates by cloning the entire system disk.

    Is this possible and what is the easiest way to do this and with what tools?

    All this without losing if possible the SSH configurations (shell commands from another RPI4 with Home assistant) and my shared folders


    Thank you for your help

    • Official Post

    Have you looked at omv-regen or the openmediavault-timeshift or openmediavault-backup plugins?

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

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | 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!

  • I only use backup plugin (fsarchiver) but never tried to restore …

    Will look at omv-regen that seems to be useful.


    Do you advise to keep only one disk with system and data partitions or separate system and data on 2 disks ?

    • Official Post

    Do you advise to keep only one disk with system and data partitions or separate system and data on 2 disks ?

    The design of OMV is to separate the OS and data. That way an OS disk failure doesn't cause any data loss. This is what I do on my systems.

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

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | 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!

  • Hello,

    After several days of hard work, I now have on my RPI 1 SSD (64 GB) for system with OMV and another SSD (1TB) for my data.

    I used omv-regen and a lot of manual manipulation to copy all my scripts and configuration files for swag, frigate, home assistant, ... and review all the settings in OMV for the file system, shared files, ...


    But I still have several problems that I can’t solve:


    1) impossible to run the mail server. At startup, error "Failed to start postfix@-.service - Postfix Mail Transport agent (Instance _)". Tried to disable and enable notifications in OMV, but no success.


    2) mount point errors in the log:

    "monit[1080]: Aborting queued event '/var/lib/monit/events/1738346504_55a1100e20' - service mountpoint_srv_dev-disk-by-uuid-4400f7dd-3867-4121-b8c6-3a60946d7682 not found in monit configuration "

    "srv_dev-disk-by-uuid-4400f7dd-3867-4121-b8c6-3a60946d7682" corresponds to the old disk on which OMV was installed before rebuilding on the new disks and which is no longer connected.


    3) I also had several times freezes and failures at startup. It seems that they occur most often when I connect my 2 new disks to the 2 USB3 ports of the RPI4 ...


    Any ideas please?

    Thank you

  • 1) impossible to run the mail server. At startup, error "Failed to start postfix@-.service - Postfix Mail Transport agent (Instance _)". Tried to disable and enable notifications in OMV, but no success.

    sudo omv-salt deploy run postfix


    2) mount point errors in the log:

    "monit[1080]: Aborting queued event '/var/lib/monit/events/1738346504_55a1100e20' - service mountpoint_srv_dev-disk-by-uuid-4400f7dd-3867-4121-b8c6-3a60946d7682 not found in monit configuration "

    "srv_dev-disk-by-uuid-4400f7dd-3867-4121-b8c6-3a60946d7682" corresponds to the old disk on which OMV was installed before rebuilding on the new disks and which is no longer connected.

    sudo cat /etc/openmediavault/config.xml | grep 4400f7dd


    If it is still mentioned there, you will need to remove the complete snippet

    <mntent><\mntent> that refers that disk.

    The proper way is to do it on the GUI by removing any reference on it and remove it after.


    You can then, run

    sudo omv-salt deploy run monit

  • 3) I also had several times freezes and failures at startup. It seems that they occur most often when I connect my 2 new disks to the 2 USB3 ports of the RPI4 ...

    Are those drives self-powered or taking power from the USB port?

  • sudo omv-salt deploy run postfix

    Thank you very much for your help.


    But it was not enough. I saw in the log the message "fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied". Removing this file has solved the postfix issue and postfix now works.

    I tried this, but still the same problem.

    I then deleted all the files in the /var/lib/monit/events directory. And it's now ok. No more mount point errors in the log.


    Are those drives self-powered or taking power from the USB port?

    They are both taking power the USB port ... Seems to be a problem with the USB3 (several posts related to this issue). I tried to connect the 2 drives to the USB2 port and no problem at this moment.

    I am considering purchasing a powered disk case but I would like to be sure that this will solve the problem and that it is not related to a problem with the RPI4 and using 2 disks on the USB3 ports...?

    I

  • They are both taking power the USB port

    Then, you have your answer.

    The Pi can't handle that much power on the USB ports.

    Your drives need to have their own power.


    You can check if it's having under-voltage hits:

    vcgencmd get_throttled

    dmesg | grep voltage

    I tried to connect the 2 drives to the USB2 port and no problem at this moment.

    This is even worst.


    The USB3 port can deliver 900mA @ 5v while USB2 only delivers 500mA

    One single portable drive will pull that. Putting 2 on the same BUS and you will have problems.


    The Pi is not built to be a NAS, if not in use with proper equipment/devices.


    If you value your DATA, think through on how to continue.


    I am considering purchasing a powered disk case but I would like to be sure that this will solve the problem and that it is not related to a problem with the RPI4 and using 2 disks on the USB3 ports...?

    You will need a proper self-powered box, in order to have it running without errors.

    And the one's from Icybox or Fantec run flawless.


    Don't go buying BS caddies from Alienexpress or similar

  • Do you think Icy Box IB-377-C31 or IB-377U3 could be a good idea ?

    https://www.amazon.fr/Bo%C3%AE…stique/dp/B07JFY2357?th=1

    I don't know that one but I used, for a long time these without any issues

    IB-3740-C31 | ICY BOX - Create Your Workspace

    It was a bit difficult to use a 3,5" HDD on the bottom rail but I had 3x 3,5" HDD and 1xSSD


    IB-RD3621-C31 | ICY BOX - Create Your Workspace

    The box has RAID capabilities but it's better to use it as JBOD to have the 2x disks shown on OMV

  • FYI, after a long period of testing and thinking, I decided to make it simple and keep my current configuration which works very well without an additional disk case and power supply: 1 single nvme disk on 1 usb3 port with 3 partitions, boot, system (OMV), data.


    My data are not critical (pictures, movies, music) because I have multiple local backups on external disks, on my pcs and in the cloud (onedrive). I only need to be able to restore quickly my OMV configuration in case of a problem.


    I finally found a simple backup and especially restoration procedure. I cloned my complete nvme ssd onto a smaller ssd having previously reduced the data partition to a minimum with Gparted. I got a backup ssd that I can use in case of a problem as a replacement or I can restore separately with Clonezilla the boot and OMV partitions of my backup ssd on the original nvme.


    Thank you for your help

Participate now!

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