LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-23-2011, 04:41 PM   #1
needsleep
Member
 
Registered: Apr 2011
Location: Minneapolis
Distribution: CentOS 7
Posts: 80

Rep: Reputation: 0
How to list filesystems that are using LVM logical volumes? Centos 5.6


Hello,
I've read the first 40% of the RHEL 5 Logical Volume Manager Administrator's Guide, but still have one outstanding, burning question.

During the installation of Centos 5.6, I set up LVM physical volumes, volume groups and logical volumes. I can list these using pvdisplay, vgdisplay and lvdisplay commands.

How would I list what filesystems I have that are using my logical volumes?

Thanks!
 
Old 06-23-2011, 05:39 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
Code:
cat /etc/fstab
You might also find this useful http://www.linuxtopia.org/online_boo...ion/index.html

At the more physical level
Code:
fdisk - l
that's a lowercase L option. A pv partition should be type 8e.

Last edited by chrism01; 06-23-2011 at 05:40 PM.
 
Old 06-23-2011, 11:53 PM   #3
needsleep
Member
 
Registered: Apr 2011
Location: Minneapolis
Distribution: CentOS 7
Posts: 80

Original Poster
Rep: Reputation: 0
Thanks for the information Chris.

OK, so I actually already ran
cat /etc/fstab
(sorry about not telling you), and it lists these ext3 filesystems:
/dev/vg_system/LogVol00 / ext3
LABEL=/boot1 /boot ext3

And, I had run fdisk -l as well.

I didn't have any clue, however, that fstab would show me logical volumes and fdisk -l would show me physical volumes. Well, I **did** see "LogVol00" in that one line, but I couldn't from that information alone deduce, "this command shows logical volumes, this other command shows physical volumes".

fdisk -l shows disk geometry for both of my hard drives: /dev/hda and /dev/hdb. It also lists the following partitions for hda:
Device (boot) (start, end blocks), #_of_Blocks, ID, System
/dev/hda1 (boot) ---, ---, ---, 83, Linux
/dev/hda2 ---, ---, ---, 8e, Linux LVM
/dev/hda3 ---, ---, ---, 82, Linux swap

I have chosen not to list start/end blocks and #_of_Blocks columns.
And yes indeed, I see how ID 8e is appearing for Linux LVM...very interesting!

So to answer my original question with the above information,
I have one physical volume, hda2 (partition 2 of hda with ID 8e).
This makes up one volume group, vg_system.
Out of this volume group is carved 1 logical volume, LogVol00 that has a mount point of root(/).

This has been very instructive, and I thank you kindly, Chris, for your insight.
 
  


Reply

Tags
lvm2



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
[SOLVED] Logical volumes not available on reboot Vanyel Linux - Server 11 09-19-2011 10:23 AM
creating logical volumes... mtsm Linux - Newbie 1 01-31-2009 06:38 AM
Combining Volumes on LVM Drive in CentOS 5.0 Linux31 Linux - Hardware 2 05-27-2007 08:14 AM
Mounting Logical Volumes acidblue Fedora 6 01-28-2006 10:02 PM
I did not know about logical volumes gezi Linux - Newbie 5 04-27-2005 09:26 AM

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

All times are GMT -5. The time now is 07:58 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
Open Source Consulting | Domain Registration