Adding a drive to Raid5

    • OMV 1.0

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • resize2fs is exclusively for ext2/3/4 file systems. For xfs you would indeed use the xfs_growfs command. The command should be available on OMV.

      Procedure is almost identical to your previous topic (Extend Raid5) minus the last part :

      Source Code

      1. ​mdadm --grow /dev/mdX --raid-devices=4 --add /dev/sdY
      2. pvresize /dev/mdX
      3. vgdisplay
      4. lvextend -l +100%FREE <logical vol path>
      5. xfs_growfs <logical vol path>


      As stated in the above mentionned topic, 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 grow FS) should be possible from webgui.

      :!: 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.
    • You can do it from the omv webUI.

      First grow the raid5 array by adding the new device, once it finishes reshaping, you will need to grow the physical volume.

      From the cli you can grow the pv with pvresize /dev/md0, after refreshing the ui, it should display the new size for pv, also for the vg. From there you can extend from the webUI the logical partition.

      Finally you can go to file system section and press the resize option.

      If you don't feel to sure about this, you can try first in a virtual machine. So you can play around with the procedure.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server

      The post was edited 1 time, last by subzero79 ().