old-www/HOWTO/LVM-HOWTO/mapmode.html

244 lines
3.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>mapping modes (linear/striped)</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="LVM HOWTO"
HREF="index.html"><LINK
REL="UP"
TITLE="Anatomy of LVM"
HREF="anatomy.html"><LINK
REL="PREVIOUS"
TITLE="Tying it all together"
HREF="tyingittogether.html"><LINK
REL="NEXT"
TITLE="Snapshots"
HREF="snapshotintro.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"
>LVM HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="tyingittogether.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 3. Anatomy of LVM</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="snapshotintro.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="mapmode"
></A
>3.7. mapping modes (linear/striped)</H1
><P
>&#13; The administrator can choose between a couple of general strategies
for mapping logical extents onto physical extents:
</P
><P
></P
><OL
TYPE="1"
><LI
><P
>&#13; <STRONG
>Linear mapping</STRONG
> will assign a
range of PE's to an area of an LV in order eg., LE 1 - 99 map to
PV1 and LE 100 - 347 map onto PV2.
</P
></LI
><LI
><P
>&#13; <STRONG
>Striped mapping</STRONG
> will interleave
the chunks of the logical extents across a number of physical
volumes eg.,
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;1st chunk of LE[1] -&#62; PV1[1],
2nd chunk of LE[1] -&#62; PV2[1],
3rd chunk of LE[1] -&#62; PV3[1],
4th chunk of LE[1] -&#62; PV1[2],
</PRE
></FONT
></TD
></TR
></TABLE
>
and so on. In certain situations this strategy can
improve the performance of the logical volume.
<DIV
CLASS="warning"
><P
></P
><TABLE
CLASS="warning"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/warning.gif"
HSPACE="5"
ALT="Warning"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>LVM 1 Caveat</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>&#13; LVs created using striping cannot be extended past
the PVs they were originally created on in LVM 1.
</P
></TD
></TR
></TABLE
></DIV
>
In LVM 2, striped LVs can be extended by concatenating
another set of devices onto the end of the first set. So
you can get into a situation where your LV is a 2 stripe
set concatenated with a linear set concatenated with a 4
stripe set. Are you confused yet?
</P
></LI
></OL
></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="tyingittogether.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="snapshotintro.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Tying it all together</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="anatomy.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Snapshots</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>