Re: ANNOUNCE - mdadm 0.8 - candidate for 1.0

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

 



On Wednesday April 10, mooasun@yahoo.com wrote:
> 
>  Neil,
>  
> I tried with "mdadm -C /dev/md0 --level raid1 --raid-disks 2 /dev/hda1 --fail /dev/hdc1"
> to make a MD device with a faulty device. However, It did not work what I expected.
> I do not want to include /dev/hdc1 yet because it has the system image, but it tried to
> include it.
> Any suggestion?

Yes. If you don't want /dev/hdc1 to be included, don't include it.
If you say:

# mdadm -C /dev/md0 --level raid1 --raid-disks 2 /dev/hda1

It will say:

mdadm: You haven't given enough devices (real or missing) to create this array

The word "missing" is meant to be a hint, but I don't think it is
documented (I've just made a TODO note to fix that - thanks).

The command:

# mdadm -C /dev/md0 --level raid1 --raid-disks 2 /dev/hda1 missing

will create your array with /dev/hda1 in the first slot, and no device
in the second slot.

NeilBrown
-
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