LinuxBSDnews

LVM Configuration in Ubuntu 8.10

November 11th, 2008 • Category: Tutorials/Tips,ubuntu

Previous« 1 2 3 4 5 »Next

UbuntuThere are two desktop editions of Ubuntu, the popular Linux distribution. The one most people are used to is the Live CD version, the edition that allows you to take it for a spin without installing it on your PC. The problem with the Live CD edition is that the installer is a watered-down, graphical, 7-step installer that does not have support for Linux Logical Volume Manager (LVM).

The other edition (of Ubuntu) is the “alternate installer” edition. This version has a text-based installer, and supports LVM and more of the advanced features that you’ll find in other Linux distros like Mandriva, Fedora, Foresight, and Debian. This tutorial gives a step-by-step guide on how to configure LVM in Ubuntu, using Ubuntu 8.10 “alternate installer” edition, the latest stable release of Ubuntu, which is available for download here.

This tutorial assumes a clean install, and in order to reduce the number of screenshots, begins at the point in the installation when the hard drive is detected and ends after the partitions have been formated, The steps before and after this pretty easy for anyone to complete. Keep in mind that the only difference between Ubuntu with the graphical installer and the alternate installer is, well, the installer.

Configuring LVM in Ubuntu (“alternate-text” installer) takes place in five stages listed in sequence below:

  1. Create a non-LVM boot partition
  2. Create Physical Volume (PV)
  3. Create a Volume Group (VG), and assign the PV created in stage 2 to the VG
  4. Create the Logical Volumes
  5. Assign filesystems and mounts points to the logical volumes created in step 4

Each of the stages is on a separate page of this tutorial.

Ok, let’s start the tutorial.

The default partitioning method is “Guided – use entire disk”, but for this tutorial, we want to create a custom setup. So use the down arrow key on your keyboard to select “Manual”. Note that if you select any one of the “Guided” options for LVM configuration, all the available disk space will be used up, leaving you no free space to grow any logical volume if or when the need arises. Ultimately, our goal is to use just enough space to get the system up and running, and leave the rest for when we need to grow logical volumes
Default partition method

With “Manual” selected, hit enter on the keyboard to continue.
Manual partition method

Our test disk drive is just 44 GB. The first step is to create a non-LVM, primary partition for the boot file system directory. With the drive selected as shown, Enter.
Select disk

The choice here is to create a new partition, Enter.
Create Partition

Here we set the size of the new partition we are about to create. Since we intend to use this partition for /boot, 100 MB to 200 MB should be sufficient. For this tutorial, I’ve chosen 150 MB. Enter.
Set partition size

The default is to create a primary partition, which is exactly what we need. Enter
Set partition type

Since this is the first partition, the default is good enough for us. Enter
Set partition start

The default mount point assigned to the new partition is / (root), but w want this to be /boot. So with mount point selected as shown, enter.
Set boot mount point

Use the down arrow key to select /boot. enter
.Set mount point

Now, we are done creating /boot. You’ll notice that the default filesystem is Ext3, which is just fine. No need to change that. Scroll down to “Done setting up the partition”. enter
Boot mount point final

The next step is to use the unallocated space to create a physical volume.

Previous« 1 2 3 4 5 »Next

Subscribe by ...

To receive future articles like this one in your inbox or Feed reader, please take a few seconds to subscribe to this site by email or RSS. You may also follow us on Twitter.

Delicious Digg Facebook Friendfeed Friendster Mixx Newsvine Reddit Stumbleupon Technorati Twitter

Sponsored Links

The next best thing to fruits & vegetables is Juice Plus

Buy Fedora installation media at very low prices from OSDisc

Don't have high speed Internet access? Buy Ubuntu and Mint installation media at very low prices

Develop your community's collaboration and communication skills with Collaba server

To buy a text link ad here, send us an email

LinuxBSDnews

10 Responses to 'LVM Configuration in Ubuntu 8.10'

  1. January 13, 2010 at 8:05 pm
    Juan Ortuno
  2. July 4, 2009 at 10:35 am
    Duane
  3. April 2, 2009 at 9:28 pm
    izzeldin
    • April 4, 2009 at 12:28 am
      finid
      • May 25, 2009 at 3:24 pm
        Peter
      • May 27, 2009 at 1:37 am
        finid
  4. April 2, 2009 at 9:26 pm
    izzeldin

Leave a Reply




XHTML::
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Copyright © • LinuxBSDos.com