From: NeilBrown <neilb@suse.de>
To: Michael Busby <michael.a.busby@gmail.com>
Cc: john.robinson@anonymous.org.uk, linux-raid@vger.kernel.org
Subject: Re: Raid5 to another raid level??
Date: Wed, 12 Oct 2011 21:14:41 +1100 [thread overview]
Message-ID: <20111012211441.59f32b25@notabene.brown> (raw)
In-Reply-To: <CAFsPQ__r3OX4X_U=f06DCpFMvi2QEKYo9D+N5-SEXpEyRBhR4A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3130 bytes --]
On Wed, 12 Oct 2011 10:25:16 +0100 Michael Busby <michael.a.busby@gmail.com>
wrote:
> Thanks, can i just double check the command with you
>
> mdadm --create /dev/md0 --chunk=512 --metadata=1.0 --assume-clean
> --level=5 --raid-devices=4 /dev/sde /dev/sdc /dev/sdd /dev/sdb
>
Correct. Of course you have to
mdadm --stop /dev/md0
first, but you knew that.
NeilBrown
>
> On 12 October 2011 05:10, NeilBrown <neilb@suse.de> wrote:
> > On Mon, 10 Oct 2011 22:47:58 +0100 Michael Busby <michael.a.busby@gmail.com>
> > wrote:
> >
> >> I have a quick question i remember reading somewhere about not using
> >> metadata version 0.9 with drives larger than 2tb,
> >> > at the moment i have the following
> >> >
> >> > root@BlueBolt:~# cat /proc/mdstat
> >> > Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
> >> > md0 : active raid5 sdd[2] sde[0] sdb[3] sdc[1]
> >> > 5860543488 blocks level 5, 512k chunk, algorithm 2 [4/4] [UUUU]
> >> > bitmap: 2/15 pages [8KB], 65536KB chunk
> >> > unused devices: <none>
> >> > root@BlueBolt:~# mdadm --detail /dev/md0
> >> > /dev/md0:
> >> > Version : 0.90
> >> > Creation Time : Mon Jul 4 15:08:38 2011
> >> > Raid Level : raid5
> >> > Array Size : 5860543488 (5589.05 GiB 6001.20 GB)
> >> > Used Dev Size : 1953514496 (1863.02 GiB 2000.40 GB)
> >> > Raid Devices : 4
> >> > Total Devices : 4
> >> > Preferred Minor : 0
> >> > Persistence : Superblock is persistent
> >> > Intent Bitmap : Internal
> >> > Update Time : Mon Oct 10 22:44:11 2011
> >> > State : active
> >> > Active Devices : 4
> >> > Working Devices : 4
> >> > Failed Devices : 0
> >> > Spare Devices : 0
> >> > Layout : left-symmetric
> >> > Chunk Size : 512K
> >> > UUID : ddab6c38:dee3ead0:95ba4558:1c9a49ed (local to host BlueBolt)
> >> > Events : 0.2836102
> >> > Number Major Minor RaidDevice State
> >> > 0 8 64 0 active sync /dev/sde
> >> > 1 8 32 1 active sync /dev/sdc
> >> > 2 8 48 2 active sync /dev/sdd
> >> > 3 8 16 3 active sync /dev/sdb
> >> > which as you can see if using 0.90, i am looking at replacing all the 2tb drives with 3tb versions, would i need to update the metadata version? if so how can i go about this?
> >
> > With a really recent kernel (3.1) and recent mdadm (also not released yet),
> > 0.90 can go up to 4TB (it has 32 bits to count kilobytes with).
> >
> > Alternately you need to convert to 1.0 metadata.
> >
> > Currently the only way to do this is to 'create' the array again.
> > Be sure to specified the same chunk size, the right metadata, the name level
> > and number of disks, and the correct disks in the correct order.
> > An use "--assume-clean". Then check your data is still consistent.
> > With --assume-clean and a read-only mount, no data will actually be changed,
> > only metadata.
> >
> > NeilBrown
> >
> >
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2011-10-12 10:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-07 16:26 Raid5 to another raid level?? Michael Busby
[not found] ` <CAFsPQ__YdDnJw=qgLAq10vRbNPy4B_EhkV4FU0JAfovxnw9TxQ@mail.gmail.com>
2011-10-10 21:47 ` Michael Busby
2011-10-12 4:10 ` NeilBrown
2011-10-12 9:25 ` Michael Busby
2011-10-12 10:14 ` NeilBrown [this message]
2011-10-12 16:01 ` Michael Busby
-- strict thread matches above, loose matches on Subject: below --
2011-09-01 23:50 Michael Busby
2011-09-02 0:54 ` Michael Busby
2011-09-02 2:19 ` NeilBrown
2011-09-02 9:12 ` Michael Busby
2011-09-02 10:22 ` NeilBrown
2011-09-02 10:35 ` Michael Busby
2011-09-02 12:49 ` NeilBrown
2011-09-02 13:11 ` Michael Busby
2011-09-07 1:07 ` NeilBrown
2011-09-01 21:50 Michael Busby
2011-09-01 22:34 ` John Robinson
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=20111012211441.59f32b25@notabene.brown \
--to=neilb@suse.de \
--cc=john.robinson@anonymous.org.uk \
--cc=linux-raid@vger.kernel.org \
--cc=michael.a.busby@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 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).