lkml.org 
[lkml]   [2000]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: swapoff weird
> On Sat, 9 Dec 2000, Pavel Machek wrote:
>
> > It is possible to remove swapfile in use. Great, but how do you
> > swap off then? Who is to blame?
>
> As usual, root is to blame ;)

I do not agree. It is too easy to get to situation like this.

> > root@bug:~# swapoff /tmp/swap
> > swapoff: /tmp/swap: No such file or directory
> > root@bug:~# > /tmp/swap
> > root@bug:~# swapoff /tmp/swap
> > swapoff: /tmp/swap: Invalid argument
> > root@bug:~#
>
> Don't let your automatic /tmp cleaners remove the swap
> file ;)
>
> > How do I get out of this bad situation?
>
> Reboot.

I'm afraid even reboot will not work.

I can't swapoff. Therefore filesystem is busy (it must be -- kernel
might be writing to file on it!). And no way to get out of that.
--
The best software in life is free (not shareware)! Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.076 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site