LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-19-2006, 12:34 PM   #1
epiphiny
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Rep: Reputation: 0
After lvextend wrong free space


Hi there, after much searching I can't seem to find anybody else with this problem!

I run a dual boot machine between Win XP and FC6, with an 80GB SATA hard drive. Recently, with all the software stability enchancements in FC, I decided to make my system primarily Fedora, so resized my NTFS partition to about 30GB, leaving a 3.7GB FAT partition, where I keep the Fedora CD iso images for install purposes.

I then used the lvm gui in fedora to add the unused space to my volume group.

Finally, I used a knoppix live CD to run lvextend, increasing my LogVol00 (which should contain my whole filesystem) to take up the rest of the disk.

I should now have 46.56GB of total space available to fedora, and indeed lvm seems to think i do;

Code:
lvm> lvs
  LV       VG         Attr   LSize  Origin Snap%  Move Log Copy% 
  LogVol00 VolGroup00 -wi-ao 46.56G                              
  LogVol01 VolGroup00 -wi-ao  1.00G
However, df shows this;

Code:
[root@aibr ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      8.0G  6.2G  1.4G  83% /
/dev/sda3              99M   16M   78M  17% /boot
tmpfs                 252M     0  252M   0% /dev/shm
/dev/sda1              26G   24G  2.3G  92% /ntfs
It seems that everything else on the system agrees that I only have 3GB left, as when I tried to copy a 7GB backup file over it told me I didn't have enough space.

Where has my space gone?!

Sorry if this is something really obvious, but I just can't understand why I'm getting two different results!

Many thanks in advance.
Jim
 
Old 11-19-2006, 12:39 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
The obvious part you are missing is that you didn't extend your file system. Extending the LV is like extending a hdd partition, it doesn't affect the file system itself.
Assuming your file system is ext3, you need to unmount the LV and do a "resize2fs". As it's your / partition, do it from Knoppix.

See also this thread.

Last edited by uselpa; 11-19-2006 at 12:42 PM.
 
Old 11-19-2006, 03:00 PM   #3
epiphiny
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Thumbs up

*blush*

That did it nicely (for some reason it didn't work from Knoppix, but fortunately as Im using kernal 2.6 I could do it with the filesystem mounted.

Thanks very much, sorry for the noobishness
 
Old 11-19-2006, 03:05 PM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Quote:
Originally Posted by epiphiny
for some reason it didn't work from Knoppix, but fortunately as Im using kernal 2.6 I could do it with the filesystem mounted.
Now you got me interested... last time I tried to do it online it didn't work. It was a 2.6 kernel also.
Didn't you get any error message at all, or any warning?
Which kernel? (mine is 2.6.17.13)
Which version of resize2fs? (mine is 1.38)
 
Old 11-19-2006, 03:09 PM   #5
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
OK, got it. It works online in 1.39.
 
  


Reply

Tags
disk, space


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
Wrong Size of free disk space ALInux Linux - General 1 04-03-2006 04:22 AM
'df -h' showing wrong free space on disk? Cdzin Slackware 4 03-16-2006 01:35 PM
Wrong calculation of free disk space by kdiskfree AGazzaz Mandriva 2 02-09-2006 06:25 AM
External drive - wrong size af free space yannator Linux - General 2 06-27-2005 02:05 AM
Samba: Windows reports wrong free space avantman42 Linux - Networking 2 11-17-2003 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:02 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
Open Source Consulting | Domain Registration