[sclug] LVM2

Chris Aitken chris at ion-dreams.com
Fri Feb 11 13:05:30 UTC 2005


A quick description of my LVM setup, for those that were interested in LVM
on Wednesday:

svs-dc1:/var/spool/mail# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb2[1] sda2[0]
      995904 blocks [2/2] [UU]

md3 : active raid1 sdb4[1] sda4[0]
      10000384 blocks [2/2] [UU]

md2 : active raid1 sdb5[1] sda5[0]
      55689216 blocks [2/2] [UU]

md0 : active raid1 sdb1[1] sda1[0]
      4996096 blocks [2/2] [UU]

unused devices: <none>

sda & sdb are 73 Gb SCA SCSI disks.

md0 is mounted as /		5 Gb
md1 is mounted as swap		1 Gb
md2 is volume group vg_main	53 Gb
md3 is mounted as /var		10 Gb

svs-dc1:/var/spool/mail# pvdisplay
  --- Physical volume ---
  PV Name               /dev/md2
  VG Name               vg_main
  PV Size               53.11 GB / not usable 0
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              13595
  Free PE               10004
  Allocated PE          3591

The VG vg_main has 2 Logical Volumes on it, tmp_lv & home_lv:

svs-dc1:/var/spool/mail# lvdisplay
  --- Logical volume ---
  LV Name                /dev/vg_main/tmp_lv
  VG Name                vg_main
  LV UUID                CHFB2A-HOkW-E0b9-GrRA-2zJa-ezcY-HiKSXJ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             256
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0

  --- Logical volume ---
  LV Name                /dev/vg_main/home_lv
  VG Name                vg_main
  LV UUID                IFsqki-EXAF-WHL5-xF3W-G7Kz-YC2a-09z8U2
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                13.03 GB
  Current LE             3335
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:1

tmp_lv is mounted at /tmp. Home_lv is mounted at /home.
I will be adding a third LV called lv_mail at some point (to be mounted at
/var/mail). It can be seen that I have only allocated 13 GB so far for home,
but could dynamically increase that as necessary.

All the drivers for RAID0 & LVM2 (inc devmapper) were compiled into the
kernel.

HTH

Chris


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Sclug mailing list