Comment 32 for bug 1519470

Revision history for this message
Ryan Harper (raharper) wrote : Re: [Bug 1519470] Re: Deployment always fails when creating a custom storage config

On Thu, Jan 14, 2016 at 1:34 PM, Jeff Lane <email address hidden>
wrote:

> I then ssh'd to the node and attempted to manually build the array using
> the same command curtin was using: (Note I added -v to see if I could
> get some additional info from the failure)
>
> ubuntu@supermicro:~$ sudo mdadm -v -v --create /dev/md0 --run --level=0
> --raid-devices=2 /dev/sda1 /dev/sdb1
> sudo: unable to resolve host supermicro
> mdadm: chunk size defaults to 512K
> mdadm: /dev/sda1 appears to be part of a raid array:
> level=raid0 devices=2 ctime=Thu Jan 14 19:29:50 2016
> mdadm: /dev/sdb1 appears to be part of a raid array:
> level=raid0 devices=2 ctime=Thu Jan 14 19:29:50 2016
> mdadm: creation continuing despite oddities due to --run
> mdadm: Defaulting to version 1.2 metadata
> mdadm: RUN_ARRAY failed: Invalid argument
>

Manually we really need to run:

1. mdadm --stop /dev/md0; mdadm --zero-superblock /dev/sda1; mdadm
--zero-superblock /dev/sdb1
2. then re-run the create; and optionally run it without --run.