Re: 3-disk RAID1 - only two disks active

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

 



On Tuesday November 15, vherva@xxxxxxxxxxxxxxxxx wrote:
> I had two disks taken off from the three-disk raid set (hda,hdb,hdc - hdc
> failed by itself, hdb was marked bad with raidsetfaulty). When the new disks
> were added back to the set (with raidhotadd), only two of them became active
> and one remained as a hot spare.
> 
> I there a way to reconfigure all three to become active again?

It looks from the details you gave that it never was a three-disk
set.  It was only ever two-disk, possibly with a spare.

> 
> This is kernel 2.4.32-rc1.

With a recent 2.6 kernel, you could
   mdadm --grow --raid-disk=3 /dev/md1
but with a 2.4 kernel, the only option is to re-create the array:

  mdadm --stop /dev/md1
  mdadm --create /dev/md1 --level=1 --raid-disks=3 /dev/hda1 /dev/hdc1 missing
  mdadm /dev/md1 --add /dev/hdb1

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
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