From: Marc MERLIN <marc@merlins.org>
To: Wols Lists <antlists@youngman.org.uk>, Roman Mamedov <rm@romanrm.net>
Cc: Roger Heflin <rogerheflin@gmail.com>, linux-raid@vger.kernel.org
Subject: Re: new drive is 4 sectors shorter, can it be used for swraid5 array?
Date: Sat, 19 Mar 2022 15:02:36 -0700 [thread overview]
Message-ID: <20220319220236.GZ3131742@merlins.org> (raw)
In-Reply-To: <20220319154559.09f649e4@nvm> <01d2c8c5-46ea-f69e-e285-da0abe6cd594@youngman.org.uk>
On Sat, Mar 19, 2022 at 10:14:16AM +0000, Wols Lists wrote:
> mdadm has absolutely no trouble with that at all. All it cares about is if
> something is a block device - if it finds an mdadm signature at the start of
> a block device it will use it.
I think I remember back in the day that auto joining of raid1 arrays by
the kernel at boot time so that you could then mount the filesystem as
root, only worked if it was on partitions. That was a long time ago
though.
On Sat, Mar 19, 2022 at 03:45:59PM +0500, Roman Mamedov wrote:
> As for...
>
> > > 8 128 5860522584 sdi
> > > 8 129 5860521543 sdi1
> > >
> > > 8 160 5860522580 sdk
> > > 8 161 5860521536 sdk1
>
> Which tool returns this output?
cat /proc/partitions
> What do you get for
>
> blockdev --getsize64 /dev/sdi
> blockdev --getsize64 /dev/sdk
gargamel:/dev# blockdev --getsize64 /dev/sdi
6001175126016
gargamel:/dev# blockdev --getsize64 /dev/sdk
6001175121920
> If this returns the same size for both, wipe a few first MB the new drive with
> zeroes using dd, and try a different partitioning tool.
Good suggestion, but the drives indeed seem different, very slightly so.
Thankfully not enough to matter for my mdadm array it seems, so that's
good news
Thanks to all for the help
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
next prev parent reply other threads:[~2022-03-19 22:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-18 3:08 new drive is 4 sectors shorter, can it be used for swraid5 array? Marc MERLIN
2022-03-18 7:54 ` Wols Lists
2022-03-18 12:30 ` Roman Mamedov
2022-03-19 4:10 ` Marc MERLIN
2022-03-19 10:14 ` Wols Lists
2022-03-19 22:02 ` Marc MERLIN [this message]
2022-03-21 19:35 ` Nix
2022-03-19 10:45 ` Roman Mamedov
2022-03-26 18:01 ` Tom Mitchell
2022-03-26 18:29 ` Wols Lists
2022-03-27 8:40 ` d tbsky
2022-03-28 2:05 ` Marc MERLIN
2022-03-29 0:13 ` Chris Murphy
2022-03-29 1:55 ` d tbsky
2022-03-30 2:33 ` Andy Smith
2022-04-02 12:48 ` d tbsky
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=20220319220236.GZ3131742@merlins.org \
--to=marc@merlins.org \
--cc=antlists@youngman.org.uk \
--cc=linux-raid@vger.kernel.org \
--cc=rm@romanrm.net \
--cc=rogerheflin@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.