[ale] lvm for ubuntu install?

Justin W Elam justin.w.elam at gmail.com
Wed Nov 4 05:29:22 EST 2009


Guten Morgen : =)

at HTTP://www.tldp.org/HOWTO/LVM-HOWTO/
is where the LVM how to is located.

typically the installer is gui for the cli commands.

typically linux kernel will only allow for four physical partitions.
so lvm creates 'virtual partitions'

here is how i have mine set up  i commented the uuid's...
~$ sudo /sbin/vgdisplay



  --- Volume group ---
  VG Name               oak-grove
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  7
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                6
  Open LV               6
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               38.10 GB
  PE Size               4.00 MB
  Total PE              9754
  Alloc PE / Size       9754 / 38.10 GB
  Free  PE / Size       0 / 0
  VG UUID               $$$$$$$$


:~$ sudo /sbin/lvdisplay


  --- Logical volume ---
  LV Name                /dev/oak-grove/root
  VG Name                oak-grove
  LV UUID                $$$$$$$$
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                332.00 MB
  Current LE             83
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:0

  --- Logical volume ---
  LV Name                /dev/oak-grove/usr
  VG Name                oak-grove
  LV UUID                $$$$$$$$
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.66 GB
  Current LE             1192
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:1

  --- Logical volume ---
  LV Name                /dev/oak-grove/var
  VG Name                oak-grove
  LV UUID                $$$$$$$$
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.79 GB
  Current LE             715
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:2

  --- Logical volume ---
  LV Name                /dev/oak-grove/swap_1
  VG Name                oak-grove
  LV UUID                $$$$$$$$
  LV Write Access        read/write
  LV Status              available
  # open                 2
  LV Size                544.00 MB
  Current LE             136
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:3

  --- Logical volume ---
  LV Name                /dev/oak-grove/tmp
  VG Name                oak-grove
  LV UUID                $$$$$$$$
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                380.00 MB
  Current LE             95
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:4

  --- Logical volume ---
  LV Name                /dev/oak-grove/home
  VG Name                oak-grove
  LV UUID                $$$$$$$$
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                29.43 GB
  Current LE             7533
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:5

:~$ sudo /sbin/pvdisplay


  --- Physical volume ---
  PV Name               /dev/hda2
  VG Name               oak-grove
  PV Size               38.10 GB / not usable 1.24 MB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              9754
  Free PE               0
  Allocated PE          9754
  PV UUID               $$$$$$$$


  --- physical volume one is not lvm'd but for /boot and kernel
image... i.e. /dev/hda1

~$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/oak--grove-root
                        329233   133505    178730  43% /
tmpfs                    95660        0     95660   0% /lib/init/rw
udev                     10240      744      9496   8% /dev
tmpfs                    95660        0     95660   0% /dev/shm
/dev/hda1               233335    16424    204463   8% /boot
/dev/mapper/oak--grove-home
                      30370764  1236584  27591424   5% /home
/dev/mapper/oak--grove-tmp
                        376807    10308    347043   3% /tmp
/dev/mapper/oak--grove-usr
                       4805760   3956164    605476  87% /usr
/dev/mapper/oak--grove-var
                       2882592    342500   2393660  13% /var


operating system : Linux  2.6.26-2-686 ~ Debian 5.0.3 ~GNU/Linux -
/Stable /C 2.7

Computer System -- IBM PC Clone ---Processor-
Name		: Intel(R) Celeron(R) CPU 2.00GHz
Family, model, stepping		: 15, 2, 9 (Pentium 4)


 Cheers ...
J
 justin.w.elam at gmail.com
http://www.google.com/profiles/justin.w.elam


More information about the Ale mailing list