lkml.org 
[lkml]   [2008]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: MDADM Software Raid Woes
I may give that a shot.

But it also looks like my major numbers are wrong on the actual device nodes?
brw-r----- 1 root disk 9, 0 Dec 17 19:13 0
brw-r----- 1 root disk 259, 0 Dec 17 19:13 1
brw-r----- 1 root disk 259, 1 Dec 17 19:13 2
brw-r----- 1 root disk 259, 2 Dec 17 19:13 3

Shouldn't this be 9,something, not 259?

If I change the partition type from fd to something else, and don't
allow the kernel to auto assemble, then assemble manually via mdadm,
things work right.
Any idea what could cause thee major numbers to be wrong?

On Thu, Dec 18, 2008 at 1:56 AM, Nick Andrew <nick@nick-andrew.net> wrote:
> On Wed, Dec 17, 2008 at 11:33:31PM -0500, Dylan Taft wrote:
>> I created the raids with the mdadm tool, originally configured manually
>> /dev/md0 for sdb1/sdc1 raid1 to be mounted as /boot
>> /dev/md1 for sdb2/sdc2 raid0
>>
>> I created 3 partitions on md1, one for future /, one for swap, one for
>> future /home.
>> So I had /dev/md0, md1, and /dev/md1p1,/dev/md1p2/dev/md1p3
>
> Why not use LVM for /dev/md1 ?
>
> pvcreate /dev/md1
> vgcreate myvg /dev/md1
> lvcreate -L 10G -n root myvg
> lvcreate -L 2G -n swap myvg
> lvcreate -L 20G -n home myvg
>
> Also since you have specified raid0 for /dev/md1 you could
> use striping under LVM instead of RAID:
>
> pvcreate /dev/sdb2 /dev/sdc2
> vgcreate myvg /dev/sdb2 /dev/sdc2
> lvcreate -L 10G -n root -i 2 -I 32 myvg
> lvcreate -L 2G -n swap -i 2 -I 32 myvg
> lvcreate -L 20G -n home -i 2 -I 32 myvg
>
> That way you have some flexibility in your use of sdb2
> and sdc2, e.g. you can move your LVs off sdc2 if you want
> to replace or extend it later.
>
> Nick.
>


\
 
 \ /
  Last update: 2008-12-18 14:11    [W:0.529 / U:1.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site