How to expand 4x2TB Raid 5 Array to 4x4TB ?

    • OMV 2.x
    • Resolved

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

    • How to expand 4x2TB Raid 5 Array to 4x4TB ?

      Hello,

      recently, i made a NAS with OMV 2.2, 4x2TB and a SSD on my HP microserv gen8. It works fine.

      After loading it and getting an almost full storage, i decided to replace each 2TB hdd by 4TB hdd, one by one, step by step.


      1st, i shutdown, then get out the 1st 2TB HDD, then replace by a 4TB HDD, then start, then add physical disk, regenerate and after 4 steps, i get a new 5,5TB volume with 4x4TB array.

      i would like to grow the volume to maximum capacity. I can not to this capacity extension

      what i did:

      i go to Raid managment module, select the relevant volume, and then i click on Grow button. but nothing appears.

      Source Code

      1. Release: 2.2.13
      2. Codename: Stone burner
      3. ----
      4. Raid Level : raid5
      5. Array Size : 5860148736 (5588.67 GiB 6000.79 GB)
      6. Used Dev Size : 1953382912 (1862.89 GiB 2000.26 GB)
      7. Raid Devices : 4
      8. Total Devices : 4
      9. Persistence : Superblock is persistent
      10. Update Time : Thu Feb 2 19:09:52 2017
      11. State : clean
      12. Active Devices : 4
      13. Working Devices : 4
      14. Failed Devices : 0
      15. Spare Devices : 0
      Display All
      What do i have to do to get a new volume, extended to a 4x4TB array :?:

      thanks.

      Genna
    • hello @Fambank, no i didn't read it, but i 'll read it. (Edit: DONE !! )

      thanks for the link, very helpfull. Exactly what i was looking for :)

      i have some difficulties to foundout what i am looking for in this forum, i can't really see if i am in the right section.
      On my OMV 2.x webgui, in help section, the links go to the Wiki OMV 3 or documentation, but all is empty.

      so thanks, i will read this.

      as i am used with NAS from Synology, MyCloud, Netgear and their webguis have an automatic feature to grow up the partition or volume, i was sure that i found it in OMV but not really.

      Edit:

      i run ssh session, connected as root

      then,


      Source Code

      1. mdadm --detail /dev/md*


      i get this answer:

      Source Code

      1. /dev/md0:
      2. Version : 1.2
      3. Creation Time : Mon Jan 23 19:16:46 2017
      4. Raid Level : raid5
      5. Array Size : 5860148736 (5588.67 GiB 6000.79 GB)
      6. Used Dev Size : 1953382912 (1862.89 GiB 2000.26 GB)
      7. Raid Devices : 4
      8. Total Devices : 4
      9. Persistence : Superblock is persistent
      10. Update Time : Thu Feb 2 19:21:50 2017
      11. State : clean
      12. Active Devices : 4
      13. Working Devices : 4
      14. Failed Devices : 0
      15. Spare Devices : 0
      16. Layout : left-symmetric
      17. Chunk Size : 512K
      Display All
      then i run this command:

      Source Code

      1. mdadm --grow /dev/md0 --size=max
      and i get this answer:

      Source Code

      1. mdadm: component size of /dev/md0 has been set to 3906887168K
      and on my OMV webgui, i can see immediately that re-sync starts.

      Source Code

      1. Version : 1.2
      2. Creation Time : Mon Jan 23 19:16:46 2017
      3. Raid Level : raid5
      4. Array Size : 11720661504 (11177.69 GiB 12001.96 GB)
      5. Used Dev Size : 3906887168 (3725.90 GiB 4000.65 GB)
      6. Raid Devices : 4
      7. Total Devices : 4
      8. Persistence : Superblock is persistent
      9. Update Time : Thu Feb 2 20:31:28 2017
      10. State : active, resyncing
      11. Active Devices : 4
      12. Working Devices : 4
      13. Failed Devices : 0
      14. Spare Devices : 0
      15. Layout : left-symmetric
      16. Chunk Size : 512K
      17. Resync Status : 50% complete
      Display All

      THANK YOU For your Quick and Helpful answer :)

      Genna

      The post was edited 4 times, last by Genna ().

    • Hello,

      do i need to do something else ? Yes. I have to use the Resize Button present in System Files Module.

      So, just before, the Raid 5 array with 4x4TB hdd has its maximum size. Process on md0 is done.

      In Raid Management module, the volume size is bigger than previous size. The wanted size, is now 10,92TiB.

      Display Spoiler
      Version : 1.2
      Creation Time : Mon Jan 23 19:16:46 2017
      Raid Level : raid5
      Array Size : 11720661504 (11177.69 GiB 12001.96 GB)
      Used Dev Size : 3906887168 (3725.90 GiB 4000.65 GB)
      Raid Devices : 4
      Total Devices : 4
      Persistence : Superblock is persistent

      Update Time : Fri Feb 3 07:49:29 2017
      State : active
      Active Devices : 4
      Working Devices : 4
      Failed Devices : 0
      Spare Devices : 0

      Layout : left-symmetric
      Chunk Size : 512K


      Now, in the File System module, i choose the Resize button, and i head hdds working but any message or new popup window to say 'job is started'... So i thought i did not click and i clicked again. Then a error message that says the process can not be run. In fact, the resize process already run :)

      I heard the HDDs working. And in File systems module, i can see the size growing up, after a moment. a "Work in progress message" would be fine in this case.

      I will have some new questions in a close future... but for the moment, it is good. Thanks.