LinuxQuestions.org
Help answer threads with 0 replies.
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 02-14-2015, 02:25 PM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,226
Blog Entries: 4

Rep: Reputation: 132Reputation: 132
New to LVM, how to bridge between /dev/sd* and /dev/mapper/vol group/log vol?


So LVM has taken me by surprise, especially working with all of these virtual servers.

I have Linux servers in VMWare, and I know how to grow hard disks there and how they are tied back to /dev/sd*, however what I'm not sure about is how do I know what Volume Group and Logical Volume they are tied too?

If I isssue df -ha I can see where the various partitions are tied to /dev/mapper/Vol Group/Logical Vol

and I issue fdisk -l and I can see the space and what is tied to /dev/sd*, however how do I tie to two together so I know who has what space and how to grow or shrink that space?

I found an older thread here:

http://www.linuxquestions.org/questi...ds-for-699073/

However I still don't understand how to bridge between the two.

thanks
 
Old 02-14-2015, 03:00 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,580

Rep: Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566
pvdisplay will show you the physical devices, what VG they are part of, and how many extents (of PE Size) are allocated or free for added/expanded LVs. Sample output:
Code:
# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb2
  VG Name               vg_omega3g
  PV Size               48.83 GiB / not usable 4.00 MiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              12499
  Free PE               3000
  Allocated PE          9499
  PV UUID               S1QyE2-Bau1-nJE1-2sYk-bLli-wnKE-ihBmPX
   
  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               vg_omega3g
  PV Size               30.00 GiB / not usable 3.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              7679
  Free PE               0
  Allocated PE          7679
  PV UUID               fP62TK-tHce-YPp2-lSTc-KBEp-6Jgh-OP4kIy
 
1 members found this post helpful.
Old 02-17-2015, 01:22 PM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,226
Blog Entries: 4

Original Poster
Rep: Reputation: 132Reputation: 132
Excellent.

pvdisplay -m also shows the mapping of physical volumes to logical volumes.

thanks
 
1 members found this post helpful.
  


Reply

Tags
/dev/mapper, logical volume, lvm, vmware


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
How to rename a vol group? binary_0011 Linux - General 18 01-13-2013 11:33 AM
LVM pvs is showing /dev/dm-x as PV name instead of /dev/mapper n0rus Linux - Enterprise 3 08-05-2012 01:12 PM
grew raid6 how do I extend vol group? lil_delta Linux - Server 6 05-18-2010 08:31 PM
how split file to multiple vol and how restore it with request of inserting next vol? digitalblade Linux - Newbie 7 02-14-2009 01:04 PM
Removing Vol-Group BadKharma Fedora 4 09-29-2007 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:37 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