From: NeilBrown <neilb@suse.de>
To: Krzysztof Adamski <k@adamski.org>
Cc: linux-raid@vger.kernel.org
Subject: Re: raid upgrade form 1.5T to 3T drives with 0.90 superblock
Date: Sat, 25 Jun 2011 08:00:34 +1000 [thread overview]
Message-ID: <20110625080034.5feb32bb@notabene.brown> (raw)
In-Reply-To: <1308854595.23175.65.camel@oxygen.netxsys.com>
On Thu, 23 Jun 2011 14:43:15 -0400 Krzysztof Adamski <k@adamski.org> wrote:
> Hi All,
>
> I have a raid6 array made out of 8 1.5T drives and I wanted to change to
> use 3T drives. The array is 0.90. After reading the wiki I see that 0.90
> superblock will not work with any device larger then 2T.
>
> What are my options for a live upgrade (backup/restore is not possible)?
>
I really am going to have to add --update=metadata to mdadm one day...
Simply stop the array and create it again with --metadata=1.0.
For safety specify all the details : chunk size, layout, raid-disks, as the
defaults might have changed.
Create the array 'assume-clean' to it doesn't try to resync. Then check
(read-only) that your data is good.
e.g.
mdadm -S /dev/md0
mdadm -C /dev/md0 -l6 -n8 -c64 --layout=la --assume-clean \
/dev/sda1 /dev/sdb1 /dev/sdc1 ....
You should specify --size as well ... otherwise mdadm might leave too much
space for a bitmap - I don't remember exactly.
Make sure you put the device names in the correct order. You can find this
order from "mdadm -D".
If you like you could post the output of mdadm -D and the commands you
propose to run so I/others can verify it for you.
1.0 metadata puts the metadata at the end just like 0.90, and the metadata is
smaller so the data will remain untouched.
Just this create command by itself cannot destroy you data so if you then
look at the array read-only it will still not change anything. Once you are
sure everything is OK you can start writing.
Oh, and of course do all this with the 1.5 drives. Don't try adding the 3T
drives until verything is stable.
Good luck,
NeilBrown
prev parent reply other threads:[~2011-06-24 22:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-23 18:43 raid upgrade form 1.5T to 3T drives with 0.90 superblock Krzysztof Adamski
2011-06-24 5:35 ` Stan Hoeppner
2011-06-24 12:23 ` Krzysztof Adamski
2011-06-25 0:15 ` Stan Hoeppner
2011-06-24 22:00 ` NeilBrown [this message]
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=20110625080034.5feb32bb@notabene.brown \
--to=neilb@suse.de \
--cc=k@adamski.org \
--cc=linux-raid@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).