[lkml]   [2002]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subject/dev/md0: Device or resource busy
    i'm using 2.4.19-pre3-ac1 (on debian woody) and i was playing with md. it
    appears impossible to "raidstop /dev/md0" when i'm using the 0xfd
    autodetect partition type.

    i have 3 other md devices which i can stop no problem (even with 0xfd
    autodetection), just not /dev/md0.

    % raidstop /dev/md0
    /dev/md0: Device or resource busy

    i don't have any filesystem mounted on md0, and "lsof | grep md" doesn't
    show anything.

    % dmesg | grep md0
    md: created md0
    md0: max total readahead window set to 124k
    md0: 1 data-disks, max readahead per data-disk: 124k
    raid1: raid set md0 active with 2 out of 2 mirrors
    md: updating md0 RAID superblock on device
    md: md0 still in use.

    if i change the partition type to 0xda (is there something more
    appropriate?), and let /etc/init.d/raid2 do the "raidstart /dev/md0" then
    i can raidstop /dev/md0 no problem.

    is there maybe a reference counting problem when 0xfd is in use?

    note that my other md partitions are all 0xfd ... and i can raidstop them
    just fine. (although i have to do it in a particular order since /dev/md3
    is a stripe of /dev/md{1,2}, which are mirrors. /dev/md1 happens to be
    other partitions on the same disks as /dev/md0.)


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:25    [W:0.021 / U:3.768 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site