LinuxQuestions.org
Help answer threads with 0 replies.
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-27-2009, 03:30 AM   #1
Grismar
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
LVM2 volume size / free space ,mismatch


Hello,

Newbie here, so be gentle

I'm relatively new to the administration end of Linux. I'm running a Ubuntu 9.04 desktop system. I don't have a lot of extra's installed, just Wine, uTorrent, proftpd, apache, mysql, php5 and samba.

I've put two 60Gb disks in and created a volume group, added both to them and created a single logical volume. The total size of the logical volume should be about 114Gb, but there's only 8.2Gb worth of files on it and it reports there is only 987M free.

When I run 'lvdisplay', it says "LV Size 114.00 GB", which seems ok. I've mounted the logical volume on a mount point called /var/tabot and when I run 'df /var/tabot -h', it says "Size 37G, Used 34G, Avail 987M", which seems strange to me. I can't relate the numbers "37G" and "34G" to anything, so I'm assuming running 'df' on a mounted logical volume in a volume group makes no sense? The free space matches what I find when using the volume though (it goes down as I put stuff on it and when it reaches zero, the system reports errors when I try to put more on it)

Can anyone explain to me why the total size of my 114Gb logical volume seem to be limited to little over 9Gb? And perhaps give me some clue on how to get access to the rest of the space?

Thanks in advance,
Grismar.
 
Old 09-27-2009, 03:35 AM   #2
Grismar
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Answering my own question

Sometimes it helps to state a question, to make the problem clear.

Turns out that, somehow, I had managed to get the volume unmounted. I assumed that the procedure I went through to get it mounted would ensure it to get re-mounted after a reboot. Clearly, it did not and the free space reported was that of the drive /var was on.

Silly mistake, I admit. All the same, hope it helps someone that finds this short thread

Greetings,
Grismar.
 
Old 09-27-2009, 03:40 AM   #3
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
Hi Grismar,

Could you give us the output of

Code:
# pvscan
Code:
# vgdisplay -v
Code:
# lvdisplay -v
Code:
# grep -v "#" /etc/lvm/lvm.conf |grep ..
Code:
# df -h
Did you ever extend the LV and forget to resize the filesystem?
 
Old 09-27-2009, 03:41 AM   #4
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
Hmmm, ignore the above then
 
Old 09-28-2009, 04:47 AM   #5
Grismar
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by eco View Post
Hmmm, ignore the above then
Thanks for the response anyway. The way I found out was by checking 'lvdisplay' yet again. It showed '# open' to be "2" and I realised that I had files open on the volume (or so I thought), so I ran 'umount'. It told me nothing was mounted and I had my answer.

Greetings,
Grismar.
 
  


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
Free space shown for VG is wrong LVM2 bug devkpict Linux - Newbie 10 06-11-2009 03:17 AM
Used space is more than volume size? krnlg Linux - Desktop 2 12-04-2007 05:36 AM
LVM - Extending logical volume - Insufficient free space deim Linux - Newbie 0 04-07-2007 10:47 PM
Wrong Size of free disk space ALInux Linux - General 1 04-03-2006 05:22 AM
External drive - wrong size af free space yannator Linux - General 2 06-27-2005 03:05 AM


All times are GMT -5. The time now is 10:57 AM.

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