Re: Is there a good reason why I can't "mdadm -Gfn1 /dev/md1" ?

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

 



> Hmmm.... yes... Didn't think of that did I?

I know the feeling :-(

> I'm very close to releasing mdadm 1.12.0.  It will have this fixed.

Thanks.

> If you are impatient, the patch against 1.11.0 is very simple.  See below.
> +		case O(GROW,'f'): /* ditto */

That was exactly the patch I applied, apart from the comment, and I put it one 
line higher :-))
( I really meant "Is there a good reason not to, as I have already done it"!)


The next thing I stumbled over was:

       When  reducing the number of devices in a RAID1 array, the slots which
       are to be removed from the array must already be vacant.

Is there a command to "move this device to another slot"? I'm stuck with:

	md8 : active raid1 sdb8[1]
	      4208896 blocks [2/1] [_U]

which I can't reduce to a one way mirror as it's in slot 1 not 0 :-((



Are you interested in problems compiling under 64b?
I fixed the first using a simple "(int)", but I'm not up enough on how what 
long long unsigned int should mean with different length words that I just 
chopped the "-Werror" so I could test it ...

gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
-DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o bitmap.o bitmap.c
bitmap.c: In function `bitmap_fd_read':
bitmap.c:130: warning: int format, different type arg (arg 3)
bitmap.c:171: warning: long long unsigned int format, __u64 arg (arg 3)
bitmap.c: In function `ExamineBitmap':
bitmap.c:241: warning: long long unsigned int format, __u64 arg (arg 2)
bitmap.c:242: warning: long long unsigned int format, __u64 arg (arg 2)
bitmap.c:247: warning: long long unsigned int format, __u64 arg (arg 2)
make: *** [bitmap.o] Error 1

-
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