Re: can't umount /usr(/dev/hdb3)

1997-05-20 Thread Leslie Mikesell
> The other asnwers in this list are all very usefull, but sometimes
> I find that whatever I do, I cannot unmount for example /usr.
> In such cases, it's best to do
> 
>   mount -o remount,ro /usr
> 
> i.e. remount it read-only, so that all data is written do the partition,
> and you can now safely switch off the computer (execute "halt").
> (assuming all other partions are unmonuted properly).
> 

I've been having trouble with hardware errors on one disk drive causing a
filesystem panic that appears to force the filesystem into read-only mode
but the processes accessing it are blocked and won't die from signals.
I would like to be able to force a reboot remotely when this happens but
even 'reboot -f' hangs.  Is there some other way besides punching the reset
button to make the machine restart?

Les Mikesell
  [EMAIL PROTECTED]


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: can't umount /usr(/dev/hdb3)

1997-03-31 Thread joost witteveen
> >The other asnwers in this list are all very usefull, but sometimes
> >I find that whatever I do, I cannot unmount for example /usr.
> >In such cases, it's best to do
> >
> >  mount -o remount,ro /usr
> >
> >i.e. remount it read-only, so that all data is written do the partition,
> >and you can now safely switch off the computer (execute "halt").
> >(assuming all other partions are unmonuted properly).
> 
> Or better still, find what process is using /dev/hdb3 by doing this:
> 
> fuser -uvm 

That is basically what the others suggested. But still, sumetimes
I'm unable to kill -KILL those processes, or whatever. But thenagain,
your -uvm options are quite nice, and seem to find more process than
I'm used to. Thanks

-- 
joost witteveen [EMAIL PROTECTED]

I came, I saw, ..., well, it wasn't free so I left again. (LUA, 1988)


Fixed...Re: can't umount /usr(/dev/hdb3)

1997-03-31 Thread David Puryear
Hi all,

On 30-Mar-97 Dale Scheetz wrote:
>> If you are in any of the mounted directories (including the top, e.g. 
>> /mnt), then umount would give this message and refues to unmount the 
>> device.
>> 
>I don't know that this is strictly true. For instance, my fstab mounts
>/usr from a seperate device, and, I assume, unmounts it during shutdown.
>At the time of shutdown, all my users are logged in and sitting in their
>user accounts. Now, I know that shutdown kills all the users off before it
>does the unmounts, so by then they are not an issue. I assume all root
>processes are killed off by then as well.
>I had a problem recently of this type. I tried to unmount /cdrom and was
>told that /dev/scd0 was busy. After going to each account logged in and
>checking for processes using /cdrom, and finding none, I eventually logged
>out all users but root at VC1 and was still unable to unmount. Since I
>REALLY wanted the cd that was in the drive, I shut the drive off and then
>back on. This let the drive open it's door so I could retrieve the cd, but
>created problems for the system (i/o errors from df) until I rebooted.
>I have learned since that I could probably have 'rmmod'ed the driver and
>re-'insmod'ed it, but still have no idea why the system thought that the
>device was busy.
>
>Waiting is,

The cause of my umount problem was bash-2.0-3_i386.deb. This problem was fixed
when I downgraded it. 

Thanks everyone for your help,
David 


Re: can't umount /usr(/dev/hdb3)

1997-03-31 Thread Karl Ferguson
At 12:44 AM 31/03/97 +0200, joost witteveen wrote:
>> Hi all,
>> 
>> I upgrade a lot of packages, don't know exactly which ones though,  and now
>> shutdown -h now and umount will not unmount /usr(aka /dev/hdb3). It
gives me
>> same error:
>> umount: /dev/hdb3: device is busy 
>> 
>> Does anyone have any idea as to what is causing this?
>
>The other asnwers in this list are all very usefull, but sometimes
>I find that whatever I do, I cannot unmount for example /usr.
>In such cases, it's best to do
>
>  mount -o remount,ro /usr
>
>i.e. remount it read-only, so that all data is written do the partition,
>and you can now safely switch off the computer (execute "halt").
>(assuming all other partions are unmonuted properly).

Or better still, find what process is using /dev/hdb3 by doing this:

fuser -uvm 

What I mean by mounted system is /var or /home and the like.  This will
print out process ID and the USER who's controlling it (and what the
process is - ie: named).

Regards

--
Karl Ferguson
Tower Networking Pty Ltd   Tel: +61-9-456- [EMAIL PROTECTED]
t/a STAR Online Services   Fax: +61-9-455-2776 [EMAIL PROTECTED]


Re: can't umount /usr(/dev/hdb3)

1997-03-30 Thread joost witteveen
> Hi all,
> 
> I upgrade a lot of packages, don't know exactly which ones though,  and now
> shutdown -h now and umount will not unmount /usr(aka /dev/hdb3). It gives me
> same error:
> umount: /dev/hdb3: device is busy 
> 
> Does anyone have any idea as to what is causing this?

The other asnwers in this list are all very usefull, but sometimes
I find that whatever I do, I cannot unmount for example /usr.
In such cases, it's best to do

  mount -o remount,ro /usr

i.e. remount it read-only, so that all data is written do the partition,
and you can now safely switch off the computer (execute "halt").
(assuming all other partions are unmonuted properly).

-- 
joost witteveen [EMAIL PROTECTED]

I came, I saw, ..., well, it wasn't free so I left again. (LUA, 1988)


Re: can't umount /usr(/dev/hdb3)

1997-03-30 Thread Dale Scheetz
On Sat, 29 Mar 1997, Syrus Nemat-Nasser wrote:

> On Sat, 29 Mar 1997, David Puryear wrote:
> 
> > I upgrade a lot of packages, don't know exactly which ones though,  and now
> > shutdown -h now and umount will not unmount /usr(aka /dev/hdb3). It gives me
> > same error:
> > umount: /dev/hdb3: device is busy 
> > 
> > Does anyone have any idea as to what is causing this?
> 
> If you are in any of the mounted directories (including the top, e.g. 
> /mnt), then umount would give this message and refues to unmount the 
> device.
> 
I don't know that this is strictly true. For instance, my fstab mounts
/usr from a seperate device, and, I assume, unmounts it during shutdown.
At the time of shutdown, all my users are logged in and sitting in their
user accounts. Now, I know that shutdown kills all the users off before it
does the unmounts, so by then they are not an issue. I assume all root
processes are killed off by then as well.
I had a problem recently of this type. I tried to unmount /cdrom and was
told that /dev/scd0 was busy. After going to each account logged in and
checking for processes using /cdrom, and finding none, I eventually logged
out all users but root at VC1 and was still unable to unmount. Since I
REALLY wanted the cd that was in the drive, I shut the drive off and then
back on. This let the drive open it's door so I could retrieve the cd, but
created problems for the system (i/o errors from df) until I rebooted.
I have learned since that I could probably have 'rmmod'ed the driver and
re-'insmod'ed it, but still have no idea why the system thought that the
device was busy.

Waiting is,

Dwarf
-- 
_-_-_-_-_-_-  _-_-_-_-_-_-_-

aka   Dale Scheetz   Phone:   1 (904) 656-9769
  Flexible Software  11000 McCrackin Road
  e-mail:  [EMAIL PROTECTED] Tallahassee, FL  32308

_-_-_-_-_-_- If you don't see what you want, just ask _-_-_-_-_-_-_-


Re: can't umount /usr(/dev/hdb3)

1997-03-30 Thread Graeme A Stewart
David Puryear <[EMAIL PROTECTED]> writes:

> 
> Hi all,
> 
> I upgrade a lot of packages, don't know exactly which ones though,  and now
> shutdown -h now and umount will not unmount /usr(aka /dev/hdb3). It gives me
> same error:
> umount: /dev/hdb3: device is busy 
> 

Try doing `fuser -m /usr', then you'll find out what process it is
that's still using /usr (you probably want to put it into your
/etc/init.d/halt script at an approprate point, then exit from the
script to get more information). /etc/init.d/halt should send SIGTERM
then SIGKILL to all processes before umounting filesystems, so it is
strange that there is still a process that's alive.

Hope that helps you work it out,

Graeme

-- 
| Graeme A Stewart, pgp public key  finger [EMAIL PROTECTED]|
|  Key fingerprint =  AF C7 BF A4 52 D5 3C 3B  17 A5 62 43 DA 15 E8 97  |
|   "Keep a good head, and always carry a lightbulb."   Dylan   |


Re: can't umount /usr(/dev/hdb3)

1997-03-30 Thread Syrus Nemat-Nasser
On Sat, 29 Mar 1997, David Puryear wrote:

> I upgrade a lot of packages, don't know exactly which ones though,  and now
> shutdown -h now and umount will not unmount /usr(aka /dev/hdb3). It gives me
> same error:
> umount: /dev/hdb3: device is busy 
> 
> Does anyone have any idea as to what is causing this?

If you are in any of the mounted directories (including the top, e.g. 
/mnt), then umount would give this message and refues to unmount the 
device.

Syrus.

-- 

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Syrus Nemat-Nasser <[EMAIL PROTECTED]>UCSD Physics Dept.



can't umount /usr(/dev/hdb3)

1997-03-29 Thread David Puryear
Hi all,

I upgrade a lot of packages, don't know exactly which ones though,  and now
shutdown -h now and umount will not unmount /usr(aka /dev/hdb3). It gives me
same error:
umount: /dev/hdb3: device is busy 

Does anyone have any idea as to what is causing this?

Thanks,
David
p.s. From now on, I will upgrade only one package at a time than reboot to make
sure nothing is broken.;-)
 and now shutdown -h now and umount will not umount
/usr(aka /dev/hdb3). It gives me same error:
umount: /dev/hdb3: device is busy 

Does anyone have any idea as to what is causing this?