Happy New Year! Forget all that stuff about the Mayan Calendar. Be Cool!

Latest Reviews & Tutorials

  • How to customize Linux Mint 12 KDE
  • Linux Mint 12 KDE review
  • GhostBSD 2.5 review
  • How to install Takeoff Launcher on Fedora 16 KDE
  • Install Quick Access on Linux Mint 12 KDE or any KDE installation
  • How to install Linux Mint 12 KDE on a btrfs file system
  • Manual disk partitioning guide for Linux Mint 12 KDE
  • How to compile and install Takeoff Launcher on Linux Mint 12 KDE
  • 3 must-have extensions for Fedora 16 and other GNOME 3 installations
  • How to install Razor-qt on Linux Mint 12 KDE
  • How to enable desktop slideshow on Linux Mint 12 KDE
  • KahelOS 111111 review
  • How to install Cinnamon in Ubuntu 11.10
  • How to customize Cinnamon on Fedora 16 and Linux Mint 12
  • How to install Cinnamon on Fedora 16
  • What does Cinnamon bring to the desktop?
  • How to access Microsoft Windows files and folders from Linux
  • How to dual-boot Pear OS Panther 3 and Windows 7
  • How to dual-boot Chakra Linux Edn and Windows 7, part 1
  • Linpus Lite Desktop 1.6 review

LVM Configuration in Ubuntu 8.10


I am reading page: 1 2 3 4 5

Create Logical Volumes

With the PV and VG created, and the PV assigned to the VG. the next step is to create the Logical Volumes. A Logical Volume (LV) is LVM jargon for partition. Our goal in this tutorial is to create six LVs, one each for the following filesystem directories:

  • / (root)
  • swap
  • /home
  • /usr
  • /var
  • /tmp

Observe that the upper part of the screenshot below reveals that we have created one PV which has been assigned to a VG, but there are zero LVs. Select the option to create logical volumes as shown. Enter.
Start creating LV

We have to tell the installer what VG to create the LVs under. Since we created only one VG, that is the only one shown. Enter.
Start creating LV

Let’s start by creating the logical volume for swap. Enter.
Set swap name

And assign it 1000 MB. Note that most distributions assign this amount of space to the swap partition, whether using LVM or not.
Set swap name

Repeat the last two screenshot for the following logical volumes. Suggested sizes in parenthesis:

  • root (2000 MB)
  • usr (3000 MB)
  • var (1000 MB)
  • tmp (500 MB)
  • home (3000 MB)

The suggested sizes should be more than enough to install and get the system up and running. This leaves enough free space to grow any LV that needs it. When completed, your window should look like the one below. Notice that instead of zero LVs, we now have six. To preview your work, highlight the option as shown. Enter.
LV create start shot

You should now see the details of your work so far. Notice that the VG (in this case HU), the PV (/dev/sda5), and the six LVs. Enter.
LV create start shot

Select the option as shown. Enter.
LV create start shot

Now that we have created a PV, a VG, assigned the PV to the VG, and created six LVs, the final task is to assign a filesystem and a mount point to each LV.

0saves
To have articles like this delivered automatically to your Feed Reader or Inbox, subscribe via RSS or email. For simple comments, use the commenting system, but for more involved assistance, please use the Question & Answer section.
I am reading page: 1 2 3 4 5

Posts From The Same Category:




Questions & Answers Hola! Looking for an answer to a question but did not find it? Then surf on over to the Questions & Answers section. It's a brand new addition to our site, and we are waiting just to answer your question(s).

8 Comments

  1. maja says:

    Thanks so much for this! Just ran it on a new 10.04 install and it still works!

  2. Juan Ortuno says:

    This guide is INCREDIBLY helpful!
    Thank you SO very much for such a detailed set of step-by-step instructions. The screen shots along with the text instructions gave me the “visual” confirmation that I needed along the way, without making any mistakes.
    I had NO clue how to do my partitioning, LVs, etc., but your guide definitely helped me to get this completed.
    Thank you!

  3. Duane says:

    Thank you for the definitive guide to setting up LVM. A well-reviewed book published in 2008 was completely inadequate in its LVM setup guide.
    Only when I came across this post was I able to correctly set up the HDD. Next time I experiment I may set up ‘swap’ as non-LVM to see if there is any advantage to that. Thanks again, great work!

  4. izzeldin says:

    thanks for this guide . please give us ability to print this guide in this page to benefit from this knowledge . it is difficult print this guide use 1,2,3,4,5 link

    • finid says:

      You can now print any post on this site. Simply click on the share button below each post/excerpt, and click on “Printer”. While you are printing, feel free to bookmark or share it on your favorite social networking site ;)

      • Peter says:

        finid
        where is this share button
        why do posters have to be so unhelpful

        • finid says:

          It is not about being “unhelpful”, it’s just that the Share plugin was clashing with some other stuff. That’s why it was removed. That said, you can now print using the Printblog button below each post. It you are printing this post and other multi-page posts, be sure to first view the post on a single page, before printing. By default the post will print in a double column, saving you paper.

  5. izzeldin says:

    thanks for this guide . please give us ability to print this guide in this page to benefit fro this knowledge . this difficult print use 1,2,3,4,5 link

Leave a Reply

Trackbacks

  1. » Partitioning Ubuntu 8.10 Technology Services
  2. » Setting up the new building backup servers Technology Services
  3. Setting up LVM on Debian | Tech Krunch
Read previous post:
Bilski Ruling and Software Patents
FreeNAS 0.69 Release Candidate 1
A Privacy Agenda for the New Administration
Close