Possible md bug in 2.4.16-pre1
On kernel 2.4.16-pre1 software RAID (tested with levels 0 and 1 on the same two drives), it is not possible to "raidstop /dev/md0" after mounting and using it, even though the partition is unmounted. Attempts are rejected with "/dev/md0: Device or resource busy". Even shutting down to single user mode does not release the device for stopping. I had to reboot to single user mode, then I was able to stop it, unconfigure it, etc.
Testing the throughput of Linux's software raid in levels raid1 and raid0 with various chunksizes was somewhat more tedious because of this problem...
Here is my (current) raidtab:
Raiddev /dev/md0
raid-level 0
nr-raid-disks 2
chunk-size 64k
persistent-superblock 1
nr-spare-disks 0
device /dev/sda2
raid-disk 0
device /dev/sdb1
raid-disk 1
Thanks...
Al
"Alok K. Dhir wrote:"
Quoted 3 lines
On kernel 2.4.16-pre1 software RAID (tested with levels 0 and 1 on the same two drives), it is not possible to "raidstop
/dev/md0" after mounting and using it, even though the partition is unmounted. Attempts
Raid has been in quite a shocking state for a long while and often there seems nor rhyme nor reason to its behaviour. If you want to stick your machine in an endless loop, just try initialising a mirror raid device with only one of its two components currently working.
Quoted 1 line
are rejected with "
/dev/md0: Device or resource busy". Even shutting
ya, ya. Try raidhotsetfaulty for good luck and then try raidhotremove. (curse, splutter. Will the authors ever write some docs that make sense. And also document the interactions with lvm).
Quoted 2 lines
down to single user mode does not release the device for stopping. I had to reboot to single user mode, then I was able to stop it,
You just said you couldn't?
Quoted 4 lines
unconfigure it, etc.
Testing the throughput of Linux's software raid in levels raid1 and raid0 with various chunksizes was somewhat more tedious because of this
You ain't kidding. It's a nightmare to test upon.
Quoted 12 lines
Here is my (current) raidtab:
Raiddev
/dev/md0
raid-level 0
nr-raid-disks 2
chunk-size 64k
persistent-superblock 1
nr-spare-disks 0
device/dev/sda2
raid-disk 0
device/dev/sdb1
raid-disk 1
That's a standard setup. It's not even confusing to me! Try it over lvm logical partitions and other raid devices (snicker).
Peter
Quoted 5 lines
Quoted 1 line
down to single user mode does not release the device for
stopping. I
Quoted 1 line
had to reboot to single user mode, then I was able to stop it,
You just said you couldn't?
Apologies for being unclear - _shutting down_ does *not* allow it to work (i.e. "shutdown now"). I must first issue a "reboot", and then use the "-s" flag at the boot prompt to get to single user mode, and then I am able to stop the raid device...
Quoted 10 lines · Peter T. Breuer
"Alok K. Dhir wrote:"
Quoted 3 lines
On kernel 2.4.16-pre1 software RAID (tested with levels 0 and 1 on the same two drives), it is not possible to "raidstop
/dev/md0" after mounting and using it, even though the partition is unmounted. AttemptsRaid has been in quite a shocking state for a long while and often there seems nor rhyme nor reason to its behaviour. If you want to stick your machine in an endless loop, just try initialising a mirror raid device with only one of its two components currently working.
Define "long while"... Here RAID-0 is working fine. Admittedly the file server is still on kernel 2.4.10-pre14 (+ some patches) but I can't be bothered to reboot it to install a new kernel (uptime is growing nicely...).
When you simulate not working component of RAID-0 by marking it as such in /etc/raidtab it works fine for me. I know because I used it when installing the second disk and creating several RAID-0 arrays on my file server on the new disk then copying the data accross, marking the old disk partitions as the other working half of the raid arrays and letting md driver synchronize them without any problems at all... I did a lot of raidstart/stops at that time too without problems.
Quoted 5 lines
Quoted 1 line
are rejected with "
/dev/md0: Device or resource busy". Even shuttingya, ya. Try raidhotsetfaulty for good luck and then try raidhotremove. (curse, splutter. Will the authors ever write some docs that make sense. And also document the interactions with lvm).
Hm, I should try 2.4.16 some time to see if it breaks here...
Anton
Signature · 5 lines
"I've not lost my mind. It's backed up on tape somewhere." - Unknown -- Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @) Linux NTFS Maintainer / WWW: http://linux-ntfs.sf.net/ ICQ: 8561279 / WWW: http://www-stu.christs.cam.ac.uk/~aia21/
Quoted 5 lines · Peter T. Breuer
Raid has been in quite a shocking state for a long while and often there seems nor rhyme nor reason to its behaviour. If you want to stick your machine in an endless loop, just try initialising a mirror raid device with only one of its two components currently working.
Hm, what? That's my standard migration path from non-mirrored to mirrored under 2.2.x You say, that this is not possible under 2.4?
Regards
Henning
Signature · 5 lines
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen -- Geschaeftsfuehrer INTERMETA - Gesellschaft fuer Mehrwertdienste mbH [email protected] Am Schwabachgrund 22 Fon.: 09131 / 50654-0 [email protected] D-91054 Buckenhof Fax.: 09131 / 50654-20