Patrick wrote: > This is my first raid, i got it working without problems (i think) but my > dmesg contains this: > Is this a normal behaviour > > md: Autodetecting RAID arrays. > md: autorun ... ...
The md kernel module is quite verbose. Here is a patch to make the kernel print only the necessary lines: --- drivers/md/md.c 2005-03-02 08:37:52.000000000 +0100 +++ drivers/md/md.c.quiet 2005-04-20 19:53:24.000000000 +0200 @@ -538,8 +538,10 @@ __u64 ev1, ev2; mdp_super_t *refsb = (mdp_super_t*)page_address(refdev->sb_page); if (!uuid_equal(refsb, sb)) { +/* printk(KERN_WARNING "md: %s has different UUID to %s\n", b, bdevname(refdev->bdev,b2)); +*/ goto abort; } if (!sb_equal(refsb, sb)) { @@ -1035,7 +1037,9 @@ list_add(&rdev->same_set, &mddev->disks); rdev->mddev = mddev; +/* printk(KERN_INFO "md: bind<%s>\n", bdevname(rdev->bdev,b)); +*/ return 0; } @@ -1767,8 +1771,10 @@ MD_BUG(); return; } - + +/* printk(KERN_INFO "md: running: "); +*/ ITERATE_RDEV(mddev,rdev,tmp) { char b[BDEVNAME_SIZE]; @@ -1803,18 +1809,24 @@ mddev_t *mddev; char b[BDEVNAME_SIZE]; +/* printk(KERN_INFO "md: autorun ...\n"); +*/ while (!list_empty(&pending_raid_disks)) { dev_t dev; rdev0 = list_entry(pending_raid_disks.next, mdk_rdev_t, same_set); +/* printk(KERN_INFO "md: considering %s ...\n", bdevname(rdev0->bdev,b)); +*/ INIT_LIST_HEAD(&candidates); ITERATE_RDEV_PENDING(rdev,tmp) if (super_90_load(rdev, rdev0, 0) >= 0) { +/* printk(KERN_INFO "md: adding %s ...\n", +*/ bdevname(rdev->bdev,b)); list_move(&rdev->same_set, &candidates); } @@ -1851,7 +1863,9 @@ mdname(mddev), bdevname(rdev0->bdev,b)); mddev_unlock(mddev); } else { +/* printk(KERN_INFO "md: created %s\n", mdname(mddev)); +*/ ITERATE_RDEV_GENERIC(candidates,rdev,tmp) { list_del_init(&rdev->same_set); if (bind_rdev_to_array(rdev, mddev)) -- echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" [EMAIL PROTECTED] -- gentoo-user@gentoo.org mailing list