linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RAID 1 Disk added as faulty
@ 2009-12-26  7:33 Leslie Rhorer
  2009-12-26 19:16 ` Leslie Rhorer
  0 siblings, 1 reply; 8+ messages in thread
From: Leslie Rhorer @ 2009-12-26  7:33 UTC (permalink / raw)
  To: 'linux-raid'


Merry Christmas all,

	I have a bit of a puzzling problem.  I have a set of three
partitions on a SATA hard drive all set up as second members of three RAID 1
arrays with the first members missing.  I have a PATA drive partitioned in
precisely the same way as the SATA drive, and I am attempting to add the
PATA drive's partitions to the respective existing RAID 1 arrays.  I can add
the partitions with `mdadm /dev/mdx --add  /dev/hdax` (x = 1, 2, 3), and
everything works just fine.  The thing is, however, for rather obvious
reasons I would prefer the PATA partitions to be write-mostly.  If I add the
partitions to the array and then try to make the PATA partitions
write-mostly with the command `mdadm /dev/mdx -W /dev/hdax`, mdadm doesn't
complain, but it also doesn't appear to make the hdax partitions
write-mostly.  (Or at least it does not report them as such.)  OTOH, if I
start with a fresh partition with no existing superblock and use the command
`mdadm /dev/mdx --add -W /dev/hdax`, mdadm adds the partition and marks it
as write-mostly, but immediately fails the partition.  If I remove the
partition and re-add it without zeroing the superblock, it again adds it as
a faulty spare:

/dev/md1:
        Version : 01.00
  Creation Time : Wed Dec 23 23:46:28 2009
     Raid Level : raid1
     Array Size : 401580 (392.23 MiB 411.22 MB)
  Used Dev Size : 401580 (392.23 MiB 411.22 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Sat Dec 26 01:12:41 2009
          State : active, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 1
  Spare Devices : 0

           Name : 'RAID-Server':1
           UUID : 76e8e11d:e0183c3c:404cb86a:19a7cb3d
         Events : 188

    Number   Major   Minor   RaidDevice State
       0       0        0        0      removed
       1       8        1        1      active sync   /dev/sda1

       2       3        1        -      faulty writemostly spare   /dev/hda1


	How can I add these partitions as write-mostly members of the RAID 1
arrays?


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-12-30 15:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-26  7:33 RAID 1 Disk added as faulty Leslie Rhorer
2009-12-26 19:16 ` Leslie Rhorer
2009-12-30  5:19   ` Leslie Rhorer
2009-12-30  5:42     ` Neil Brown
2009-12-30  6:39       ` Leslie Rhorer
2009-12-30  7:18         ` Leslie Rhorer
2009-12-30  8:52           ` Neil Brown
2009-12-30 15:31             ` Leslie Rhorer

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).