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

Latest Reviews & Tutorials

  • 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
  • Chakra GNU/Linux Edn 2011.12 review
  • How to customize Pear OS Linux Panther 3

Configure LVM in Mandriva Linux Free 2009


I am reading page: 1 2

Now that the PV is created, we need to create a volume group (VG). A VG is a virtual container of physical volumes, and takes on the size of its physical volumes. To create a VG, click on the “Add to LVM” button.
PV created

Part of the task of creating a VG is giving it a name. The name could be anything. By default, Linux distro begin VG names with “VolGroup00″ or something similar. The name you choose doesn’t have to be as touchy-feely as what you see in this screenshot.
Create the Volume Group

With the VG created, you should see two tabs at the top of the disk – one for the /boot partition, and the other for the VG that we just created. Make sure that the VG is selected. When the VG is selected, the reddish sliver representing /boot should not be visible. With the VG selected, click on “Create” to start creating logical volumes. A logical volume (LV) is the LVM equivalent of a partition.

Something to point out at this step: If you click on the “Auto Allocate” button, the installer will attempt to auto-create the LVs for you. But before it does that, it presents three auto-allocate options:

  • With /usr: This creates four LVs – /, /usr, swap, and /home
  • Simple: Creates only three LVs – /, swap, and /home
  • Server: Creates a server-type scheme – /, /usr, /var, swap, and /home

For this tutorial, we are going to create LVs more like the server-style. So, click on “Create”
VG is created

We are going to create six LVs – /, /usr, /tmp, /var, swap, and /home. This screenshot shows the creation of the LV for /. Repeat this step for the other 5 LVs with the following size suggestions: swap (1000 MB – most distro allocate this size to swap, and this should be just enough); /usr (5000 MB); /tmp (500MB); /var (2000 MB); /home (3000 MB).

The goal here is to allocate just enough space to each LV that is needed to install and get the system up and running. One of the benefits of using LVM is that you can always grow or shrink any LV. However, you should avoid putting yourself in a position where you have to shrink a volume. It could lead to loss of data.

By default, most Linux distros use ext3 as the (journalized) filesystem type. Other options available are: xfs, jfs, and reiserfs. Each has its pros and cons, but for ease of management, we prefer xfs. If you are new to this, we suggest you select xfs for filesystem type. Note that in Mandriva (Free), you have the option to create encrypted volumes.
Creating the LV for root

If you are done creating LVs as suggested, your screen should look similar to the image below. Notice that there is still a lot of white space left on the VG. This is exactly what we want. If you had used the “Auto allocate” feature, all the available disk space would have been used up. Review this screen and if you are satisfied with your work, click on “Done”
LVM creation done

This is the final screen dealing with disk partitioning. Clicking “Next” on this screen formats the /boot partition and the LVs that you created, and you may continue the rest of the installation process.
Partition formating options

This should be enough to get you familiar with LVM and how to configure it using Mandriva Free. Like we wrote earlier, the same steps used here applies to any other distro that supports LVM. For a follow-up tutorial, we will look at how to perform basic management LVM task in a running system. Check back soon or subscribe to our RSS feed.

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

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).

2 Comments

  1. Alejandro Palestrini says:

    Very good tutorial. Clear and concise. I congratulate you. I would like to receive information on Mandriva and Ubuntu. If it is in Castilian, the better. Greetings and thanks. Alejandro Palestrini. Buenos Aires, Argentina

Leave a Reply

Trackbacks

Read previous post:
eBox Platform 1.0rc1 Ready for Testing
University of Perugia’s Open Source Master Course
Mandriva Linux 2009 Firewall
Close