Re: [BUG?] count of "Spare Devices" wrong after fail/remove/add

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Neil Brown wrote:
On Tuesday January 21, fl@fl.priv.at wrote:
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 2


    Number   Major   Minor   RaidDevice State
       0       3        1        0      active sync   /dev/hda1
       1      22        1        1      active sync   /dev/hdc1
           UUID : d876333b:694e852b:e9a6f40f:0beb90f9

I do wounder why I've got 2 spare drives despite the fact that I
did not add any. I've just got two drives in this raid1 that's it.
Yes, it's probably a bug in the kernel code. The counting in the 2.4 code is very
clumsy.  I think it is benign so it wont be fixed.  The code in 2.5 is
very different and shouldn't have this problem.
Ok. Just wanted to let you know.


PS: Array Size : 40209024 (38.35 GiB 41.22 GB)
should IMHO be
    Array Size : 40209024 (38.35 GiB 40.21 GB)
I disgree. An array side of 40209024 means that many kibibytes.
i.e. 40209024 * 1024 which is
   41174040576  bytes.

Hmmm...why don't we forget about this kibibytes sh.. anyways,
it's not worth the troubles IMHO.

--
MfG / Regards
Friedrich Lobenstock

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux