Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-23-2011, 05:41 PM   #1
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

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?

Old 06-23-2011, 06:39 PM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,818

Rep: Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558
cat /etc/fstab
You might also find this useful

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

Last edited by chrism01; 06-23-2011 at 06:40 PM.
Old 06-24-2011, 12:53 AM   #3
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.



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

All times are GMT -5. The time now is 04:54 AM.

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