Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 965e33040dd61030a94f0eb89877aee8 > files > 3042

howto-html-en-20080722-2mdv2010.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Tying it all together</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="logical extent (LE)"
HREF="le.html"><LINK
REL="NEXT"
TITLE="mapping modes (linear/striped)"
HREF="mapmode.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="le.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="mapmode.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="tyingittogether"
></A
>3.6. Tying it all together</H1
><P
>&#13;        A concrete example will help:
      </P
><P
>&#13;        Lets suppose we have a volume group called VG1, this volume group
        has a physical extent size of 4MB.  Into this volume group we
        introduce 2 hard disk partitions, /dev/hda1 and /dev/hdb1.  These
        partitions will become physical volumes PV1 and PV2 (more
        meaningful names can be given at the administrators discretion).
        The PV's are divided up into 4MB chunks, since this is the extent
        size for the volume group.  The disks are different sizes and we
        get 99 extents in PV1 and 248 extents in PV2.  We now can create
        ourselves a logical volume, this can be any size between 1 and 347
        (248 + 99) extents.  When the logical volume is created a mapping
        is defined between logical extents and physical extents, eg.
        logical extent 1 could map onto physical extent 51 of PV1, data
        written to the first 4 MB of the logical volume in fact be written
        to the 51st extent of PV1.
      </P
></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="le.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="mapmode.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>logical extent (LE)</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="anatomy.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>mapping modes (linear/striped)</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>