Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

What is the command to check partition information on a CentOS 5.5 release?

Specifically, I'm looking to see if the partitions were set as LVMs.

share|improve this question

migrated from stackoverflow.com Aug 11 '11 at 21:35

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 4 down vote accepted

fdisk -l shows the PC-style partitions on each disk.

cat /proc/partitions shows the available block devices. sda, sdb and so on are hard disks. sda1 and such are partitions on these disks. dm-0 and so on are LVM logical volumes.

pvs or pvdisplay reports the volumes that are LVM physical volumes.

df shows the mounted filesystems. If a filesystem is mounted from some place like /dev/sda1, it's not on an LVM volume. If it's mounted from /dev/mapper/group-logical, it's on an LVM volume.

share|improve this answer
    
pvs tells me the format of the partition (it shows LVM2). Tanxsomuch! –  Mechaflash Aug 12 '11 at 13:08

Running pvdisplay will show you information about the various known PVs. pvscan will scan the current devices for PVs.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.