Re: bug in --manage mode

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

 



exe@xxxxxxxxx wrote:
Hello, I hit a bug in mdadm.

According to "--manage --help" this must work, but it doesn't:

-bash-3.2# mdadm --manage -a /dev/md2 /dev/sda3
mdadm: /dev/sda3 does not appear to be an md device

I think that the "-a" is being parsed as "--auto" rather than "--add" in this case. I rarely use --manage, so I want to go look at the 2.6.3 code, this is just a speculation at this point, but it does fit the behavior. Don't know why the "/dev/md2" doesn't generate an error if it's being parsed as something else, though.

But this works fine:
-bash-3.2# mdadm --manage --add   /dev/md2 /dev/sda3
mdadm: re-added /dev/sda3


The version is:
LFS:root@~:mdadm --version
mdadm - v2.6.2 - 21st May 2007

--
bill davidsen <davidsen@xxxxxxx>
 CTO TMR Associates, Inc
 Doing interesting things with small computers since 1979

-
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