RAID 5 shrink array

    • OMV 2.x
    • RAID 5 shrink array

      I believe my problem is unique.

      Source Code

      1. root@openmediavault:~# blkid
      2. /dev/sda1: UUID="af782114-bc98-4558-8046-1cba921ff1a5" TYPE="ext4"
      3. /dev/sda5: UUID="7c81c3d6-63ce-47cd-b562-0574f02b1cc3" TYPE="swap"
      4. /dev/sdc: UUID="a8dea49c-6d89-522a-2e18-e7c4d0ebe820" UUID_SUB="859e1f6a-7f93-41 7c-8a7c-1c565c996b53" LABEL="openmediavault:OMV2" TYPE="linux_raid_member"
      5. /dev/sdd: UUID="a8dea49c-6d89-522a-2e18-e7c4d0ebe820" UUID_SUB="0e1243f5-a933-09 fe-810c-6422953f5766" LABEL="openmediavault:OMV2" TYPE="linux_raid_member"
      6. /dev/sde: UUID="a8dea49c-6d89-522a-2e18-e7c4d0ebe820" UUID_SUB="cd1a5556-e57c-3e 49-ad6e-3155129fb320" LABEL="openmediavault:OMV2" TYPE="linux_raid_member"
      7. /dev/md8: LABEL="Internal2" UUID="5a83be57-f975-4367-b2bd-764905a6a6f9" TYPE="xf s"
      8. /dev/sdb: UUID="a8dea49c-6d89-522a-2e18-e7c4d0ebe820" UUID_SUB="87e57a4b-c17a-81 b1-d717-487576c198dc" LABEL="openmediavault:OMV2" TYPE="linux_raid_member"
      9. /dev/sdh: UUID="a8dea49c-6d89-522a-2e18-e7c4d0ebe820" UUID_SUB="b595c6f9-46b5-7f 0d-a8a2-3b047dc935d8" LABEL="openmediavault:OMV2" TYPE="linux_raid_member"
      10. /dev/sdi: UUID="a8dea49c-6d89-522a-2e18-e7c4d0ebe820" UUID_SUB="a40f35e3-e1e1-d1 05-32db-43de9f9464a1" LABEL="openmediavault:OMV2" TYPE="linux_raid_member"
      11. /dev/sdg1: LABEL="ID2" UUID="94a293dc-3f3c-4a8e-b73c-e2b62dfe60f3" TYPE="xfs"
      Display All


      Source Code

      1. root@openmediavault:~# cat /proc/mdstat
      2. Personalities : [raid6] [raid5] [raid4]
      3. md8 : active raid5 sdi[5] sdh[4] sdc[0] sdb[3] sde[2] sdd[1]
      4. 19534435840 blocks super 1.2 level 5, 512k chunk, algorithm 2 [6/6] [UUUUUU]
      5. unused devices: <none>

      My main goal is to use LUKS in which I need to shrink my array from 6 drives to 3 and create a 2nd RAID5, Install LUKS, then rsync data, then wipe remaining 3 drives, then readd those to the 2nd array. So is this even possible using the xfs file system?
      OMV1: OMV 2.2.1 - Intel Xeon "E5530" @ 2.4 GHz - 48 GB DDR3 ECC 800 - 18.19 TB Software Raid 5

      Desktop:
      Win 10 Pro - AMD A10-5800 APU @ 3.8 GHz - 16 GB DDR 3 1866 - 600 GB
    • just an update for anyone else with same unique circumstances, to solve this, I ended up hooking back up some old HDD that were removed from OMV a few weeks ago, set-up a 2nd RAID array, copied data, then turned on my LUKS encryption, then copy data back. . . . sounds like alot of work and it is, but worth it if i actually "NEED" my data drives to be encrypted one day :)
      OMV1: OMV 2.2.1 - Intel Xeon "E5530" @ 2.4 GHz - 48 GB DDR3 ECC 800 - 18.19 TB Software Raid 5

      Desktop:
      Win 10 Pro - AMD A10-5800 APU @ 3.8 GHz - 16 GB DDR 3 1866 - 600 GB
    • apparently I broke something. . . .
      this is what happens when access web interface

      Source Code

      1. Error #3008:
      2. exception 'OMVException' with message 'Failed to load configuration (Warning 1549: failed to load external entity "/etc/openmediavault/config.xml" (line=0, column=0))' in /usr/share/php/openmediavault/config.inc:577
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/env.inc(22): require_once()
      5. #1 /var/www/openmediavault/index.php(23): require_once('/usr/share/php/...')
      6. #2 {main}


      re-wrote config via:

      Source Code

      1. omv-mkconf fstab

      and that made no difference.

      wondering if i should just reinstall OMV and start from scratch?
      OMV1: OMV 2.2.1 - Intel Xeon "E5530" @ 2.4 GHz - 48 GB DDR3 ECC 800 - 18.19 TB Software Raid 5

      Desktop:
      Win 10 Pro - AMD A10-5800 APU @ 3.8 GHz - 16 GB DDR 3 1866 - 600 GB
    • Somethings wrong with your config.xml, is it still there?

      ​ls -la /etc/openmediavault/

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Source Code

      1. root@openmediavault:~# ls -la /etc/openmediavault/
      2. total 144
      3. drwxr-xr-x 2 openmediavault openmediavault 4096 Apr 3 01:21 .
      4. drwxrwxr-x 98 root root 4096 Apr 3 10:21 ..
      5. -rw------- 1 root root 35821 Apr 2 23:50 config.xml
      6. -rw------- 1 root root 32275 Apr 3 01:09 config.xml.2
      7. -rw-r--r-- 1 openmediavault openmediavault 67028 Mar 14 2014 php.ini


      i modified the config.xml and saved it as config.xml.2 so the orig one should be orig one the *.xml.2 is my modified one
      OMV1: OMV 2.2.1 - Intel Xeon "E5530" @ 2.4 GHz - 48 GB DDR3 ECC 800 - 18.19 TB Software Raid 5

      Desktop:
      Win 10 Pro - AMD A10-5800 APU @ 3.8 GHz - 16 GB DDR 3 1866 - 600 GB

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

    • well somewhere between the latest update to OMV and/or setting up the LUKS i see a 30% drop in read speed at best. . . . but just today i ran hdparm on the LUKS array and the other. . . . maybe my bottleneck is in the IOCREST SATA controllers. Any input would be appreciated.

      Source Code

      1. root@openmediavault:~# hdparm -t /dev/sda
      2. /dev/sda:
      3. Timing buffered disk reads: 160 MB in 3.05 seconds = 52.38 MB/sec
      4. root@openmediavault:~# hdparm -t /dev/md126
      5. /dev/md126:
      6. Timing buffered disk reads: 886 MB in 3.01 seconds = 294.45 MB/sec
      7. root@openmediavault:~# hdparm -t /dev/mapper/md127-crypt
      8. /dev/mapper/md127-crypt:
      9. Timing buffered disk reads: 300 MB in 33.73 seconds = 8.89 MB/sec
      10. root@openmediavault:~#
      Display All


      [IMG:http://forums.openmediavault.org/index.php/Attachment/4244-Screenshot-9-png/]
      Images
      • Screenshot (9).png

        144.82 kB, 1,360×768, viewed 370 times
      OMV1: OMV 2.2.1 - Intel Xeon "E5530" @ 2.4 GHz - 48 GB DDR3 ECC 800 - 18.19 TB Software Raid 5

      Desktop:
      Win 10 Pro - AMD A10-5800 APU @ 3.8 GHz - 16 GB DDR 3 1866 - 600 GB