OMV create raid5 without partitions - bad or good practice ?

  • When I have started to work with linux raid, there was in that time recommendation to create equal partitions on all disks that will participate in Software RAID (1, 5, 6 ...) ans after that you had to assemble raid using example command bellow:


    mdadm --create /dev/md0 --level=5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1


    On OMV I can see that is creating raid without using partitions, so it is using similar command as bellow.



    mdadm --create /dev/md0 --level=5 --raid-devices=4 /dev/sda /dev/sdb /dev/sdc /dev/sdd


    Reason for my question is in case that we have done change of some failed disk with different manufacturer of disk (like we are replacing WD RED with Seagate), on sticker it is a "same size" but in real world (I am a former HPE engineer) I have seen that it is not a case to have same size (can diff in couple of bytes ...) ...


    Because of that it is possible that there will be issue with assembly of raid, if there is diff size of disks.


    So my question is did you have any similar issues, and how did you resolve it ?

    omv 5.0.14 (Usul) | 64 bit | omvextrasorg 5.1.4 | Docker 5:19.03.4~3-0~debian-buster
    HP Microserver Gen8 | Xeon E3-1260L | 8 GB memory | 4x 3TB WD Red | Samsung 840 120GB EVO (OS) | Intel NVMe 256GB SSD (Docker)

    Edited once, last by mkomac ().

  • Hello,


    I am not an expert in the creation / management of RAID, but currently I am in the same configuration as you (a RAID5 on 4 disks with partitions)


    I ordered new disks to remake my RAID 5 and I will do it on LVM (so without partition) because it's really much more flexible if you want to add volume in your VG and your LV.


    Currently I have this configuration, but as I have a project to redo everything under VMware I think about how to do

    AMD Ryzen 5 2400G on Asus TUF B450M-PLUS - 8Gb RAM - 3 * 3To RAID5 on LSI Megaraid SAS 9260-8i and 3 SSD in Fractal Design Node 804 Black
    OS: OMV 4.1.26-1

  • @Methy, I don't really see the point of using LVM+RAID+{your filesystem of choice} instead of ZFS. Have you considered it?

    My tree is quite old and this raid came from a former Synology NAS
    The LVM is relatively convenient to extend a Volume Group then Logical Volume easily into a VM when your FS is full.


    Currently I have not tested the ZFS, I do not know what gives performance level compared to a physical raid5 on a RAID card.
    But I have a friend who uses it and who is happy. I will try one day :)
    I have my old disks of my raid software that are available, I will do a ZFS raid to compare.

    AMD Ryzen 5 2400G on Asus TUF B450M-PLUS - 8Gb RAM - 3 * 3To RAID5 on LSI Megaraid SAS 9260-8i and 3 SSD in Fractal Design Node 804 Black
    OS: OMV 4.1.26-1

Participate now!

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