Welcome! Log In Create A New Profile

Advanced

mirror on nsa325 omv2

Posted by rudi63 
mirror on nsa325 omv2
August 29, 2016 12:10AM
Hi,

when I try to create a mirror with raid-functionality of omv 2.26 /kernel 4.6 I get the following error:

Fehler #4000:
exception 'OMVException' with message 'Failed to execute command 'omv-mkraid /dev/md0 -l mirror -n 2 -N daten /dev/sda /dev/sdb 2>&1': mdadm: /dev/sda appears to be part of a raid array:
    level=raid0 devices=0 ctime=Thu Jan  1 01:00:00 1970
mdadm: partition table exists on /dev/sda but will be lost or
       meaningless after creating array
mdadm: Note: this array has metadata at the start and
    may not be suitable as a boot device.  If you plan to
    store '/boot' on this device please ensure that
    your boot-loader understands md/v1.x metadata, or use
    --metadata=0.90
mdadm: /dev/sdb appears to be part of a raid array:
    level=raid0 devices=0 ctime=Thu Jan  1 01:00:00 1970
mdadm: partition table exists on /dev/sdb but will be lost or
       meaningless after creating array
mdadm: size set to 1953383360K
mdadm: creation continuing despite oddities due to --run
mdadm: unexpected failure opening /dev/md0' in /usr/share/openmediavault/engined/rpc/raidmgmt.inc:278
Stack trace:
#0 [internal function]: OMVRpcServiceRaidMgmt->create(Array, Array)
#1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('create', Array, Array)
#3 /usr/sbin/omv-engined(500): OMVRpc::exec('RaidMgmt', 'create', Array, Array, 1)
#4 {main}

fdisk -l /dev/sda

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
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  3907029167  1953514583+  ee  GPT
Partition 1 does not start on physical sector boundary.

fdisk -l /dev/sdb

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 / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1  3907029167  1953514583+  ee  GPT
Partition 1 does not start on physical sector boundary.

Any hints?



Edited 1 time(s). Last edit at 09/04/2016 07:30AM by rudi63.
Re: mirror on nsa325 omv2
September 02, 2016 06:10AM
mhhh...no suggestions..?
Re: mirror on nsa325 omv2
September 06, 2016 04:59PM
fdisk states clearly that the disk is using GPT partitions like most modern drives so please use a tool that can see GPT partitions.

gdisk tool from gptfdisk package can read them and works kinda like fdisk.
gdisk -l /dev/sda
(reads the partitions of /dev/sda)

can you post the result of
mdadm --detail --scan
(will tell if there are any raid arrays and where)

from the errors it seems that md0 exists already and it is a raid0, but was created in 1970 so it's probably reading garbage info from an old raid array that wasn't cleaned correctly.
If that is the case, use the commands from here http://www.ducea.com/2009/03/08/mdadm-cheat-sheet/
To stop and then to delete that array correctly before trying again from OMV.

where is the rootfs?

Also, this seems to be a generic issue, or at least not related to kirkwood, so you can ask for help in omv forums and they will be able to help you too.
Re: mirror on nsa325 omv2
September 18, 2016 12:58AM
...I solved the problem. Kernel wasnt installed properly. After a reinstallation weverything works like a charme...
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: