linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Phil Turmel <philip@turmel.org>
To: Stone <stone@heisl.org>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: Brocken Raid & LUKS
Date: Fri, 22 Feb 2013 21:22:52 -0500	[thread overview]
Message-ID: <512827FC.7010403@turmel.org> (raw)
In-Reply-To: <5127F45F.5020608@heisl.org>

On 02/22/2013 05:42 PM, Stone wrote:
> Am 22.02.2013 23:35, schrieb Phil Turmel:
>> Please recreate the array with this combination, then show:
>>
>> mdadm -D /dev/md2
>> mdadm -E /dev/sd[bce]1
>> cat /proc/partitions
>> for x in /dev/sd[bce] ; do fdisk -l $x ; done

> i dont know what chunk do you what but i think you mean 512k

Yes.

> mdadm --create /dev/md2 --assume-clean --chunk=512 --verbose --level=5
> --raid-devices=4 /dev/sdb1 /dev/sdc1 missing /dev/sde1

> mdadm -E /dev/sd[bce]1
> /dev/sdb1:

>  Avail Dev Size : 3907027037 (1863.02 GiB 2000.40 GB)
>      Array Size : 11721071616 (5589.04 GiB 6001.19 GB)
>   Used Dev Size : 3907023872 (1863.01 GiB 2000.40 GB)

> /dev/sdc1:
>  Avail Dev Size : 3907024896 (1863.01 GiB 2000.40 GB)
>      Array Size : 11721071616 (5589.04 GiB 6001.19 GB)
>   Used Dev Size : 3907023872 (1863.01 GiB 2000.40 GB)

See the difference?

> /dev/sde1:
>  Avail Dev Size : 3907027037 (1863.02 GiB 2000.40 GB)
>      Array Size : 11721071616 (5589.04 GiB 6001.19 GB)
>   Used Dev Size : 3907023872 (1863.01 GiB 2000.40 GB)

> /proc/partitions
> major minor  #blocks  name
> 
>    8        0  244198584 sda
>    8        1     248832 sda1
>    8        2          1 sda2
>    8        5  243947520 sda5
>  252        0  235589632 dm-0
>  252        1    8351744 dm-1
>    8       16 1953514584 sdb
>    8       17 1953514542 sdb1
>    8       32 1953514584 sdc
>    8       33 1953513472 sdc1

And here?

>    8       48 1953514584 sdd
>    8       49 1953514542 sdd1
>    8       64 1953514584 sde
>    8       65 1953514542 sde1
>    9        2 5860535808 md2

> for x in /dev/sd[bce] ; do fdisk -l $x ; done
> 
> WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util
> fdisk doesn't support GPT. Use GNU Parted.

Oops.  But you get the point, I hope.  /dev/sdc has a different
partition table from /dev/sdb and /dev/sde.  That short partition is
causing mdadm to make the array too small for the filesystem in it.

You need to fix the partitions on /dev/sdc to exactly match /dev/sdb and
/dev/sde.  Can you explain how it might have become different?

And use "parted /dev/sdb print" to show the partitions instead of fdisk.

Phil


  reply	other threads:[~2013-02-23  2:22 UTC|newest]

Thread overview: 79+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-19 16:01 Brocken Raid & LUKS stone
2013-02-19 17:57 ` Phil Turmel
     [not found]   ` <5123E4E9.3020609@heisl.org>
2013-02-19 21:16     ` Phil Turmel
     [not found]       ` <5123EF45.6080405@heisl.org>
     [not found]         ` <5123F7C7.7000406@turmel.org>
     [not found]           ` <5123FB71.3060509@heisl.org>
2013-02-20  0:31             ` Phil Turmel
2013-02-20 18:32               ` Stone
2013-02-20 18:39                 ` Phil Turmel
2013-02-21  7:04                   ` Stone
2013-02-21  9:42                     ` stone
2013-02-21 13:29                       ` Phil Turmel
2013-02-21 14:19                         ` stone
2013-02-21 15:04                           ` Phil Turmel
2013-02-21 15:30                             ` stone
2013-02-21 15:38                               ` Phil Turmel
2013-02-21 15:49                                 ` Phil Turmel
2013-02-21 16:32                                   ` Stone
2013-02-21 16:41                                     ` Phil Turmel
2013-02-21 16:43                                       ` Stone
2013-02-21 16:46                                         ` Phil Turmel
2013-02-21 16:51                                           ` Stone
2013-02-21 16:54                                             ` Phil Turmel
2013-02-21 17:17                                               ` Stone
2013-02-21 17:23                                                 ` Stone
2013-02-21 17:36                                                   ` Phil Turmel
2013-02-21 17:47                                                     ` Stone
2013-02-21 18:00                                                       ` Phil Turmel
2013-02-21 18:08                                                         ` Stone
2013-02-21 18:11                                                           ` Phil Turmel
2013-02-21 18:29                                                             ` Stone
2013-02-21 18:54                                                               ` Phil Turmel
2013-02-21 19:12                                                                 ` Stone
2013-02-21 19:17                                                                   ` Stone
2013-02-21 19:24                                                                   ` Phil Turmel
2013-02-21 19:29                                                                     ` Stone
2013-02-21 19:45                                                                       ` Phil Turmel
2013-02-21 19:46                                                                       ` Stone
     [not found]                                                                         ` <51269DE0.5070905@heisl.org>
2013-02-22 10:31                                                                           ` stone
2013-02-22 13:53                                                                             ` Phil Turmel
2013-02-22 14:58                                                                               ` Stone
2013-02-22 15:37                                                                                 ` Phil Turmel
2013-02-22 18:17                                                                                   ` Stone
2013-02-22 18:23                                                                                     ` Phil Turmel
2013-02-22 20:43                                                                                     ` Stone
2013-02-22 22:35                                                                                       ` Phil Turmel
2013-02-22 22:42                                                                                         ` Stone
2013-02-23  2:22                                                                                           ` Phil Turmel [this message]
2013-02-23  3:11                                                                                             ` Stone
2013-02-23  4:36                                                                                               ` Phil Turmel
2013-02-23 10:19                                                                                                 ` Stone
2013-02-23 16:10                                                                                                   ` Phil Turmel
2013-02-23 22:26                                                                                                     ` Stone
2013-02-23 23:49                                                                                                       ` Phil Turmel
2013-02-24  0:13                                                                                                         ` Stone
2013-02-24  4:04                                                                                                           ` Phil Turmel
2013-02-24  7:10                                                                                                             ` Stone
2013-02-24 14:15                                                                                                               ` Phil Turmel
2013-02-24 18:22                                                                                                                 ` Stone
2013-02-24 18:33                                                                                                                   ` Phil Turmel
2013-02-24 19:23                                                                                                                     ` Stone
2013-02-24 19:51                                                                                                                       ` Phil Turmel
2013-02-24 20:15                                                                                                                         ` Stone
2013-02-24 20:25                                                                                                                           ` Phil Turmel
2013-02-24 20:38                                                                                                                             ` Stone
2013-02-24 20:44                                                                                                                               ` Phil Turmel
2013-02-24 20:47                                                                                                                                 ` Stone
2013-02-25  9:06                                                                                                                                   ` stone
2013-02-25 18:31                                                                                                                                 ` Stone
2013-02-25 20:11                                                                                                                                   ` Stone
2013-02-26  0:19                                                                                                                                     ` Phil Turmel
2013-02-27  7:26                                                                                                                                       ` Stone
2013-02-27 19:04                                                                                                                                         ` Stone
2013-02-27 19:33                                                                                                                                           ` Hans-Peter Jansen
2013-02-27 19:51                                                                                                                                             ` Stone
2013-03-02 17:13                                                                                                                                               ` Phil Turmel
     [not found]                                                                                   ` <5127B0AB.5040108@heisl.org>
2013-02-22 18:30                                                                                     ` Phil Turmel
2013-02-21 22:29                                       ` Chris Murphy
2013-02-21 22:34                                         ` Phil Turmel
2013-02-21 22:20                                     ` Chris Murphy
2013-02-21 22:26                                       ` Phil Turmel
2013-02-21 13:15                     ` Phil Turmel

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=512827FC.7010403@turmel.org \
    --to=philip@turmel.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=stone@heisl.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).