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.

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

    omv 5.6.6 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.1
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    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 :-)

  • 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 5.6.6 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.1
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • 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 5.6.6 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.1
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    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.

Participate now!

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