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?
RAID Mirroring Setup Issue (RPi + OMV 2.2.5)
-
- OMV 2.x
- gelöst
- rfv-370
-
-
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
-
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:
CodeSep 11 08:49:58 Minerva collectd[5403]: Filter subsystem: Built-in target `write': Dispatching value to all write plugins failed with status -1. 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:
Code
Alles anzeigentail dmesg -f [ 15.801327] sd 1:0:0:0: [sdb] No Caching mode page found [ 15.801344] sd 1:0:0:0: [sdb] Assuming drive cache: write through [ 15.808144] sdb: sdb1 [ 15.810533] sd 1:0:0:0: [sdb] Attached SCSI disk [ 16.589993] ip_tables: (C) 2000-2006 Netfilter Core Team [ 16.615403] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 17.034948] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists [ 17.034972] brcmfmac: brcmf_add_if: ignore IF event [ 17.039566] brcmfmac: power management disabled [ 17.770635] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
my fdisk looks like:Code
Alles anzeigenDisk /dev/mmcblk0: 15.5 GB, 15523119104 bytes 4 heads, 16 sectors/track, 473728 cylinders, total 30318592 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000b5098 Device Boot Start End Blocks Id System /dev/mmcblk0p1 8192 122879 57344 c W95 FAT32 (LBA) /dev/mmcblk0p2 122880 7028735 3452928 83 Linux /dev/mmcblk0p3 7028736 30318591 11644928 83 Linux WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sda: 2000.4 GB, 2000398934016 bytes 256 heads, 63 sectors/track, 242251 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sda1 1 3907029167 1953514583+ ee GPT WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes 256 heads, 63 sectors/track, 242251 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 1 3907029167 1953514583+ ee GPT
any advise ? -
I thought I had solved the issue by using this tutorial:
http://lazic.info/josip/post/i…ediavault-on-raid-device/
http://lazic.info/josip/post/i…ediavault-on-raid-device/but then when I logged into the GUI.... nothing the RAID page... weird...
any further ideas?
-
Ok. Finally I have redone the Tuto few times and got it right!
RAID 1 is setup.
All good. Thx. -
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:
http://lazic.info/josip/post/i…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 on2) Cloning partition a to b
sgdisk -R=/dev/sdb /dev/sda
sgdisk -G /dev/sdb3)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/sdb34)Creating File Systems
mkfs.ext4 /dev/md0
mdadm --detail --scan >> /etc/mdadm/mdadm.conf
and then
mkfs.ext4 -m 1 -L DATA /dev/md1I did all thsi work as root logged via ssh.
best -
it is quite weird when mounting the md1 I got this error message:
Code
Alles anzeigenError #6000: exception 'OMVException' with message 'Failed to mount '144be3b0-4352-4fb6-97d0-372bdcd80cc6': mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so ' in /usr/share/openmediavault/engined/module/fstab.inc:90 Stack trace: #0 /usr/share/openmediavault/engined/rpc/config.inc(206): OMVModuleFsTab->startService() #1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array) #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array) #3 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array) #4 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(900): OMVRpc::exec('Config', 'applyChanges', Array, Array) #5 [internal function]: OMVRpcServiceFileSystemMgmt->mount(Array, Array) #6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array) #7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('mount', Array, Array) #8 /usr/sbin/omv-engined(500): OMVRpc::exec('FileSystemMgmt', 'mount', Array, Array, 1) #9 {main}
apparently as FSTAB error but I can see how to correct this....
Idea are welcome?
-
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.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!