LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-10-2010, 06:09 AM   #1
fusion1275
Member
 
Registered: Jul 2007
Location: Portsmouth, Hants
Distribution: Mint 13
Posts: 265

Rep: Reputation: 35
df not showing correct lvm disk size value


Hi all,

Just added a new disk. 160GB.

Created the PV and VG and LV and Filesystem

Mounted it and it is reporting a value that was the original value and not the extended value I have added.

Quote:
root@Zeus-home:/home# lvdisplay /dev/Zeus-misc/misc
--- Logical volume ---
LV Name /dev/Zeus-misc/misc
VG Name Zeus-misc
LV UUID IkhYoK-OaDa-46AD-TQGD-d6Lx-pyy5-1xELvh
LV Write Access read/write
LV Status available
# open 0
LV Size 120.00 GB
Current LE 30720
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:6
When I mount it on /home/misc directory and run a df

Quote:
root@Zeus-home:~# df -h /home/misc/
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/Zeus--misc-misc
50G 180M 47G 1% /home/misc

Can someone point out whats going on here and what I have done wrong please.
 
Old 09-10-2010, 06:14 AM   #2
hurryi
Member
 
Registered: Apr 2010
Distribution: RHEL
Posts: 77

Rep: Reputation: 7
please use the commands below and give the output

pvs
vgs
lvs
 
Old 09-10-2010, 06:24 AM   #3
fusion1275
Member
 
Registered: Jul 2007
Location: Portsmouth, Hants
Distribution: Mint 13
Posts: 265

Original Poster
Rep: Reputation: 35
Thanks for the prompt reply:

Quote:
root@Zeus-home:~# pvs
/dev/sdb1 Zeus-misc lvm2 a- 394.96G 274.96G
Quote:
root@Zeus-home:~# vgs
Zeus-misc 1 1 0 wz--n- 394.96G 274.96G
Quote:
root@Zeus-home:~# lvs
misc Zeus-misc -wi-ao 120.00G
 
Old 09-10-2010, 06:39 AM   #4
hurryi
Member
 
Registered: Apr 2010
Distribution: RHEL
Posts: 77

Rep: Reputation: 7
hmmm strange, I dont really get that
maybe the filesystem can be smaller then the logical volume

did u extended the lv sometime? if yes you should resize the fs too
with command resize2fs if i remember right
 
Old 09-10-2010, 06:56 AM   #5
fusion1275
Member
 
Registered: Jul 2007
Location: Portsmouth, Hants
Distribution: Mint 13
Posts: 265

Original Poster
Rep: Reputation: 35
Sorry everyone... yes you were right hurryi. Seems I missed that part out.

Ive now run it and hey presto!!

Thanks again.
 
Old 09-10-2010, 07:22 AM   #6
hurryi
Member
 
Registered: Apr 2010
Distribution: RHEL
Posts: 77

Rep: Reputation: 7
you are welcome
 
  


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
Showing different Hard disk size manoj.linux Linux - Enterprise 1 04-07-2010 06:56 AM
HDD not showing correct size in Debian Lenny sergiuh Linux - Newbie 2 09-30-2009 02:18 PM
Free space not showing correct after increasing root partition size with GParted. avanindra Linux - Newbie 3 08-06-2009 07:49 AM
HD not showing up as correct size, please help!! chriserickson Linux - Hardware 6 09-23-2005 01:04 PM
Hard disk not showing correct size rwalkerphl Linux - Newbie 8 08-19-2004 02:58 PM


All times are GMT -5. The time now is 08:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration