Migrating from Synology to OMV

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

    • Migrating from Synology to OMV

      Hi!
      I migrated synology SHR1 (whitch is radi5). I have 2x3TB and 2x4TB disks and OMV repost 3 RAID5 field in clean/degraded and 1 1TB mirror field in clean status. How to repair degraded fields?

      Source Code

      1. root@openmediavault:~# cat /proc/mdstat
      2. Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
      3. md124 : active (auto-read-only) raid5 sdg6[1] sdf6[4] sdb6[3]
      4. 2930228352 blocks super 1.2 level 5, 64k chunk, algorithm 2 [4/3] [UU_U]
      5. md125 : active (auto-read-only) raid1 sdf8[0] sdb8[1]
      6. 976646528 blocks super 1.2 [2/2] [UU]
      7. md126 : active (auto-read-only) raid5 sdg7[0] sdf7[3] sdb7[2]
      8. 2930228352 blocks super 1.2 level 5, 64k chunk, algorithm 2 [4/3] [U_UU]
      9. md127 : active raid5 sdg5[2] sdf5[5] sdb5[4]
      10. 2916082944 blocks super 1.2 level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      Display All





      Source Code

      1. root@openmediavault:~# blkid
      2. /dev/sda1: UUID="58bd7ef2-8191-4930-8fdf-83d57e514af7" TYPE="ext4" PARTUUID="0560029d-01"
      3. /dev/sda5: UUID="d3efbdbf-e55c-4204-b43e-f22e2481e66b" TYPE="swap" PARTUUID="0560029d-05"
      4. /dev/sdb1: UUID="ed12a335-a74a-8794-89a4-a6da137acadb" TYPE="linux_raid_member" PARTUUID="e316b83d-1166-4a3f-83e2-12b0213f8baa"
      5. /dev/sdb5: UUID="2c0fbd4b-b499-598b-647c-7562ca79126e" UUID_SUB="c347b46b-603c-0bf7-d815-4ca6e379c5df" LABEL="Mali:3" TYPE="linux_raid_member" PARTUUID="65bb1b8f-c929-4c65-9e76-5ab5b69954fa"
      6. /dev/sdb2: UUID="ab80dbaa-1cbd-d67a-89a4-a6da137acadb" TYPE="linux_raid_member" PARTUUID="09972c3e-3db1-44b0-982d-9b9b2adc5711"
      7. /dev/sdb6: UUID="f88a02a4-3246-6391-c7c4-81ad6f3708f3" UUID_SUB="507bf172-d128-a943-d849-914ee567cd19" LABEL="Mali:4" TYPE="linux_raid_member" PARTUUID="dcbcd203-dc53-4758-92f4-9be45a9dd125"
      8. /dev/sdb7: UUID="10307afc-5e30-aa94-681c-b797025d48c7" UUID_SUB="81b18ac6-6d20-560a-5530-235ccc5c2631" LABEL="Mali:2" TYPE="linux_raid_member" PARTUUID="e6d40f63-9cfa-4887-a85a-bc53de104eba"
      9. /dev/sdb8: UUID="ef0eb778-0041-d3df-de35-a4d1a7539a58" UUID_SUB="9604f310-cfef-eda4-3e5a-7ff8cc27a24c" LABEL="Mali:5" TYPE="linux_raid_member" PARTUUID="c81c2087-1854-41ac-b7f5-33cb70418f9c"
      10. /dev/md127: UUID="z3Ojhb-bzjg-jRVO-U9L8-331V-yhqv-W45c6t" TYPE="LVM2_member"
      11. /dev/md126: UUID="cXQbNb-FEPp-Pfwz-TJUp-B2gr-juMx-UI01tO" TYPE="LVM2_member"
      12. /dev/md125: UUID="Z20bq7-MPDC-oKyh-aUGt-0IRO-dcl8-0uuOTS" TYPE="LVM2_member"
      13. /dev/md124: UUID="KN3zCe-bSO3-GpgR-Qg8I-3p5X-j8zZ-1gyiAk" TYPE="LVM2_member"
      14. /dev/sde1: UUID="ed12a335-a74a-8794-89a4-a6da137acadb" TYPE="linux_raid_member" PARTUUID="1ce268f2-b492-4c8c-b55e-b13514185d17"
      15. /dev/sde2: UUID="ab80dbaa-1cbd-d67a-89a4-a6da137acadb" TYPE="linux_raid_member" PARTUUID="3805d278-ea24-4417-9176-9eb92ff84f3d"
      16. /dev/sde5: UUID="2c0fbd4b-b499-598b-647c-7562ca79126e" UUID_SUB="acd1d02c-41a4-e18d-c08e-ff4478e9c341" LABEL="Mali:3" TYPE="linux_raid_member" PARTUUID="c529a239-9756-4e05-9078-2953feffc620"
      17. /dev/sde6: UUID="f88a02a4-3246-6391-c7c4-81ad6f3708f3" UUID_SUB="5d211ceb-7ca4-4e4b-add1-ff87cc245914" LABEL="Mali:4" TYPE="linux_raid_member" PARTUUID="54b4dddb-2011-4380-ab93-02e7425d52c4"
      18. /dev/sde7: UUID="10307afc-5e30-aa94-681c-b797025d48c7" UUID_SUB="6425cc45-ae10-0225-4fc2-862aceb8cf08" LABEL="Mali:2" TYPE="linux_raid_member" PARTUUID="088653e9-834d-430e-871d-90040f352cd9"
      19. /dev/sdf1: UUID="ed12a335-a74a-8794-89a4-a6da137acadb" TYPE="linux_raid_member" PARTUUID="14aabed5-c037-4bb8-8f81-5ef2c7d8adbf"
      20. /dev/sdf2: UUID="ab80dbaa-1cbd-d67a-89a4-a6da137acadb" TYPE="linux_raid_member" PARTUUID="8c33c9f1-3cb1-49d9-a04c-99fd140c9382"
      21. /dev/sdf5: UUID="2c0fbd4b-b499-598b-647c-7562ca79126e" UUID_SUB="9051e837-fe8f-beb7-18ce-5a650e0f3cba" LABEL="Mali:3" TYPE="linux_raid_member" PARTUUID="61fd1985-dc8e-4491-9af8-cdbd74a2bb73"
      22. /dev/sdf6: UUID="f88a02a4-3246-6391-c7c4-81ad6f3708f3" UUID_SUB="f7ef2572-8940-9a9c-212c-9605d1f014a3" LABEL="Mali:4" TYPE="linux_raid_member" PARTUUID="b78677db-fcde-4f71-a6b4-7e2dcd4fb656"
      23. /dev/sdf7: UUID="10307afc-5e30-aa94-681c-b797025d48c7" UUID_SUB="3357c64c-8b00-d93f-e8de-256deab3d3ee" LABEL="Mali:2" TYPE="linux_raid_member" PARTUUID="d97d2d47-5d65-48c6-8b04-1cb78cfb2962"
      24. /dev/sdf8: UUID="ef0eb778-0041-d3df-de35-a4d1a7539a58" UUID_SUB="e38d1350-00e8-7945-3e4a-9d10e118797b" LABEL="Mali:5" TYPE="linux_raid_member" PARTUUID="537cf48b-6cf3-4981-8de4-a3428de62cbc"
      25. /dev/sdg1: UUID="ed12a335-a74a-8794-89a4-a6da137acadb" TYPE="linux_raid_member" PARTUUID="7f6ac1b6-1f1a-45cc-8a7e-3abce9dff2e6"
      26. /dev/sdg2: UUID="ab80dbaa-1cbd-d67a-89a4-a6da137acadb" TYPE="linux_raid_member" PARTUUID="77a88b3e-cb10-4ce0-bcfb-8afbb80597b2"
      27. /dev/sdg5: UUID="2c0fbd4b-b499-598b-647c-7562ca79126e" UUID_SUB="8d9f2553-f7bd-acb7-b86d-2bc13dcd3492" LABEL="Mali:3" TYPE="linux_raid_member" PARTUUID="afde82b5-36ef-4ff1-8e8f-aaff6a7ee22f"
      28. /dev/sdg6: UUID="f88a02a4-3246-6391-c7c4-81ad6f3708f3" UUID_SUB="f4e87b50-7eaa-44aa-f113-d2e101051cdc" LABEL="Mali:4" TYPE="linux_raid_member" PARTUUID="30189092-9a70-4a51-8349-46abbd5e9287"
      29. /dev/sdg7: UUID="10307afc-5e30-aa94-681c-b797025d48c7" UUID_SUB="30302cd3-b8dc-9e75-da45-7ce4ba1dd238" LABEL="Mali:2" TYPE="linux_raid_member" PARTUUID="cb42a113-3bbe-4102-9bd4-3c264df8e0d2"
      30. /dev/mapper/vg1001-lv: LABEL="1.41.12-2636" UUID="00dac021-9496-4e74-9506-cf6a1badedc7" TYPE="ext4"
      Display All

      Source Code

      1. root@openmediavault:~# fdisk -l | grep "Disk "
      2. Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
      3. Disk identifier: 0x0560029d
      4. Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
      5. Disk identifier: 9B01C357-2B7F-4CAA-9106-FFA01E79B56B
      6. Disk /dev/md127: 2.7 TiB, 2986068934656 bytes, 5832165888 sectors
      7. Disk /dev/md126: 2.7 TiB, 3000553832448 bytes, 5860456704 sectors
      8. Disk /dev/md125: 931.4 GiB, 1000086044672 bytes, 1953293056 sectors
      9. Disk /dev/md124: 2.7 TiB, 3000553832448 bytes, 5860456704 sectors
      10. Disk /dev/sde: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
      11. Disk identifier: 2ED77381-9996-4A99-B9B0-5F10E71B1162
      12. Disk /dev/sdf: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
      13. Disk identifier: AF8AE992-C030-420C-9353-420CFC5CF598
      14. Disk /dev/sdg: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
      15. Disk identifier: 8ACF5028-760B-4FD8-81A5-167A34D29BA2
      16. Disk /dev/mapper/vg1001-lv: 9.1 TiB, 9987250192384 bytes, 19506348032 sectors
      Display All

      Source Code

      1. root@openmediavault:~# cat /etc/mdadm/mdadm.conf
      2. # mdadm.conf
      3. #
      4. # Please refer to mdadm.conf(5) for information about this file.
      5. #
      6. # by default, scan all partitions (/proc/partitions) for MD superblocks.
      7. # alternatively, specify devices to scan, using wildcards if desired.
      8. # Note, if no DEVICE line is present, then "DEVICE partitions" is assumed.
      9. # To avoid the auto-assembly of RAID devices a pattern that CAN'T match is
      10. # used if no RAID devices are configured.
      11. DEVICE partitions
      12. # auto-create devices with Debian standard permissions
      13. CREATE owner=root group=disk mode=0660 auto=yes
      14. # automatically tag new arrays as belonging to the local system
      15. HOMEHOST <system>
      16. # definitions of existing MD arrays
      Display All

      Source Code

      1. root@openmediavault:~# mdadm --detail --scan --verbose
      2. ARRAY /dev/md/Mali:3 level=raid5 num-devices=4 metadata=1.2 name=Mali:3 UUID=2c0fbd4b:b499598b:647c7562:ca79126e
      3. devices=/dev/sdb5,/dev/sdf5,/dev/sdg5
      4. ARRAY /dev/md/Mali:2 level=raid5 num-devices=4 metadata=1.2 name=Mali:2 UUID=10307afc:5e30aa94:681cb797:025d48c7
      5. devices=/dev/sdb7,/dev/sdf7,/dev/sdg7
      6. ARRAY /dev/md/Mali:5 level=raid1 num-devices=2 metadata=1.2 name=Mali:5 UUID=ef0eb778:0041d3df:de35a4d1:a7539a58
      7. devices=/dev/sdb8,/dev/sdf8
      8. ARRAY /dev/md/Mali:4 level=raid5 num-devices=4 metadata=1.2 name=Mali:4 UUID=f88a02a4:32466391:c7c481ad:6f3708f3
      9. devices=/dev/sdb6,/dev/sdf6,/dev/sdg6