[CentOS] Problem with mdadm, raid1 and automatically adds any disk to raid

Jobst Schmalenbach jobst at barrett.com.au
Mon Feb 25 06:06:54 UTC 2019


On Mon, Feb 25, 2019 at 06:50:11AM +0100, Simon Matter via CentOS (centos at centos.org) wrote:
> > Hi.
> >
> >   dd if=/dev/zero of=/dev/sdX bs=512 seek=$(($(blockdev --getsz
> > /dev/sdX)-1024)) count=1024
> 
> I didn't check but are you really sure you're cleaning up the end of the
> drive? Maybe you should clean the end of every partition first because
> metadata may be written there.

Mmmmhhh, not sure.
I run fdisk on it, basically re-creating everything from the start.

The "trying to re-create the MDX's" happens when I use "w" in fdisk.
As soon as I hit the "w" it starts re-creating the MDx!

Thats the annoying part.

[snip]
> > No matter what I do as soon as I hit the "w" in fdisk systemd tries to
> > assemble the array again without letting me to decide what to do.
> 
> <don't try this at home>

I am not ;-), it's @ work.


Jobst


-- 
You seem (in my (humble) opinion (which doesn.t mean much)) to be (or possibly could be) more of a Lisp programmer (but I could be (and probably am) wrong)

  | |0| |   Jobst Schmalenbach, General Manager
  | | |0|   Barrett & Sales Essentials
  |0|0|0|   +61 3 9533 0000, POBox 277, Caulfield South, 3162, Australia


More information about the CentOS mailing list