old-www/LDP/EVMSUG/html/fsimmkfs.html

483 lines
6.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Example: add a file system to a volume</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="FSIMs and file system operations"
HREF="evmsfsimops.html"><LINK
REL="PREVIOUS"
TITLE="The FSIMs supported by EVMS"
HREF="fsimsuppevms.html"><LINK
REL="NEXT"
TITLE="Example: check a file system"
HREF="fsimmkfsaex.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="fsimsuppevms.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 13. FSIMs and file system operations</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="fsimmkfsaex.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="fsimmkfs"
></A
>13.2. Example: add a file system to a volume</H1
><P
>After you have made an EVMS or compatibility volume, add a file system to the volume before mounting it. You can add a file system to a volume through the EVMS interface of your choice.</P
><A
NAME="AEN2166"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
><DIV
CLASS="example"
><A
NAME="AEN2167"
></A
><P
><B
>Example 13-1. Add a JFS File System to a Volume</B
></P
><P
>This example creates a new JFS file system, named <TT
CLASS="filename"
>jfs_vol</TT
>, on volume <TT
CLASS="filename"
>/dev/evms/my_vol</TT
>.
</P
></DIV
></BLOCKQUOTE
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="fsimmkfsgui"
></A
>13.2.1. Using the EVMS GUI</H2
><P
>Follow these steps to create a JFS file system with the EVMS GUI:
<P
></P
><OL
TYPE="1"
><LI
><P
>Select <SPAN
CLASS="guimenu"
>Actions</SPAN
>-&gt;<SPAN
CLASS="guimenuitem"
>File Systems</SPAN
>-&gt;<SPAN
CLASS="guimenuitem"
>Make</SPAN
>.
</P
></LI
><LI
><P
>Select <SPAN
CLASS="guimenu"
>JFS File System Interface Module</SPAN
>.
</P
></LI
><LI
><P
>Click <SPAN
CLASS="guibutton"
>Next</SPAN
>.
</P
></LI
><LI
><P
>Select <SPAN
CLASS="guimenu"
>/dev/evms/my_vol</SPAN
>.
</P
></LI
><LI
><P
>Click <SPAN
CLASS="guibutton"
>Next</SPAN
>.
</P
></LI
><LI
><P
>Type <TT
CLASS="userinput"
><B
>jfs_vol</B
></TT
> in the "Volume Label"
field. Customize any other options you are interested in.
</P
></LI
><LI
><P
>Click <SPAN
CLASS="guibutton"
>Make</SPAN
>.
</P
></LI
><LI
><P
>The operation is completed when you save.</P
></LI
></OL
>
</P
><P
>Alternatively, you can perform some of the steps to create a file system with the GUI
context sensitive menu:</P
><P
></P
><OL
TYPE="1"
><LI
><P
>From the <SPAN
CLASS="guimenuitem"
>Volumes</SPAN
> tab, right click
<TT
CLASS="filename"
>/dev/evms/my_vol</TT
>.</P
></LI
><LI
><P
>Click <SPAN
CLASS="guimenuitem"
>Make Filesystem...</SPAN
></P
></LI
><LI
><P
>Continue creating the file system beginning with step 2 of the
GUI instructions. You can skip steps 4 and 5 of the GUI instructions.</P
></LI
></OL
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="fsimmkfsncurses"
></A
>13.2.2. Using Ncurses</H2
><P
>Follow these steps to create a JFS file system with Ncurses:
<P
></P
><OL
TYPE="1"
><LI
><P
>Select <SPAN
CLASS="guimenu"
>Actions</SPAN
>-&gt;<SPAN
CLASS="guimenuitem"
>File Systems</SPAN
>-&gt;<SPAN
CLASS="guimenuitem"
>Make</SPAN
>.
</P
></LI
><LI
><P
>Select JFS File System Interface Module.</P
></LI
><LI
><P
>Activate <SPAN
CLASS="guibutton"
>Next</SPAN
>.</P
></LI
><LI
><P
>Select <TT
CLASS="filename"
>/dev/evms/my_vol</TT
>.</P
></LI
><LI
><P
>Activate <SPAN
CLASS="guibutton"
>Next</SPAN
>.</P
></LI
><LI
><P
>Scroll down using the <B
CLASS="keycap"
>down</B
> arrow until
<SPAN
CLASS="guimenuitem"
>Volume Label</SPAN
> is highlighted.
</P
></LI
><LI
><P
>Press <B
CLASS="keycap"
>Spacebar</B
>.
</P
></LI
><LI
><P
>At the "::" prompt enter <TT
CLASS="userinput"
><B
>jfs_vol</B
></TT
>.
</P
></LI
><LI
><P
>Press <B
CLASS="keycap"
>Enter</B
>.
</P
></LI
><LI
><P
>Activate <SPAN
CLASS="guibutton"
>Make</SPAN
>.</P
></LI
></OL
>
</P
><P
>Alternatively, you can perform some of the steps to create a file system with the
context sensitive menu:</P
><P
></P
><OL
TYPE="1"
><LI
><P
>From the Volumes view, press <B
CLASS="keycap"
>Enter</B
> on
<TT
CLASS="filename"
>/dev/evms/my_vol</TT
>.</P
></LI
><LI
><P
>Activate the <SPAN
CLASS="guimenuitem"
>Make Filesystem</SPAN
> menu item.</P
></LI
><LI
><P
>Continue creating the file system beginning with step 2 of the
Ncurses instructions.</P
></LI
></OL
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="fsimmkfscli"
></A
>13.2.3. Using the CLI</H2
><P
>Use the
<B
CLASS="command"
>mkfs</B
> command to create the new file system.
The arguments to <B
CLASS="command"
>mkfs</B
> include the FSIM type (in our example, JFS), followed
by any option pairs, and then the volume name. The command to accomplish
this is:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>mkfs: JFS={vollabel=jfs_vol}, /dev/evms/my_vol</PRE
></FONT
></TD
></TR
></TABLE
><P
>The command is completed upon saving.</P
><P
>If you are interested in other options that <B
CLASS="command"
>mkfs</B
> can
use, look at the results of the following query:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>query: plugins, plugin=JFS, list options</PRE
></FONT
></TD
></TR
></TABLE
></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="fsimsuppevms.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="fsimmkfsaex.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>The FSIMs supported by EVMS</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="evmsfsimops.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Example: check a file system</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>