LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2007, 05:48 PM   #1
LuCiDoLoGiSt
LQ Newbie
 
Registered: Mar 2004
Posts: 10

Rep: Reputation: 0
Question Mount Linux LVM


Hi, Thanks for all your help in the past.
I am trying to mount two different LVM partitions so that i can have read/write access to them from my rescue CD. I just can't figure out how to do so.
Any help would be greatly appreciated.


Code:
[root@centos ~]# fdisk -l

Disk /dev/sda: 159.9 GB, 159988580352 bytes
255 heads, 63 sectors/track, 19450 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14       19450   156127702+  8e  Linux LVM

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      104391   83  Linux
/dev/sdb2              14       60801   488279610   8e  Linux LVM
[root@centos ~]#


[root@centos ~]# vgdisplay
  --- Volume group ---
  VG Name               VolGroup00
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               465.66 GB
  PE Size               32.00 MB
  Total PE              14901
  Alloc PE / Size       14893 / 465.41 GB
  Free  PE / Size       8 / 256.00 MB
  VG UUID               DhK34Z-1v5t-dkiu-fxFD-oEX4-K8kL-zqZpA2

  --- Volume group ---
  VG Name               VolGroup00
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               148.88 GB
  PE Size               32.00 MB
  Total PE              4764
  Alloc PE / Size       4760 / 148.75 GB
  Free  PE / Size       4 / 128.00 MB
  VG UUID               0joUjg-eWxs-2N2L-RAE3-OOXl-bOKO-GuPAKg

[root@centos ~]# pvs
  PV         VG         Fmt  Attr PSize   PFree
  /dev/sda2  VolGroup00 lvm2 a-   148.88G 128.00M
  /dev/sdb2  VolGroup00 lvm2 a-   465.66G 256.00M

[root@centos ~]# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb2
  VG Name               VolGroup00
  PV Size               465.66 GB / not usable 0
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              14901
  Free PE               8
  Allocated PE          14893
  PV UUID               5Bll2v-WLE2-PlXU-PJcr-AMnX-T6Sr-muV46e

  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               VolGroup00
  PV Size               148.88 GB / not usable 0
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              4764
  Free PE               4
  Allocated PE          4760
  PV UUID               Flusfv-Yqlj-jwHE-VQoL-tbpf-1Qc1-zyxBLX

[root@centos ~]# lvdisplay
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                sc8nTT-Kyy4-MIyj-DukP-2HRO-1jEh-4Z8ZwS
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                146.81 GB
  Current LE             4698
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:2

  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                Cs2odC-9JNe-zjaZ-P1lI-3v53-DZJ8-Tpz0Se
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                1.94 GB
  Current LE             62
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:3
 
Old 06-29-2007, 05:53 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
http://www.knoppix.net/wiki/LVM2
 
Old 06-29-2007, 06:17 PM   #3
LuCiDoLoGiSt
LQ Newbie
 
Registered: Mar 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pljvaldez
Thanks for the suggestion

I believe I am following the directions properly. I am also reasonably certain LVM2 support is native in centos4.4.

Code:
[root@centos ~]# lvs
  LV       VG         Attr   LSize   Origin Snap%  Move Log Copy%
  LogVol00 VolGroup00 -wi-d- 146.81G
  LogVol01 VolGroup00 -wi-d-   1.94G

[root@centos ~]# mount /dev/VolGroup00/VogVol00 /mnt/vol100
mount: special device /dev/VolGroup00/VogVol00 does not exist
It seems odd to me that lvdisdplay/lvs only show one of the disks

Code:
[root@centos ~]# lvdisplay
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                sc8nTT-Kyy4-MIyj-DukP-2HRO-1jEh-4Z8ZwS
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                146.81 GB
  Current LE             4698
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:2

  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                Cs2odC-9JNe-zjaZ-P1lI-3v53-DZJ8-Tpz0Se
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                1.94 GB
  Current LE             62
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:3
but pvdisplay shows them both

Code:
[root@centos ~]# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb2
  VG Name               VolGroup00
  PV Size               465.66 GB / not usable 0
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              14901
  Free PE               8
  Allocated PE          14893
  PV UUID               5Bll2v-WLE2-PlXU-PJcr-AMnX-T6Sr-muV46e

  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               VolGroup00
  PV Size               148.88 GB / not usable 0
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              4764
  Free PE               4
  Allocated PE          4760
  PV UUID               Flusfv-Yqlj-jwHE-VQoL-tbpf-1Qc1-zyxBLX
I really appreciate your help.
 
Old 07-02-2007, 03:08 PM   #4
LuCiDoLoGiSt
LQ Newbie
 
Registered: Mar 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Figgured it out

The issue was that the two Volume Groups were named the same and it confused the mount command. Just a quick vgrename all all is working!

Code:
vgrename /dev/0joUjg-eWxs-2N2L-RAE3-OOXl-bOKO-GuPAKg /dev/vg160
Thanks for your help,


 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount LVM cemzafer Debian 6 05-30-2006 03:16 PM
How to mount LVM Volume twice Phil.Johnson Linux - Software 0 03-14-2006 11:17 AM
mount a LVM partition pavi Linux - General 1 10-29-2005 10:56 AM
mount refusing to mount lvm volumes linuxmandrake Fedora 2 07-20-2005 06:06 PM
FC3 rescue disc won't mount "Linux LVM" partition anymore. coolingtower Linux - General 0 01-23-2005 03:43 AM


All times are GMT -5. The time now is 02:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration