Phoronix Forums  

Go Back   Phoronix Forums > Software > General Linux

General Linux Discuss anything GNU/Linux related that doesn't fit into any of the other areas.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-09-2007, 12:39 PM
Perrin49 Perrin49 is offline
Junior Member
 
Join Date: Jan 2007
Posts: 4
Default Getting comfused by LVM

I did a fresh install of FC6, but when I did it I didn't reformat my LVM partitions.

I'm now having trouble mounting that partition.

I think I can't see the forest for the trees, but I'm not sure what to do next.

Here is some info:
Code:
[root@MythBox MythTV]# /usr/sbin/lvdisplay
  --- Logical volume ---
  LV Name                /dev/VolGroup01/LogVol00
  VG Name                VolGroup01
  LV UUID                ID21jn-Rvdz-EwKu-T96c-Vi2H-Wpav-Nf69zE
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                453.34 GB
  Current LE             14507
  Segments               2
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0

[root@MythBox MythTV]# /usr/sbin/vgdisplay
  --- Volume group ---
  VG Name               VolGroup01
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               453.41 GB
  PE Size               32.00 MB
  Total PE              14509
  Alloc PE / Size       14507 / 453.34 GB
  Free  PE / Size       2 / 64.00 MB
  VG UUID               CdQ1Kq-63P9-ZdJ7-ZOTf-tSaB-B8rg-2YNHUV

[root@MythBox MythTV]# /usr/sbin/pvdisplay
  --- Physical volume ---
  PV Name               /dev/hda5
  VG Name               VolGroup01
  PV Size               173.99 GB / not usable 22.15 MB
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              5567
  Free PE               2
  Allocated PE          5565
  PV UUID               ReqZAk-1o5w-5EE3-9qj5-78Rh-c6ew-vc7Anw

  --- Physical volume ---
  PV Name               /dev/hdb1
  VG Name               VolGroup01
  PV Size               279.46 GB / not usable 21.63 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              8942
  Free PE               0
  Allocated PE          8942
  PV UUID               YSv0TY-2rPn-Edh0-lzSS-ka3u-jTp4-q8IGWF

[root@MythBox MythTV]# cat /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot1            /boot                   ext3    defaults        1 2
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
LABEL=SWAP-hda3         swap                    swap    defaults        0 0
What do I need to do to be able to mount this partition?
Reply With Quote
  #2  
Old 03-10-2007, 12:59 AM
joshuapurcell joshuapurcell is offline
Senior Member
 
Join Date: Nov 2006
Location: Dallas
Posts: 285
Default

Try to activate the volume group, then mount one of its logical volumes (in this case /dev/VolGroup01/LogVol00):
Code:
vgchange -a y VolGroup01
mkdir /mnt/oldLV
mount /dev/VolGroup01/LogVol00 /mnt/oldLV
Post if that gives errors. The best set of LVM instructions I've ever found is here:
http://tldp.org/HOWTO/html_single/LVM-HOWTO/

Last edited by joshuapurcell; 03-15-2007 at 04:00 PM. Reason: Fixed the inconsistent mount point.
Reply With Quote
  #3  
Old 03-10-2007, 07:31 PM
Perrin49 Perrin49 is offline
Junior Member
 
Join Date: Jan 2007
Posts: 4
Default

Quote:
Originally Posted by joshuapurcell View Post
Post if that gives errors. The best set of LVM instructions I've ever found is here:
http://tldp.org/HOWTO/html_single/LVM-HOWTO/
Sweet.

Ya know, I have been on that page and it never clued in that I was missing the activate. I also didn't recognize that I needed to do the mkdir before I could mount (*slaps palm to forehead*)

Awesome - now to (re-)install MythTV
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:59 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2009 by Phoronix Media.