570 lines
8.2 KiB
HTML
570 lines
8.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>The SWAPFS file system</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="EVMS User Guide"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Mounting and unmounting volumes from within EVMS"
|
|
HREF="mountunmount.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Unmounting a volume"
|
|
HREF="x3804.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Plug-in operations tasks"
|
|
HREF="plugintasks.html"></HEAD
|
|
><BODY
|
|
CLASS="sect1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>EVMS User Guide</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="x3804.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 19. Mounting and unmounting volumes from within EVMS</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="plugintasks.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="sect1"
|
|
><H1
|
|
CLASS="sect1"
|
|
><A
|
|
NAME="AEN3863"
|
|
></A
|
|
>19.3. The SWAPFS file system</H1
|
|
><P
|
|
>A volume with the SWAPFS file system is not mounted or unmounted.
|
|
Rather, swapping is turned on for the volume using the
|
|
<B
|
|
CLASS="command"
|
|
>sbin/swapon</B
|
|
> command and turned off using the
|
|
<command>sbin/swapoff</command>. EVMS lets you turn swapping on or off
|
|
for a volume from within EVMS without having to go to a separate terminal session.</P
|
|
><P
|
|
>As with mounting and unmounting, EVMS performs the swapon and swapoff
|
|
operations immediately. It does not wait until the changes are saved.</P
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="AEN3868"
|
|
></A
|
|
>19.3.1. Turning swap on</H2
|
|
><P
|
|
>This section tells how to turn swap on using the various EVMS user interfaces.</P
|
|
><DIV
|
|
CLASS="sect3"
|
|
><H3
|
|
CLASS="sect3"
|
|
><A
|
|
NAME="AEN3871"
|
|
></A
|
|
>19.3.1.1. Using the EVMS GUI</H3
|
|
><P
|
|
>Follow these steps to turn swap on with the EVMS GUI:
|
|
|
|
<P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>Select <SPAN
|
|
CLASS="guimenu"
|
|
>Actions</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Other</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Volume tasks...</SPAN
|
|
>.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select the volume you want to turn on swapping and click <SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select "Swap on" and click <SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select the priority for the swap. If you select "High" you will
|
|
get an additional prompt for the priority level.
|
|
The priority level must be a number in the range of 0 to 32767.
|
|
The default is 0.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Click <SPAN
|
|
CLASS="guibutton"
|
|
>Swap on</SPAN
|
|
>.</P
|
|
></LI
|
|
></OL
|
|
>
|
|
</P
|
|
><P
|
|
>Alternatively, you can turn swap on from the EVMS GUI
|
|
context-sensitive menu:</P
|
|
><P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>Right click the volume with the SWAPFS you want to turn on.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Click <SPAN
|
|
CLASS="guimenuitem"
|
|
>Swap on...</SPAN
|
|
></P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select the priority for the swap. If you select "High" you will get an
|
|
additional prompt for the priority level. The priority level must be a number
|
|
in the range of 0 to 32767. The default is 0.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
> Click <SPAN
|
|
CLASS="guibutton"
|
|
>Swap on</SPAN
|
|
>.</P
|
|
></LI
|
|
></OL
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect3"
|
|
><H3
|
|
CLASS="sect3"
|
|
><A
|
|
NAME="AEN3904"
|
|
></A
|
|
>19.3.1.2. Using Ncurses</H3
|
|
><P
|
|
>Follow these steps to turn swap on with Ncurses:
|
|
|
|
<P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>Select <SPAN
|
|
CLASS="guimenu"
|
|
>Actions</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Other</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Volume tasks...</SPAN
|
|
>.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select the volume on which you want to turn on swapping and select
|
|
<SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select "Swap on" and select <SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select the priority for the swap. If you select "High" you will get an
|
|
additional prompt for the priority level. The priority level must be a number in
|
|
the range of 0 to 32767. The default is 0.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select "Swap on."</P
|
|
></LI
|
|
></OL
|
|
>
|
|
</P
|
|
><P
|
|
>Alternatively, you can turn swap on with the Ncurses
|
|
context-sensitive menu:</P
|
|
><P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>Highlight the volume with the SWAPFS you want to turn on.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select "Swap on...."</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
> Select the priority for the swap. If you select "High" you will get an
|
|
additional prompt for the priority level. The priority level must be a number in
|
|
the range of 0 to 32767. The default is 0.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select "Swap on."</P
|
|
></LI
|
|
></OL
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect3"
|
|
><H3
|
|
CLASS="sect3"
|
|
><A
|
|
NAME="AEN3934"
|
|
></A
|
|
>19.3.1.3. Using the CLI</H3
|
|
><P
|
|
>To turn swap on with the CLI, use the following command:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> Task: swapon, <volume>[, priority=low | , priority=high [level=0..32767]]
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
><volume> is the name of the volume with SWAPFS you want to turn on.</P
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="AEN3939"
|
|
></A
|
|
>19.3.2. Turning swap off</H2
|
|
><P
|
|
>This section tells how to turn swap off using the various EVMS user interfaces.</P
|
|
><DIV
|
|
CLASS="sect3"
|
|
><H3
|
|
CLASS="sect3"
|
|
><A
|
|
NAME="AEN3942"
|
|
></A
|
|
>19.3.2.1. Using the EVMS GUI</H3
|
|
><P
|
|
>Follow these steps to turn swap off with the EVMS GUI:
|
|
|
|
<P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>Select <SPAN
|
|
CLASS="guimenu"
|
|
>Actions</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Other</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Volume tasks...</SPAN
|
|
>.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select the volume you want to turn off swapping and click <SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select "Swap off" and click <SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Click <SPAN
|
|
CLASS="guibutton"
|
|
>Swap off</SPAN
|
|
>.</P
|
|
></LI
|
|
></OL
|
|
>
|
|
</P
|
|
><P
|
|
>Alternatively, you can turn swap off from the EVMS GUI
|
|
context-sensitive menu:</P
|
|
><P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>Right click the volume with the SWAPFS you want to turn off.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Click <SPAN
|
|
CLASS="guimenuitem"
|
|
>Swap off...</SPAN
|
|
></P
|
|
></LI
|
|
><LI
|
|
><P
|
|
> Click <SPAN
|
|
CLASS="guibutton"
|
|
>Swap off</SPAN
|
|
>.</P
|
|
></LI
|
|
></OL
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect3"
|
|
><H3
|
|
CLASS="sect3"
|
|
><A
|
|
NAME="AEN3971"
|
|
></A
|
|
>19.3.2.2. Using Ncurses</H3
|
|
><P
|
|
>Follow these steps to turn swap off with Ncurses:
|
|
|
|
<P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>Select <SPAN
|
|
CLASS="guimenu"
|
|
>Actions</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Other</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Volume tasks...</SPAN
|
|
>.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select the volume on which you want to turn off swapping and select
|
|
<SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select "Swap off" and select <SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select "Swap off."</P
|
|
></LI
|
|
></OL
|
|
>
|
|
</P
|
|
><P
|
|
>Alternatively, you can turn swap on with the Ncurses
|
|
context-sensitive menu:</P
|
|
><P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>Highlight the volume with the SWAPFS you want to turn off.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select "Swap off...."</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select "Swap off."</P
|
|
></LI
|
|
></OL
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect3"
|
|
><H3
|
|
CLASS="sect3"
|
|
><A
|
|
NAME="AEN3997"
|
|
></A
|
|
>19.3.2.3. Using the CLI</H3
|
|
><P
|
|
>To turn swap on with the CLI, use the following command:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> Task: swapoff, <volume>
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
><volume> is the name of the volume with SWAPFS you want to turn off.</P
|
|
></DIV
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="x3804.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="plugintasks.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Unmounting a volume</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="mountunmount.html"
|
|
ACCESSKEY="U"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Plug-in operations tasks</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |