This is a very preliminary HOWTO Template

#pragma section-numbers off #format html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Benefits of Logical Volume Management on a Small System</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="LVM HOWTO" HREF="index.html"><LINK REL="UP" TITLE="What is Logical Volume Management?" HREF="c172.html"><LINK REL="PREVIOUS" TITLE="What is Logical Volume Management?" HREF="c172.html"><LINK REL="NEXT" TITLE="Benefits of Logical Volume Management on a Large System" HREF="x209.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="c172.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 2. What is Logical Volume Management?</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="x209.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="benefitsoflvmsmall" >2.2. Benefits of Logical Volume Management on a Small System</A ></H1 ><P > One of the difficult decisions facing a new user installing Linux

><P > Once the user has guessed how much space is needed for /home /usr /

><P > With logical volume management, the whole disk would be allocated

><P > Another alternative would be to allocate minimal amounts of space

><P > As an example:

CLASS="screen" > /boot /dev/hda1 10 Megabytes swap /dev/hda2 256 Megabytes / /dev/hda3 2 Gigabytes /home /dev/hda4 6 Gigabytes

>

><P > Sometime later Joe decides that he want to install the latest

><P > His options are not good:

><P ></P ><OL TYPE="1" ><LI ><P > Reformat the disk, change the partitioning scheme and

></LI ><LI ><P > Buy a new disk and figure out some new partitioning scheme

></LI ><LI ><P > Set up a symlink farm on / pointing to /home and install the new

></LI ></OL ><P > With LVM this becomes much easier:

><P > Jane buys a similar PC but uses LVM to divide up the disk in a similar

><PRE CLASS="screen" > /boot /dev/hda1 10 Megabytes swap /dev/vg00/swap 256 Megabytes / /dev/vg00/root 2 Gigabytes /home /dev/vg00/home 6 Gigabytes

><DIV CLASS="note" ><P ></P ><TABLE CLASS="note" WIDTH="100%" BORDER="0" ><TR ><TD WIDTH="25" ALIGN="CENTER" VALIGN="TOP" ><IMG SRC="../images/note.gif" HSPACE="5" ALT="Note"></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P > boot is not included on the LV because bootloaders don't

></TD ></TR ></TABLE ></DIV ><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="MIDDLE" ><B >root on LV should be used by advanced users only</B ></TH ></TR ><TR ><TD > </TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P > root on LVM requires an initrd image that activates the root

></TD ></TR ></TABLE ></DIV ><P > When she hits a similar problem she can reduce the size of /home by

><P > Suppose that Joe and Jane then manage to fill up the /home

><P > Joe formats the whole disk as one partition (/dev/hdb1) and moves

><P > Jane simply adds the new disk to her existing volume group and

></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="c172.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="x209.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >What is Logical Volume Management?</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="c172.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Benefits of Logical Volume Management on a Large System</TD ></TR ></TABLE ></DIV ></BODY ></HTML >