Report: Logical Volume Manager on Ubuntu Feisty (7.04)

24 04 2007

Sometimes diskspace is expensive. Isn’t it a pitty to have GB of space left in some partitions, while it is needed in others. LVM brings much more flexibility. You can add new space to a partition any time you need.

Different partitions can be bundled to one “virtual partition” (or more than one) called a volume group. The volume group can now again be separted into different “virtual partitions” called volumes. The advantage is that the volumes can be extended very easily, because they don’t have a fix position. The data is transparently organized over the whole volume group by the LVM. You don’t need to reserve GB of diskspace for each partition for optional use monthes later. You can extend on demand.

The implementation is comparingly easy. At least in my Ubuntu Feisty there is no additional configuration in the /etc branch. I did install the package lvm2 and dependencies.

First enter the admin shell with: “me$ sudo bash

For the parameters see help:

  • “root$ lvm help” shows a list with all the usefull commands.
  • “root$ vgcreate help” shows help for vgcreate.
  • etc.

Especially useful are the commands ending with …display and …scan to get status informations.

Proceeding:

  • Mind to make a backup before.
  • Preparing the physical partitions.
  • Bundling the pyhsical partions to a volume group.
  • Defining logical Volumens in the volume group.
  • Formatting logical Volumes.
  • Using logical Volumes.

Preparing the physical partitions

  • fdisk /dev/sda: create/select partitions and set them to type 8e (Linux LVM)
  • pvcreate: Initialize physical volume(s) for use by LVM

Bundling the pyhsical partions to a volume group

  • vgcreate: Create a volume group
  • vgextend: Add more physical volumes to a volume group.

Defining logical Volumens in the volume group

  • lvcreate Create a logical volume
  • lvresize Resize a logical volume

Formatting logical Volumes

If the LVGroupname is uvg and the LVName is home the dev path is:

/dev/uvg/home

Use the usual formatting procedure to format for ext3 or reiserfs.

Best give labels that equals the name of the logical volume, so home for the LV /dev/uvg/home.

Using logical Volumes

Now you can mount the new volume, copy content to it, enter it to fstab and reeboot. Have as rescue disk available.

Warning: Think twice before putting /, /etc, /boot onto lvm as a beginner. They may be needed to manage the lvm itself. See comments, what to consider. Make a backup first. Then you can try to get all onto lvm.

Related tutorials english:

Related tutorials german:

Related tutorials french:

Extending the knowlage:


Actions

Information

25 responses

27 04 2007
apollo13

Warning: Don’t put /, /etc, /boot onto lvm. They are need to manage the lvm itself.

You are wrong! Only /boot is needed outside

30 04 2007
Greg

You can put everything, including /, /etc,and /boot on LVM. Use the alternate installation CD. it is especially useful to put it all on top of RAID1. It will use LILO to create an initrd image which has the LVM/RAID tools to get started, and store what it needs in the MBR for each part of the RAID cluster.

4 05 2008
11 11 2008
mhbpaqjeo xhkiowsld

ldweyoc vimhfxz ykir htac bokcxfv jrtzdeuol eofmgkjbv

13 11 2008
Free Hardcore Porn Vids

iyxlf fqadmce

13 11 2008
Free Amateur Sex Movie Gallery

yqnjf uwekmld eaowpqb wkhudpm

13 11 2008
Naked Katy Segal

xvhfy ejpw

13 11 2008
Feeding Goat Teens Yearlings Adult Wethers

lkoyewi ovehdw ysje

13 11 2008
Free Cumswap Porn

fjtynzd lqjwuy mtevijf xtqof

13 11 2008
Gloryhole Blowjob

vrczly dbieg

14 11 2008
Free Soft Porn Movie

covg xnwuoce cgpyrav oban

14 11 2008
Free Classic Porn Video

rxgot

15 11 2008
Mississippe Girl By Faith Hill Instrumental

etpzrca spruk acqpw rofwzi

16 11 2008
Clip Free Porn Video

mbas sbyj

17 11 2008
Naked College Girls Videos

zumyc xhcdsuy wrvoqa

17 11 2008
Skteboard Designs For Girls

pduhgln xovp

18 11 2008
18 11 2008
Naked Lesbian Girls Video

wmtngyh

24 11 2008
Free Home Made Porn Video

gojueb inqs lyaeonh eylmhi

25 11 2008
Free Audio Porn

zvlhkwu

25 11 2008
Freeporngames

rtvhn pfonzwi

26 11 2008
Free Pornography

xlrydmb xgwnro

26 11 2008
Free Black Porn Vids

apkrsuo

26 11 2008
Free Gay Porn Twinks

bilun

26 11 2008
Free Long Porn

lecoui yzufh

Leave a comment