md disk not unmountable

2003-03-06 Thread Stijn Hoop
Hi,

I got an 'md' error while doing a 'make release' on a -CURRENT machine;
the release process couldn't unmount the boot floppy staging area from
/mnt.

Testing by hand, I experienced the following:

Script started on Thu Mar  6 16:28:31 2003

[EMAIL PROTECTED] ~ mount | grep /mnt
/dev/md1c on /mnt (ufs, local)
[EMAIL PROTECTED] ~ sudo umount /mnt
umount: unmount of /mnt failed: Invalid argument
[EMAIL PROTECTED] ~ sudo mdconfig -l -u 1
md1 vnode   2880 KBytes
[EMAIL PROTECTED] ~ sudo mdconfig -l
md1 md0
[EMAIL PROTECTED] ~ sudo mdconfig -l -u 0
md0 swap262144 KBytes
[EMAIL PROTECTED] ~ sudo mdconfig -d -u 1
mdconfig: ioctl(/dev/mdctl): Device busy
[EMAIL PROTECTED] ~ df -h /mnt
FilesystemSize   Used  Avail Capacity  Mounted on
/dev/ad0s1a   252M78M   154M34%/

Script done on Thu Mar  6 16:31:42 2003

I think something is confused as to what is on /mnt somewhere.  Restarting the
release (with 'make rerelease') successfully completed, using md2.
Unfortunately I don't have the exact log of the first release build handy.

This is all on 

FreeBSD 5.0-CURRENT #1: Thu Mar  6 10:54:17 CET 2003 [EMAIL 
PROTECTED]:/local/freebsd/CURRENT/obj/local/freebsd/CURRENT/src/sys/JMWP424

Any clues?

--Stijn

-- 
The rain it raineth on the just
And also on the unjust fella,
But chiefly on the just, because
The unjust steals the just's umbrella.


pgp0.pgp
Description: PGP signature


Re: md disk not unmountable

2003-03-06 Thread Stijn Hoop
On Thu, Mar 06, 2003 at 04:35:53PM +0100, Stijn Hoop wrote:
 I got an 'md' error while doing a 'make release' on a -CURRENT machine;
 the release process couldn't unmount the boot floppy staging area from
 /mnt.

[snip]

 I think something is confused as to what is on /mnt somewhere.  Restarting the
 release (with 'make rerelease') successfully completed, using md2.

Doh, found a first clue:

[EMAIL PROTECTED] /local/freebsd/dist sudo umount mnt
umount: mnt not found in mount table, unmounted it anyway
[EMAIL PROTECTED] /local/freebsd/dist sudo umount dev
umount: dev not found in mount table, unmounted it anyway

So something *was* confused but I was too -- I should have tried the
chrootdir also of course :(

Anyway, how can a mount become 'lost', like what happened here?

--Stijn

-- 
Man had always assumed that he was more intelligent than dolphins because
he had achieved so much... the wheel, New York, wars, and so on, whilst
all the dolphins had ever done was muck about in the water having a good
time. But conversely the dolphins believed themselves to be more intelligent
than man for precisely the same reasons.
-- Douglas Adams, The Hitchhikers Guide To The Galaxy


pgp0.pgp
Description: PGP signature