LinuxQuestions.org
Review your favorite Linux distribution.
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 09-30-2010, 01:02 PM   #1
asif1
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
Pvdisplay and Df -h


Why pvdisplay shows sdb2, and df -h has no mention of sdb2. Can please someone clarify this for me, i'm confused.
Thx
Steve






[root@localhost ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sdb2
VG Name VolGroup00
PV Size 465.57 GB / not usable 5.43 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 14898
Free PE 1
Allocated PE 14897
PV UUID K3kHu8-E0At-N3F8-lpGl-s5G3-gkVl-Yw9ZtR

[root@localhost ~]# df -H
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
490G 2.8G 488G 1% /
/dev/sdb1 200M 20M 170M 11% /boot
tmpfs 792M 13k 792M 1% /dev/shm
/dev/sda2 153G 29G 125G 19% /mnt/win
[root@localhost ~]#
[root@localhost ~]#
 
Old 09-30-2010, 04:16 PM   #2
valen_tino
Member
 
Registered: Jan 2008
Posts: 105

Rep: Reputation: 28
sdb2 will not show up in df commands because it is a "Linux LVM" partition type and is a part of a VG (VolGroup00) out of which LVs (LogVol00 and LogVol01) are created and mounted. In your case sdb2 is nothing but the root partition (/) + default swap.

If you use
Code:
df -h
vs
Code:
df -H
your numbers will tally up closer.

If you compare that to sdb1, this is a "Linux" partition type and the partition will simply appear as /dev/sdb1 when you run df -h.

HTH
 
1 members found this post helpful.
Old 09-30-2010, 04:28 PM   #3
asif1
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for clearing this up, it helped to clear up the confusion i had.
Thanks again.
Steve
 
  


Reply


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
LVM resizing question - pvdisplay shows that drive is 70G smaller than it is blueduck Linux - Software 1 06-29-2010 10:07 AM
vgcreate command is changing /dev/mapper as PV Name in pvdisplay to /dev/dm-xx path neeravsingh Linux - Enterprise 6 03-23-2010 04:05 AM
pvdisplay issue amitpardesi Linux - Software 0 10-16-2008 10:14 AM


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