Hi there,
On Wed, 24 May 2000, Chris Tooley wrote:
> Turning off RAID for md0 md: md0 still mounted.
> /dev/md0: Device or resource busy
> [FAILED]
> Please standby while rebooting the system...
> ****************************************************************************
> ********
> The system then reboots and has to rebuild the sb struct offset on md0.
The problem is that md0 is mounted read/write as the root filing system.
It looks like your init scripts aren't quite right.
> If I go to init 1, then try to umount /dev/md0, it still tells me the device
> or resource is busy.
One way to shut it down safely is to do:
As a temporary measure, you may be able to remount root read-only (without
modifying /etc/mtab) and then use raidstop:
# init 1
# mount -o remount,ro -n /
# raidstop /dev/md0
I don't know if raidstop will complain or not. It *may* be safe to reboot
straight after the remount (because the filing system is synced) but I'm
not sure.
I'm afraid I don't know how you need to modify your init scripts but I
expect if you look at the stuff in /etc/init.d/rc6.d (or similar) you'll
be able to add something like the above.
I will add that I sort-of have had the same problem. I use Mandrake 7.0-2,
which includes the latest raidtools and kernel-raid patches. When I reboot
md0 shuts down OK, but when I poweroff it fails to raidstop it.
I haven't bothered to work out how to fix it - if I need to power it off I
just use the three-fingered salute and then flip the switch!
Hope this helps as an interim measure...
Corin
/------------------------+-------------------------------------\
| Corin Hartland-Swann | Mobile: +44 (0) 79 5854 0027 |
| Commerce Internet Ltd | Tel: +44 (0) 20 7491 2000 |
| 22 Cavendish Buildings | Fax: +44 (0) 20 7491 2010 |
| Gilbert Street | |
| Mayfair | Web: http://www.commerce.uk.net/ |
| London W1Y 1FE | E-Mail: [EMAIL PROTECTED] |
\------------------------+-------------------------------------/