LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   when i use 'mdadm -S /dev/md127', it produce kernel event with no stop (http://www.linuxquestions.org/questions/linux-kernel-70/when-i-use-mdadm-s-dev-md127-it-produce-kernel-event-with-no-stop-876064/)

wwyyxx26 04-20-2011 03:23 AM

when i use 'mdadm -S /dev/md127', it produce kernel event with no stop
 
when I plug a disk which has superblock(it used to be a part of a raid5) into computer.

at the same time, I use 'udevadm monitor' to monitor the kernel event.

i use 'cat /proc/mdstat',it show me as below:

Personalities :
md127 : inactive sdc[8](S

976761560 blocks super 1.2

unused devices: <none>

so i use 'mdadm -S /dev/md127' to stop it, this show me that :

mdadm: stopped /dev/md127

but the 'udevadm monitor'begin to show me that without stop!

i copy some messages:

KERNEL[1303328552.894297] add /devices/virtual/block/md127 (block)

UDEV [1303328552.894311] remove /devices/virtual/bdi/9:127 (bdi)

KERNEL[1303328552.894323] add /devices/virtual/bdi/9:127 (bdi)

UDEV [1303328552.894466] add /devices/virtual/block/md127 (block)

UDEV [1303328552.894629] add /devices/virtual/bdi/9:127 (bdi)

UDEV [1303328552.894707] remove /devices/virtual/block/md127 (block)

KERNEL[1303328552.910670] remove /devices/virtual/bdi/9:127 (bdi)

KERNEL[1303328552.910710] remove /devices/virtual/block/md127 (block)

KERNEL[1303328552.910757] add /devices/virtual/block/md127 (block)

KERNEL[1303328552.910781] add /devices/virtual/bdi/9:127 (bdi)

UDEV [1303328552.910974] remove /devices/virtual/bdi/9:127 (bdi)

UDEV [1303328552.911109] add /devices/virtual/block/md127 (block)

UDEV [1303328552.911244] add /devices/virtual/bdi/9:127 (bdi)

UDEV [1303328552.911302] remove /devices/virtual/block/md127 (block)

KERNEL[1303328552.920662] remove /devices/virtual/bdi/9:127 (bdi)

KERNEL[1303328552.920700] remove /devices/virtual/block/md127 (block)

KERNEL[1303328552.920842] add /devices/virtual/block/md127 (block)

KERNEL[1303328552.920866] add /devices/virtual/bdi/9:127 (bdi)

UDEV [1303328552.920904] remove /devices/virtual/bdi/9:127 (bdi)

UDEV [1303328552.921149] add /devices/virtual/bdi/9:127 (bdi)

KERNEL[1303328552.933928] remove /devices/virtual/bdi/9:127 (bdi)

KERNEL[1303328552.934009] remove /devices/virtual/block/md127 (block)

KERNEL[1303328552.934233] add /devices/virtual/block/md127 (block)

KERNEL[1303328552.934262] add /devices/virtual/bdi/9:127 (bdi)

UDEV [1303328552.934360] remove /devices/virtual/bdi/9:127 (bdi)

UDEV [1303328552.934834] add /devices/virtual/bdi/9:127 (bdi)

UDEV [1303328552.934973] add /devices/virtual/block/md127 (block)

UDEV [1303328552.935265] remove /devices/virtual/block/md127 (block)

KERNEL[1303328552.943944] remove /devices/virtual/bdi/9:127 (bdi)

KERNEL[1303328552.944642] remove /devices/virtual/block/md127 (block)

UDEV [1303328552.944673] remove /devices/virtual/bdi/9:127 (bdi)

KERNEL[1303328552.944705] add /devices/virtual/block/md127 (block)

KERNEL[1303328552.944728] add /devices/virtual/bdi/9:127 (bdi)

UDEV [1303328552.944858] add /devices/virtual/bdi/9:127 (bdi)

UDEV [1303328552.945038] add /devices/virtual/block/md127 (block)

UDEV [1303328552.945277] remove /devices/virtual/block/md127 (block)

KERNEL[1303328552.957300] remove /devices/virtual/bdi/9:127 (bdi)

KERNEL[1303328552.957637] remove /devices/virtual/block/md127 (block)

KERNEL[1303328552.957672] add /devices/virtual/block/md127 (block)

KERNEL[1303328552.957696] add /devices/virtual/bdi/9:127 (bdi)

UDEV [1303328552.958071] remove /devices/virtual/bdi/9:127 (bdi)

UDEV [1303328552.958238] add /devices/virtual/block/md127 (block)

UDEV [1303328552.958673] add /devices/virtual/bdi/9:127 (bdi)

UDEV [1303328552.958735] remove /devices/virtual/block/md127 (block)

KERNEL[1303328552.967284] remove /devices/virtual/bdi/9:127 (bdi)

KERNEL[1303328552.967337] remove /devices/virtual/block/md127 (block)


is that a bug?

i use OpenSuSE 2.6.34

plpl303a 05-01-2011 05:26 PM

What does

cat /proc/mdstat

show you?

Does that report that the device is stopped?


All times are GMT -5. The time now is 09:39 AM.