RAID Mirroring Setup Issue (RPi + OMV 2.2.5)

    • OMV 2.x
    • Resolved

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

    • RAID Mirroring Setup Issue (RPi + OMV 2.2.5)

      Hi,
      I browsed around and apologies if I missed answer.
      I am new to OMV and installed all to an RPi.
      I want to setup a mirroring and I end up with... a blank choice on device on Raid but I do see my two Hdrives.
      All seems nominal...
      Rpi-OMV 2.2.6 (stone burner)
      Linux Kernel 4.4.19v7+
      I have two disks 2Tb on USB attached to it.
      One of the drive is on SMB and I can see and use it fine.... but unable to setup the RAID mirroring...
      Just I got stuck on the RAID creation...
      Any ideas?



      ! Started hacking with ZX81 and I am getting younger everyday like Master Yoda ! ! Raspi is to young generation what ZX81 was to mine ! ! I just love Raspi! Triple bang for the Raspi Foundation ! !And thank you guys for OMV !
    • Not 100% sure but what exactly you want to build raid out of?
      I see that all of your disks are in use.
      If I read the pictures correctly you have 3 devices . Some kind of mmc.. Sda and sdb.
      Mmc is an OS drive right?

      But your sda and sdb are already in use. They are mounted, have labels and all.
      What are you want to build raid on?
      If the sda and sdb have no data. Try this.
      Step one unmount both of them.
      Not sure if you can do that on omv ui, but in cli run gdisk and create new partition table. Nothing else .

      Than in ui, create raid. Once the disks are unmounted and cleared they should come up in raid module as available .

      Sent from my phone
      omv 3.0.56 erasmus | 64 bit | 4.7 backport kernel
      SM-SC846(24 bay)| H8DME-2 |2x AMD Opteron Hex Core 2431 @ 2.4Ghz |49GB RAM
      PSU: Silencer 760 Watt ATX Power Supply
      IPMI |3xSAT2-MV8 PCI-X |4 NIC : 2x Realteck + 1 Intel Pro Dual port PCI-e card
      OS on 2×120 SSD in RAID-1 |
      DATA: 3x3T| 4x2T | 2x1T
    • Hi vl,
      That was the procedure I used on the first try. But it did not work...
      I tried again, unmounted everything but the GUI refuses to show any of physical drive in the RAID setup box it ends up freezing the interface/HTML page of OMV each time... so I guess some pb somewhere...?

      on th syslog I keep getting this error - but sure it is related:

      Source Code

      1. Sep 11 08:49:58 Minerva collectd[5403]: Filter subsystem: Built-in target `write': Dispatching value to all write plugins failed with status -1.
      2. Sep 11 08:49:58 Minerva collectd[5403]: rrdcached plugin: rrdc_update (/var/lib/rrdcached/db/localhost/cpu-3/cpu-interrupt.rrd, [1473576598:0], 1) failed with status -1.


      on Dmesg I get:

      Source Code

      1. tail dmesg -f
      2. [ 15.801327] sd 1:0:0:0: [sdb] No Caching mode page found
      3. [ 15.801344] sd 1:0:0:0: [sdb] Assuming drive cache: write through
      4. [ 15.808144] sdb: sdb1
      5. [ 15.810533] sd 1:0:0:0: [sdb] Attached SCSI disk
      6. [ 16.589993] ip_tables: (C) 2000-2006 Netfilter Core Team
      7. [ 16.615403] ip6_tables: (C) 2000-2006 Netfilter Core Team
      8. [ 17.034948] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
      9. [ 17.034972] brcmfmac: brcmf_add_if: ignore IF event
      10. [ 17.039566] brcmfmac: power management disabled
      11. [ 17.770635] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
      Display All

      my fdisk looks like:


      Source Code

      1. Disk /dev/mmcblk0: 15.5 GB, 15523119104 bytes
      2. 4 heads, 16 sectors/track, 473728 cylinders, total 30318592 sectors
      3. Units = sectors of 1 * 512 = 512 bytes
      4. Sector size (logical/physical): 512 bytes / 512 bytes
      5. I/O size (minimum/optimal): 512 bytes / 512 bytes
      6. Disk identifier: 0x000b5098
      7. Device Boot Start End Blocks Id System
      8. /dev/mmcblk0p1 8192 122879 57344 c W95 FAT32 (LBA)
      9. /dev/mmcblk0p2 122880 7028735 3452928 83 Linux
      10. /dev/mmcblk0p3 7028736 30318591 11644928 83 Linux
      11. WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
      12. Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
      13. 256 heads, 63 sectors/track, 242251 cylinders, total 3907029168 sectors
      14. Units = sectors of 1 * 512 = 512 bytes
      15. Sector size (logical/physical): 512 bytes / 512 bytes
      16. I/O size (minimum/optimal): 512 bytes / 512 bytes
      17. Disk identifier: 0x00000000
      18. Device Boot Start End Blocks Id System
      19. /dev/sda1 1 3907029167 1953514583+ ee GPT
      20. WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
      21. Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
      22. 256 heads, 63 sectors/track, 242251 cylinders, total 3907029168 sectors
      23. Units = sectors of 1 * 512 = 512 bytes
      24. Sector size (logical/physical): 512 bytes / 512 bytes
      25. I/O size (minimum/optimal): 512 bytes / 512 bytes
      26. Disk identifier: 0x00000000
      27. Device Boot Start End Blocks Id System
      28. /dev/sdb1 1 3907029167 1953514583+ ee GPT
      Display All

      any advise ?
      ! Started hacking with ZX81 and I am getting younger everyday like Master Yoda ! ! Raspi is to young generation what ZX81 was to mine ! ! I just love Raspi! Triple bang for the Raspi Foundation ! !And thank you guys for OMV !
    • I thought I had solved the issue by using this tutorial:
      lazic.info/josip/post/installi…ediavault-on-raid-device/
      lazic.info/josip/post/installi…ediavault-on-raid-device/

      but then when I logged into the GUI.... nothing the RAID page... weird...

      any further ideas?
      ! Started hacking with ZX81 and I am getting younger everyday like Master Yoda ! ! Raspi is to young generation what ZX81 was to mine ! ! I just love Raspi! Triple bang for the Raspi Foundation ! !And thank you guys for OMV !
    • Ok. Finally I have redone the Tuto few times and got it right!
      RAID 1 is setup.
      All good. Thx.
      Images
      • RAID.png

        51.83 kB, 1,250×426, viewed 338 times
      ! Started hacking with ZX81 and I am getting younger everyday like Master Yoda ! ! Raspi is to young generation what ZX81 was to mine ! ! I just love Raspi! Triple bang for the Raspi Foundation ! !And thank you guys for OMV !
    • here is what I have done, just in case someone needs to use it again:
      (my two disks where sda and sdb, I kept the boot and OS partition as in the orginal Tuto - just in case, it can be useful, but unlike in the original tuto I have not activated OMV on the USB drive, so it still runs on the SD car on the RPi):

      From Josip Lazic:
      lazic.info/josip/post/installi…ediavault-on-raid-device/

      Used to create my RAID:
      1) créer les partitions: (avec un boot, un free pour un os si besoin, et les datas)
      parted -a optimal /dev/sda mklabel gpt
      parted -a optimal /dev/sda mkpart grub ext2 2048s 12M
      parted -a optimal /dev/sda mkpart root ext4 12M 4096M
      parted -a optimal /dev/sda mkpart data ext4 4096M 100%
      parted -a optimal /dev/sda set 1 bios_grub on
      parted -a optimal /dev/sda set 2 boot on

      2) Cloning partition a to b
      sgdisk -R=/dev/sdb /dev/sda
      sgdisk -G /dev/sdb

      3)Creating the RAID
      mdadm --create /dev/md0 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda2 /dev/sdb2
      mdadm --create /dev/md1 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda3 /dev/sdb3

      4)Creating File Systems
      mkfs.ext4 /dev/md0
      mdadm --detail --scan >> /etc/mdadm/mdadm.conf
      and then
      mkfs.ext4 -m 1 -L DATA /dev/md1

      I did all thsi work as root logged via ssh.
      best
      ! Started hacking with ZX81 and I am getting younger everyday like Master Yoda ! ! Raspi is to young generation what ZX81 was to mine ! ! I just love Raspi! Triple bang for the Raspi Foundation ! !And thank you guys for OMV !
    • it is quite weird when mounting the md1 I got this error message:


      Source Code

      1. Error #6000:
      2. exception 'OMVException' with message 'Failed to mount '144be3b0-4352-4fb6-97d0-372bdcd80cc6': mount: wrong fs type, bad option, bad superblock on /dev/sda1,
      3. missing codepage or helper program, or other error
      4. In some cases useful info is found in syslog - try
      5. dmesg | tail or so
      6. ' in /usr/share/openmediavault/engined/module/fstab.inc:90
      7. Stack trace:
      8. #0 /usr/share/openmediavault/engined/rpc/config.inc(206): OMVModuleFsTab->startService()
      9. #1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      10. #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      11. #3 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
      12. #4 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(900): OMVRpc::exec('Config', 'applyChanges', Array, Array)
      13. #5 [internal function]: OMVRpcServiceFileSystemMgmt->mount(Array, Array)
      14. #6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      15. #7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('mount', Array, Array)
      16. #8 /usr/sbin/omv-engined(500): OMVRpc::exec('FileSystemMgmt', 'mount', Array, Array, 1)
      17. #9 {main}
      Display All
      apparently as FSTAB error but I can see how to correct this....

      Idea are welcome?
      ! Started hacking with ZX81 and I am getting younger everyday like Master Yoda ! ! Raspi is to young generation what ZX81 was to mine ! ! I just love Raspi! Triple bang for the Raspi Foundation ! !And thank you guys for OMV !
    • I removed everything and reinstalled everything and it is fine but I had to manually modify the config.xml as the GUI not remove previous file systems.
      I then re-installed and it seems now working.
      ! Started hacking with ZX81 and I am getting younger everyday like Master Yoda ! ! Raspi is to young generation what ZX81 was to mine ! ! I just love Raspi! Triple bang for the Raspi Foundation ! !And thank you guys for OMV !