Extend Raid5

  • Hi crisman


    extending Raid 5 with a disk is not recommended you can have data corruption or even worse data loss.
    the best way is to build a new raid and than migrate the data on the existing raid.


    greats steel

    gr. steel


    Cooler Master CM 690 III with 650 watt 80+ gold power supply
    AMD A8-5600k processor
    8 GB ddr 3 1333 ram
    crusial 120 ssd
    5 x 2 TB WesternDigital red harddrive in raid 5
    2 intel 1000mT nic's
    latest OMV stone burner

    lets get cooking .....
    don't be afraid of learning it can be fun

  • Hi steel2400,


    I understand your concerns, but I don't have more space to make a backup of the files on that volume to create a new empty volume, I've done on several server RAID 5 expand but on hardware controllers and with Windows OS without any problems, I would like to know if someone here has already done it and the best procedures?


    Regards.

  • Oke i understand good luck with your end-ever


    greats steel

    gr. steel


    Cooler Master CM 690 III with 650 watt 80+ gold power supply
    AMD A8-5600k processor
    8 GB ddr 3 1333 ram
    crusial 120 ssd
    5 x 2 TB WesternDigital red harddrive in raid 5
    2 intel 1000mT nic's
    latest OMV stone burner

    lets get cooking .....
    don't be afraid of learning it can be fun

  • Well, it's kind of hard to answer with the scarce details you've provided ...


    Providing the output of the following interrogation commands would help:


    Code
    df -h
    mdadm --detail /dev/md*
    cat /proc/mdstat
    pvdisplay
    vgdisplay
    lvdisplay


    But assuming you have an ext4 filesystem on top of LVM which is itself on top of a mdadm array of 3 drives in raid5, it would look something like that:


    Code
    mdadm --grow /dev/mdX --raid-devices=4 --add /dev/sdY
    pvresize /dev/mdX
    vgdisplay
    lvextend -l +100%FREE <logical vol path>
    resize2fs  <logical vol path>


    :!: Warning: after issuing the mdadm grow command, you should wait for the raid array to complete rebuilding before extending the lvm and filesystem. It could take several hours or a couple of days depending on your array size.


    I strongly advise, beside having a backup, that you test this in a virtual machine to avoid any data loss. I won't be held responsible if you loose any data.

    • Offizieller Beitrag

    Did you try adding a drive and clicking the Grow button?

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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!

  • Of course you can extend the RAID via your GUI.


    Shut your NAS down, plug in the new HDD, boot OMV, format the single new HDD, click your Raid and then click the extend button.
    If you need more detailed information, feel free to ask :)

    • Offizieller Beitrag

    Try it in a VM first. Then you know what it does :)


    @WastlJ No need to format the drive if you are going add to raid :)

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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

    You may have to Wipe the drive (if it is not new) but not format it. If you format it (which adds a filesystem), it definitely won't show up in the add dialog.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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!

  • You should be able to grow the raid by adding the disk in the webgui, but you won't be able to resize the Physical Volume since the LVM plugin only allows creation/deletion of a PV. For that part you will have to do it from command line. The rest (extend LV then resize FS) should be possible from webgui.

  • Hi Guys,


    Only today I had time to resize my Raid5 volume, after 5 hours resizing I extended the LVM physical and logical volumes, now I'm in the middle of resizing the file system on the GUI but I cannot see any progress bar or something telling me that is resizing only after a few pages refresh I can see the fs volume size growing, I think that we should have something indicating that the fs resizing was in progress.
    Well lets wait to finish but until now its working fine without any errors!


    Thanks.

Jetzt mitmachen!

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