xfs
[Top] [All Lists]

Re: swidth with mdadm and RAID6

To: Shailendra Tripathi <stripathi@xxxxxxxxx>
Subject: Re: swidth with mdadm and RAID6
From: Steve Cousins <cousins@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 19 Sep 2006 13:52:45 -0400 (EDT)
Cc: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
In-reply-to: <fc.004c4d192b3470d73b9aca0029fcf469.2b349301@umit.maine.edu>
Reply-to: cousins@xxxxxxxxxxxxxx
Sender: xfs-bounce@xxxxxxxxxxx

On Tue, 19 Sep 2006, Shailendra Tripathi wrote:

> >> Hi Shailendra,
> >> 
> >> I ran the program and it reports:
> >> 
> >>    Level 6, disks=11 spare_disks=1 raid_disks=10
> >> 
> >> which looks good.   I don't understand why you got:
> >> 
> >>    Level 5, disks=7 spare_disks=3 raid_disks=5
> >> 
> >> Why would it have 3 spare_disks?
> >
> Perhaps you are running more recent kernel than mine, and, spare_disks 
> now reports only actual spares. It did appear little weired that it 
> reported spare_disks as 3. get_array_info is changed in recent kernels 
> and that should explain this difference.

This is a 2.6.17 kernel.  So, with this in mind, is there a change that I
should try in libdisk/md.c?  Tim had suggested:

        s/nr_disks/raid_disks/

Would this be sufficient? Or should nr_disks be initialized as raid_disks
and then go into the switch clause?

Steve




<Prev in Thread] Current Thread [Next in Thread>