All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mateusz <mateusz-lists@ant.gliwice.pl>
To: list Linux RAID <linux-raid@vger.kernel.org>, d tbsky <tbskyd@gmail.com>
Subject: Re: add new disk with dd
Date: Thu, 29 Apr 2021 11:21:40 +0200	[thread overview]
Message-ID: <7903054.T7Z3S40VBb@matkor-hp> (raw)
In-Reply-To: <CAC6SzHLDYhQDtfQMYozN6EBYB=nsKvB77hmyByZNr9uTpQH+KQ@mail.gmail.com>

On czwartek, 29 kwietnia 2021 10:52:21 CEST d tbsky wrote:
> however dd may also copy the mdadm superblock which include internal
> bitmap(since I don't caculate correct size). I don't know if there is
> risk that mdadm will be confused with the bitmap in new disk. although
> I have tried and it seems work fine.
> should I disable internal bitmap before add new disk? 

No.

> or mdadm will
> understand the superblock/bitmap at new disk is invalid and just
> overwrite everything?

Should in most cases [1], but IMHO it's good idea to
mdadm --zero-superblock /dev/YOU_ARE_SURE_IS_ONE_YOU_WANT_TO_ADD
before adding disk already used somewhere else.

BTW,  IMHO it's better to clone partition layout, and than install bootloaders 
instead of dding disk.

[1] If disk/part was already used / cloned in same array it's bitmap may be 
recognized, not synced, resulting likely broken array.

-- 
Mateusz 
(...) mam brata - poważny, domator, liczykrupa, hipokryta, pobożniś,
	krótko mówiąc - podpora społeczeństwa."
		Nikos Kazantzakis - "Grek Zorba"




  parent reply	other threads:[~2021-04-29  9:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-29  8:52 add new disk with dd d tbsky
2021-04-29  9:05 ` Roman Mamedov
2021-04-29  9:21 ` Mateusz [this message]
2021-04-29 15:32   ` d tbsky
2021-04-29 15:34     ` Reindl Harald
2021-05-01 10:07     ` Wols Lists

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7903054.T7Z3S40VBb@matkor-hp \
    --to=mateusz-lists@ant.gliwice.pl \
    --cc=linux-raid@vger.kernel.org \
    --cc=tbskyd@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.