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?
At the more physical level
Thanks for the information Chris.
OK, so I actually already ran
(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.
|All times are GMT -5. The time now is 09:06 AM.|