Re[2]: Bugreport mdadm-2.0-devel-1

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

 



Hi Neil!
Thanks much for your help, array creation using devel-2 just works,
however, the array can't be assembled again after it's stopped:(

# mdadm --zero-superblock -e 1 /dev/sdb
# mdadm --zero-superblock -e 1 /dev/sdc
# /bin/rm -rf /bitmap
# mdadm -C /dev/md0 -e 1 --bitmap /bitmap -l 1 -n 2 /dev/sdb /dev/sdc
mdadm: array /dev/md0 started.
# more /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdc[1] sdb[0]
      33554424 blocks [2/2] [UU]
      [>....................]  resync =  0.6% (206400/33554424) finish=16.1min s
peed=34400K/sec
      bitmap: 4096/4096 pages [16384KB], 4KB chunk, file: /bitmap

unused devices: <none>
# mdadm -S /dev/md0
# more /proc/mdstat
Personalities : [raid1]
unused devices: <none>
# mdadm -A /dev/md0 -e 1 --bitmap /bitmap /dev/sdb /dev/sdc
mdadm: device 1 in /dev/md0 has wrong state in superblock, but /dev/sdc seems ok
mdadm: failed to add /dev/sdc to /dev/md0: Invalid argument
mdadm: failed to add /dev/sdb to /dev/md0: Invalid argument
mdadm: /dev/md0 assembled from 0 drives - not enough to start the array.
(even if you stop the array after resync completes, it doesn't matter
as expected).

Please advise.

BTW, my endian.h (and the files it includes) also doesn't provide various
conversion functions, although byteorder.h advises to use it.

Thanks,

Maxim.

Thursday, July 7, 2005, 3:10:13 AM, you wrote:

NB> On Wednesday July 6, maximkoz@xxxxxxxxxxxxxxxx wrote:
>> Hi!
>> I'm getting problems with raid1 creation using new superblock format.
>> Kernel used is 2.6.12.2 (with drivers/md and include/linux/raid taken from
>> 2.6.13-rc1 to have a support for bitmaps and bug correction of md
>> failing when starting resync), all compiled together.
>> 
>> For mdadm I tried both mdadm-2.0-devel-1 and mdadm-2.0-devel-1a.
>> Compiles only if -Werror is removed from the Makefile, otherwise
>> /usr/include/asm/byteorder.h:6:2: #warning using private kernel
>> header; include <endian.h> instead!

NB> Hmmm... I don't get that.  I must have different header files.  And my
NB> <endian.h> doesn't provide the needed functionality :-(

NB> Anyway, try
NB>  
NB> http://www.cse.unsw.edu.au/~neilb/source/mdadm/mdadm-2.0-devel-2.tgz

NB> (and remove -Werror).  It works for me with the command line that you
NB> give.

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