Skip to contentSkip to conversation

mdadm and 2.4 kernel?

DISCUSSION Ste 2 participants 2 messages May 25, 2006 – May 26, 2006 MD RAID

lore
Share & tools
lore

Ste

author
#0 lore raw

Hi, for various reasons i'll need to run mdadm on a 2.4 kernel. Now I have 2.4.32 kernel.

Take a look:

root@data:~# mdadm --create --verbose /dev/md0 --level=1 --bitmap=/root/md0bitmap -n 2 /dev/nda /dev/ndb --force --assume-clean
mdadm: /dev/nda appears to be part of a raid array:
   level=raid1 devices=2 ctime=Thu May 25 20:10:47 2006
mdadm: /dev/ndb appears to be part of a raid array:
   level=raid1 devices=2 ctime=Thu May 25 20:10:47 2006
mdadm: size set to 39118144K
Continue creating array? y
mdadm: Warning - bitmaps created on this kernel are not portable
 between different architectured.  Consider upgrading the Linux kernel.
mdadm: Cannot set bitmap file for /dev/md0: No such device
root@data:~# mdadm --create --verbose /dev/md0 --level=1  -n 2 /dev/nda /dev/ndb --force --assume-clean
mdadm: /dev/nda appears to be part of a raid array:
   level=raid1 devices=2 ctime=Thu May 25 20:10:47 2006
mdadm: /dev/ndb appears to be part of a raid array:
   level=raid1 devices=2 ctime=Thu May 25 20:10:47 2006
mdadm: size set to 39118144K
Continue creating array? y
mdadm: SET_ARRAY_INFO failed for /dev/md0: File exists
root@data:~# 

Obviously the devices "/dev/nda" and "/dev/ndb" exists (i can make fdisk on them).

Can someone help me?
Thanks.
Stefano.

#1 lore raw
Quoted 5 lines · On Thursday May 25, [email protected] wrote:

Hi, for various reasons i'll need to run mdadm on a 2.4 kernel. Now I have 2.4.32 kernel.

Take a look:

Quoted 12 lines
root@data:~# mdadm --create --verbose /dev/md0 --level=1 
--bitmap=/root/md0bitmap -n 2 /dev/nda /dev/ndb --force --assume-clean
mdadm: /dev/nda appears to be part of a raid array:
    level=raid1 devices=2 ctime=Thu May 25 20:10:47 2006
mdadm: /dev/ndb appears to be part of a raid array:
    level=raid1 devices=2 ctime=Thu May 25 20:10:47 2006
mdadm: size set to 39118144K
Continue creating array? y
mdadm: Warning - bitmaps created on this kernel are not portable
  between different architectured.  Consider upgrading the Linux kernel.
mdadm: Cannot set bitmap file for /dev/md0: No such device

2.4 does not support bitmaps (nor do early 2.6 kernels).

Quoted 11 lines
root@data:~# mdadm --create --verbose /dev/md0 --level=1  -n 2 /dev/nda 
/dev/ndb --force --assume-clean
mdadm: /dev/nda appears to be part of a raid array:
    level=raid1 devices=2 ctime=Thu May 25 20:10:47 2006
mdadm: /dev/ndb appears to be part of a raid array:
    level=raid1 devices=2 ctime=Thu May 25 20:10:47 2006
mdadm: size set to 39118144K
Continue creating array? y
mdadm: SET_ARRAY_INFO failed for /dev/md0: File exists
root@data:~# 

It seems /dev/md0 is already active somehow.
Try
mdadm -S /dev/md0
first. What does "cat /proc/mdstat" say?

NeilBrown

Quoted 16 lines

Obviously the devices "/dev/nda" and "/dev/ndb" exists (i can make fdisk on them).

Can someone help me?
Thanks.
Stefano.

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html